Hello! Our team recently upgraded from PE 2017 to PE 2018. After the upgrade, we started encountering this error:
michael.hashizume@bfs-hyperv-1-prod:~$ sudo puppet agent -t |
Info: Using configured environment 'production' |
Info: Retrieving pluginfacts |
Info: Retrieving plugin |
Info: Retrieving locales |
Info: Loading facts |
Error: Could not retrieve catalog from remote server: Error 500 on SERVER: Server Error: Evaluation Error: Error while evaluating a Method call, Cannot use empty string as a class name (file: /etc/puppetlabs/code/environments/production/manifests/site.pp, line: 1, column: 43) on node bfs-hyperv-1-prod.it.puppet.net |
Warning: Not using cache on failed catalog |
Error: Could not retrieve catalog; skipping run |
We classify our nodes purely in Hiera. We like this setup because it allows us to keep everything in the codebase, even if nodes only need the base profile applied to them. Our main manifest looks like this:
lookup('classes', Array[String], 'unique').include |
|
node default { include profile::base } |
And the node's Hiera file looks like this:
The node is running Puppet 5.3.5, and the Master is on 5.5.16. Thank you! |