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.netWarning: Not using cache on failed catalog
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.