I'm working on moving over a node inheritance tree to hiera. Presently working on the hierarchy. Prior to hiera, my nodes had a hierarchy as such
base
pre-prod
qa
nodes
staging
nodes
development
nodes
prod
nodes
Now I'm trying to get the same tier with hiera. Starting out I have this
:hierarchy:
- base
- "%{environment}"
- "%{clientcert}"
but I need another level to capture pre-prod and prod. My thought would be to add an entry to puppet.conf, something like
[agent]
realm = pre-prod
then
:hierarchy:
- base
- "%{realm}"
- "%{environment}"
- "%{clientcert}"
A couple of questions
- Are you allowed to place arbitrary properties into puppet.conf?
- Will hiera see the realm property?