Hi,
I'm in the process of deploying my first Puppet instance with hiera and environments but I'm having some difficulties. Configuration files listed below with the host names removed.
[me@puppet puppet]$ cat /etc/puppet/hiera.yaml
---
:backends:
- yaml
:yaml:
:datadir: "/etc/puppet/environments/%{::environment}"
:hierarchy:
- "nodes/%{::fqdn}"
[me@puppet puppet]$ cat /etc/puppet/environments/production/nodes/servers-fqdn.yaml
---
ntp::restrict:
-
ntp::autoupdate: false
ntp::enable: true
ntp::servers:
[me@puppet puppet]$ cat /etc/puppet/environments/production/manifests/site.pp
hiera_include('classes')
Seems to work from the command line:
[me@puppet puppet]$ sudo hiera ntp::servers ::fqdn=servers-fqdn ::environment=production
But not on the agents?
Any suggestions on what I;m doing wrong?
Thanks,
Alex