Hi All,
I seem to be running into an issue when I try to use
environments in my test Puppet 4 setup. I am in the process of migrating
from Puppet 3 to Puppet 4.
puppetserver version: 2.7.2
puppet agent: 4.8.1
Server is running CentOS Linux release 7.3.1611
If
I create local directories
/etc/puppetlabs/code/environments/{dev,production} and populate it with
all my Puppet related files, everything works fine. However, if I copy
the same files over to a NFS share mounted at a different location and
then create a symlink from /etc/puppetlabs/code/environments/dev to that
new location, puppet agent doesn't like it and errors out.
[root] pwd
/etc/puppetlabs/code/environments
[root]# ll
lrwxrwxrwx 1 root root 23 Jan 2 14:21 dev -> /ln/systems/puppet4/dev
Errors on the client while running puppet agent -t:
Error:
Could not retrieve catalog from remote server: Find
/puppet/v3/catalog/
hostname.com?environment=dev&facts_format=pson&facts=%257B%2522name%...
resulted in 404 with the message: {"message":"Not Found: Could not find
environment 'dev'","issue_kind":"RUNTIME_ERROR"}
Puppetserver errors:
2017-01-02 14:26:12,505 INFO [qtp1908253991-68] [puppetserver] Puppet Not Found: Could not find environment 'dev'
This same setup (symlink to a NFS share) works perfectly fine with our current Puppet 3.7.5
I also tried mounting the NFS share directly at /etc/puppetlabs/code/environments, but that doesn't work either.
Has someone seen this before? Am I missing something?
Thanks!
PK