I can attest to the fact that it works fine here is my:
:yaml:
:datadir: '/etc/puppet/env/%{environment}/hieradata'
I am having no issues with that.
On Wed, May 2, 2012 at 2:57 PM, Guy Matz <[email protected]> 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
>
> --
> 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.
>
--
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.