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?


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
| improve this answer | |

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

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