Would you be able to do something like this...

:hierarchy:
  - %{fqdn}
  - %{environment}/settings (environment specific settings)
  - common






On Friday, February 22, 2013 9:11:08 AM UTC-5, Alexander Fortin wrote:
>
> Hi folks, 
>
> I'm using Puppet 3.0.1 and hiera 1.1.1, and this is my hierarchy now: 
> :hierarchy: 
>   - %{fqdn} 
>   - %{environment} 
>   - common 
>
> but I'd like to achieve something like this: 
>
> if my node has environment=vagrant, then Hiera sources should be: 
> - /var/lib/hiera/vagrant.yaml 
> - /var/lib/hiera/devel.yaml 
> - /var/lib/hiera/common.yaml 
>
> if environment=devel: 
> - /var/lib/hiera/devel.yaml 
> - /var/lib/hiera/common.yaml 
>
> if environment=production: 
> - /var/lib/hiera/common.yaml 
>
> I'm going through documentation but seems there's no mention to this 
> kind of setup. 
>
> Any hint? Thanks! 
>
> -- 
> Alexander Fortin 
> https://www.vizify.com/alexander-fortin 
>

-- 
You received this message because you are subscribed to the Google Groups 
"Puppet Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To post to this group, send email to [email protected].
Visit this group at http://groups.google.com/group/puppet-users?hl=en.
For more options, visit https://groups.google.com/groups/opt_out.


Reply via email to