Can anybody reply to this post. Thanks Nishant
On Wednesday, October 10, 2012 4:31:26 PM UTC-4, Nishant Jain wrote: > > Hello Everybody, > Can anybody please provide an example about how to > read an array using hiera in puppet 3.0. > Right now the agents are giving the following error when connecting to the > master " Could not retrieve catalog from remote server: Error 400 on > SERVER: Could not find data item users in any Hiera data file and no > default supplied ". > > Following is the structure of hiera.yaml > --- > :backend: > - yaml > :hierarchy: > - global > :puppet: > :datasource: data > :yaml: > # datadir is empty here, so hiera uses its defaults > # When specifying a datadir, make sure the path of the datadir exists > :datadir: /etc/puppet/hiera/data > > > Followin is the structure of global.yaml file:- > --- > users: > - 'seventeen' > - 'eighteen' > > > > Following is the code where am trying to use it in site.pp > > $declared_users=hiera_array(users) > > I am not getting, if I am missing > something obvious here or is there any problem with hiera inside puppet. > > > Thanks, > Nishant > > > -- You received this message because you are subscribed to the Google Groups "Puppet Users" group. To view this discussion on the web visit https://groups.google.com/d/msg/puppet-users/-/2-LVNH421mYJ. To post to this group, send email to [email protected]. To unsubscribe from this group, send email to [email protected]. For more options, visit this group at http://groups.google.com/group/puppet-users?hl=en.
