Thanks Everybody, I got it working, but am still not able to read the array 
using hiera. It always read the last element of the array.
For example in the following global.yaml file:-
---
 users:
   - 'seventeen'
   - 'eighteen'


when i write hiera('users') and print it as a content it a file, It always 
write eighteen in the file, instead of seventeen , eighteen.


It always read the last value, i.e. eighteen.

Any idea how I can make it read the whole array.


Thanks,
Nishant



On Thursday, October 11, 2012 2:32:20 PM UTC-4, jcbollinger wrote:
>
>
>
> On Thursday, October 11, 2012 11:11:07 AM UTC-5, Nishant Jain wrote:
>>
>>
>> Yes /etc/puppet/hiera/data/global.yaml exists . I even tried removing 
>> :puppet and :datasource, but still its not working.
>>
>
> Is that file readable by the puppetmaster?  Remember that, at least in a 
> typical installation, the master runs as an unprivileged user (often 
> 'puppet').  If file ownership and permissions, ACLs, and/or SELinux 
> labeling prevent the master from reading the data file then you might get 
> an error such as you report.  (Look not only at the file itself, but also 
> at each directory in the path to it.)
>
>
> John
>
>

-- 
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/-/dV0jz1_K9TcJ.
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.

Reply via email to