On 5/2/2012 1:57 PM, Guy Matz wrote:
Hi! I am using environments in my puppet setup, and would like to do
the same for hiera. I used to have this sort of hierarchy:
:hierarchy: - hosts/%{fqdn}
- domain/%{domain}
- whatever/%{some_fact}
- common
with a yaml datadir:
:yaml:
:datadir: - /etc/puppetlabs/puppet/hieradata
I would like to append %{environment} to my datadir in order to get
separation, however it looks like I can't and will have to do this:
:hierarchy: - %{environment}/hosts/%{fqdn}
- %{environment}/domain/%{domain}
- %{environment}/whatever/%{some_fact}
- %{environment}/common
Can anyone verify that appending %{environment} to datadir won't work?
Does anyone have a good way of separating hiera environments?
Thanks a lot!
Guy
I'm using the following which I copied from somewhere. Quotes might be
part of the missing magic. Also I'm not sure you'd want a - in there
either.
:yaml:
:datadir: '/home/puppet/environments/%{environment}/hieradata'
Ramin
--
You received this message because you are subscribed to the Google Groups "Puppet
Users" group.
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.