Take the 2-minute tour ×
Server Fault is a question and answer site for professional system and network administrators. It's 100% free, no registration required.

Is it possible to define a separate hiera.yaml for a given environment? Currently I am using dynamic environments. Each one has it's own hiera data directory, per my hiera.yaml file.

:yaml:
   :datadir: /var/lib/hiera/%{environment}

One drawback though is all of these environments are subject to the same hierarchy. I don't think this would work very well with many teams on a shared Puppet master.

So what is the best option, a dedicated Puppet master for each team that has a set of servers to maintain?

share|improve this question
add comment

1 Answer 1

up vote 1 down vote accepted

I think I just found it.

My guess is you can make this dynamic in the same way as environments, something like

hiera_config = $confdir/environments/$environment/hiera.yaml
share|improve this answer
add comment

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.