I'm missing something. I've never been able to include classes via hiera via the hiera_include('classes') command. Any insight?
If I call :
# /opt/puppetlabs/bin/puppet agent -t --debug > /tmp/debug
Yields:
Error: Could not retrieve catalog from remote server: Error 500 on SERVER: Server Error: Evaluation Error: Error while evaluating a Function Call, undefined method `downcase' for nil:NilClass at /etc/puppetlabs/code/environments/development/manifests/site.pp:1:1 on node mycomputer.domain.com
Warning: Not using cache on failed catalog
Error: Could not retrieve catalog; skipping run
I've never had any trouble with putting "include ::ntp" inside the default node class.
When site.pp looks like this:
hiera_include('classes')
node default {
}
cat /etc/puppetlabs/code/environments/development/hieradata/common.yaml
---
magic_word : '%{::environment}/hieradata/common.yaml'
magic_word_common : 'common.yaml was consulted'
magic_word_environment : '%{::environment}'
classes:
- ntp
...[etc]
Thx in advance.
puppetserver 4.9.4
puppet agent on mycomputer: 4.10.0