Puppet Version: 5.5.21 Puppet Server Version: 5.3.8 OS Name/Version: RHEL 7 When using a non default environment (something other than production) on a puppet agent from the puppet master, for example testenv, running puppet filebucket -l list --bucket /opt/puppetlabs/puppet/cache/clientbucket/ fails with Puppet::Environments::EnvironmentNotFound Desired Behavior: puppet filebucket uses Puppet environment from /etc/puppetlabs/puppet/puppet.conf and runs successfully. Actual Behavior:
$ sudo puppet filebucket -l list --bucket /opt/puppetlabs/puppet/cache/clientbucket/ |
/opt/puppetlabs/puppet/lib/ruby/vendor_ruby/puppet/environments.rb:38:in `get!': Could not find a directory environment named 'testenv' 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:34:in `push_application_context' |
from /opt/puppetlabs/puppet/lib/ruby/vendor_ruby/puppet/application.rb:363:in `run' |
from /opt/puppetlabs/puppet/lib/ruby/vendor_ruby/puppet/util/command_line.rb:139:in `run' |
from /opt/puppetlabs/puppet/lib/ruby/vendor_ruby/puppet/util/command_line.rb:77:in `execute' |
from /opt/puppetlabs/puppet/bin/puppet:5:in `<main>' |
$ puppet --version |
5.5.21 |
$ ls -lhatr /etc/puppetlabs/code/environments/ total 0 drwxr-xr-x. 4 root root 41 Jul 3 07:34 .. drwxr-xr-x. 3 root root 24 Jul 3 07:34 . drwxr-xr-x. 5 root root 92 Aug 21 01:30 production |
$ cat /etc/puppetlabs/puppet/puppet.conf |
[main] |
environment = testenv |
server = puppetmaster.example.com |
runtimeout = 1h |
splay = true |
splaylimit = 3m |
strict_variables = true |
graph = true
|
|