Hello,
I am trying to extend my puppet installation by utilising hiera for dynamic data for particular hosts. To that end, I'm testing hiera with the puppetlabs ntp module. However, I am getting this error:
"Error: Could not retrieve catalog from remote server: Error 400 on SERVER: "false," is not an Array. It looks to be a String at /etc/puppet/modules/ntp/manifests/init.pp:34 on node blah.blah", when I run puppet agent --test --noop.
Init.pp is straight from puppetlabs.
I have a hiera.yaml file in the root of my puppet install (/etc/puppet)
hiera.yaml references my datadir as /etc/puppet/hieradata and the hierarchy as common
Inside hieradata, I have a simple common.yaml file, and in that file I have:
---
testmsg : 'Tim was here'
ntp::restrict : false,
ntp::autoupdate : true,
ntp::enable : false,
ntp::servers : [
"ntp.example.org iburst",
"0.us.pool.ntp.org iburst",
"1.us.pool.ntp.org iburst",
"2.us.pool.ntp.org iburst"
]
I actually already made this change and pushed it. Nick merged it yesterday.
--
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 puppet-users...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/puppet-users/5388431B.80403%40alumni.tu-berlin.de.
For more options, visit https://groups.google.com/d/optout.
Inside hieradata, I have a simple common.yaml file, and in that file I have:
---
testmsg : 'Tim was here'
ntp::restrict : false,
ntp::autoupdate : true,
ntp::enable : false,
ntp::servers : [
"ntp.example.org iburst",
"0.us.pool.ntp.org iburst",
"1.us.pool.ntp.org iburst",
"2.us.pool.ntp.org iburst"
]
ntp::servers:
- ntp.example.org iburst
- 0.us.pool.ntp.org iburst
- 1.us.pool.ntp.org iburst
- 2.us.pool.ntp.org iburst