I'm using a control-repo for my puppet master profiles/roles.
I'm using Hiera and I would like to add role as hierarchy
my hiera.yaml looks like :
:backends:
- yaml
:yaml:
:datadir: "/etc/puppetlabs/code/environments/%{::environment}/hieradata"
:hierarchy:
- "nodes/%{::trusted.certname}"
- "roles/%{::role}"
- "common"
the puppet agent doesn't seem to have the role fact. so I added a role fact in /etc/puppetlabs/facter/facts.d
But I don't want to do this for every node. I want this to be automatic.
do you have any ideas guys ?
↧