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