The hiera function works as you described and supports strings, arrays and
hashes. The hiera_array and hiera_hash functions build additive arrays and
hashes that include the values of all matching variables across the entire
hierarchy. For your use case you should use hiera() instead of
hiera_array().
On Sep 3, 2012 8:42 AM, "Josh" <[email protected]> wrote:
> ...my hiera.conf since it would probably help. %{datacentre} is a custom
> fact that is set at build time:
>
> ---
> :hierarchy:
> - node/%{hostname}
> - common/%{datacentre}
> - common/common
> :backends:
> - yaml
> - puppet
> :yaml:
> :datadir: '/local/puppet/env/%{environment}/hieradata'
> :puppet:
> :datasource: data
>
> --
> 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/-/7FV-TOufBLcJ.
> 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.