Hi, On Thu, 2012-10-11 at 07:45 -0700, Nishant Jain wrote: > 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'
Are you sure /etc/puppet/hiera/data/global.yaml exists on the puppet master? Why are you using :puppet: and :datasource: ? Cheers, -- Stephen Gran Senior Systems Integrator - guardian.co.uk Please consider the environment before printing this email. ------------------------------------------------------------------ Visit guardian.co.uk - newspaper of the year www.guardian.co.uk www.observer.co.uk www.guardiannews.com On your mobile, visit m.guardian.co.uk or download the Guardian iPhone app www.guardian.co.uk/iphone and iPad edition www.guardian.co.uk/iPad Save up to 37% by subscribing to the Guardian and Observer - choose the papers you want and get full digital access. Visit guardian.co.uk/subscribe --------------------------------------------------------------------- This e-mail and all attachments are confidential and may also be privileged. If you are not the named recipient, please notify the sender and delete the e-mail and all attachments immediately. Do not disclose the contents to another person. You may not use the information for any purpose, or store, or copy, it in any way. Guardian News & Media Limited is not liable for any computer viruses or other material transmitted with or as part of this e-mail. You should employ virus checking software. Guardian News & Media Limited A member of Guardian Media Group plc Registered Office PO Box 68164 Kings Place 90 York Way London N1P 2AP Registered in England Number 908396 -- You received this message because you are subscribed to the Google Groups "Puppet Users" group. To post to this group, send email to puppet-users@googlegroups.com. To unsubscribe from this group, send email to puppet-users+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/puppet-users?hl=en.