I have built a new Puppet master to test Puppet 4. I have installed the 
server itself and used r10k to put my code on the server but when doing a 
puppet client run on the master I get this error:

root@puppet:~# puppet agent -t
Info: Retrieving pluginfacts
Info: Retrieving plugin
Info: Loading facts
Error: Could not retrieve catalog from remote server: Error 400 on SERVER: 
Evaluation Error: Error while evaluating a Function Call, Could not find 
data item classes in any Hiera data file and no default supplied at 
/etc/puppetlabs/code/environments/production/site.pp:2:1 on node 
puppet.thefallenphoenix.net
Warning: Not using cache on failed catalog

The Hiera config file is at /etc/puppetlabs/code/hiera.yaml as per the 
Hiera 2.0 release announcement 
(https://docs.puppetlabs.com/hiera/2.0/release_notes.html#break-new-default-locations-for-config-file-and-data-directory)
 
so I'm not sure why it cannot be found (assuming that is the issue).

The site.pp referred to has code to pull in the classes tag from Hiera 
files which looks like this:

hiera_include('classes', undef)

This works on Puppet 3.x series OK.

-- 
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/2a819e08-9605-4c5c-8ac1-a71a6efdbec4%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to