Hi. I'm a new user with an environment problem. My puppet.conf on my client host (puppet agent 4.9.2) looks like this:
[main] certname = centosCLIENT.pretend.com server = puppet environment = development runinterval = 1h environment_timeout = 0 and when I run* /opt/puppetlabs/puppet/bin/puppet config print* I get: /opt/puppetlabs/puppet/lib/ruby/vendor_ruby/puppet/environments.rb:38:in `get!': Could not find a directory environment named 'development' anywhere in the path: /etc/puppetlabs/code/environments. Does the directory exist? (Puppet::Environments::EnvironmentNotFound) from /opt/puppetlabs/puppet/lib/ruby/vendor_ruby/puppet/application_support.rb:29:in `push_application_context' from /opt/puppetlabs/puppet/lib/ruby/vendor_ruby/puppet/application.rb:337:in `run' from /opt/puppetlabs/puppet/lib/ruby/vendor_ruby/puppet/util/command_line.rb:132:in `run' from /opt/puppetlabs/puppet/lib/ruby/vendor_ruby/puppet/util/command_line.rb:72:in `execute' from /opt/puppetlabs/puppet/bin/puppet:5:in `<main>' Here's how my server (puppetserver 2.7.2) is configured: $ cat */etc/puppetlabs/code/environments/development/environment.conf* modulepath = /etc/puppetlabs/code/environments/development/modules:/etc/puppetlabs/code/modules:/opt/puppetlabs/puppet/modules # manifest = (default_manifest from puppet.conf, which defaults to ./manifests) manifest = manifests On the client, except for the hiera failure, this works: *sudo /opt/puppetlabs/bin/puppet agent -t* Info: Using configured environment 'development' Info: Retrieving pluginfacts Info: Retrieving plugin Info: Loading facts Info: Caching catalog for strontium.themolecule.com Info: Applying configuration version '1487277062' Notice: You're in development Notice: /Stage[main]/Main/Node[default]/Notify[Using_Development_Environment]/message: defined 'message' as 'You're in development' Notice: Applied catalog in 0.33 seconds -- You received this message because you are subscribed to the Google Groups "Puppet Users" group. To unsubscribe from this group and stop receiving emails from it, send an email to puppet-users+unsubscr...@googlegroups.com. To view this discussion on the web visit https://groups.google.com/d/msgid/puppet-users/137c9038-5478-4d9b-ac3c-3b81f2d40ccd%40googlegroups.com. For more options, visit https://groups.google.com/d/optout.