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:
  - 0.us.pool.ntp.org iburst
  - 1.us.pool.ntp.org iburst
  - 2.us.pool.ntp.org iburst
  - 3.us.pool.ntp.org iburst

[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
["0.us.pool.ntp.org iburst",
 "1.us.pool.ntp.org iburst",
 "2.us.pool.ntp.org iburst",
 "3.us.pool.ntp.org iburst"]

But not on the agents?

Any suggestions on what I;m doing wrong?

Thanks,
Alex

-- 
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 [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/puppet-users/3eeaad2b-f928-4e9b-917b-878e2f9257c4%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to