On Wednesday, October 9, 2013 10:11:46 AM UTC-5, TimV wrote: > > 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" > ] > > The module expects its 'restrict' parameter, if given, to be an array. The docs are not clear about that (so feel free to file a ticket). If you want to suppress the default restrictions without providing any of your own then try making the value an empty array.
John -- 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 post to this group, send email to [email protected]. Visit this group at http://groups.google.com/group/puppet-users. For more options, visit https://groups.google.com/groups/opt_out.
