Server Fault is a question and answer site for system and network administrators. It's 100% free, no registration required.

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

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

   :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
up vote 3 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

Your Answer


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.