hiera.yaml with structured facts
I'm running the latest/greatest Open Puppet on both my Puppetserver and clients all on Oracle Linux V6.7.
I use structured facts from /opt/puppetlabs/facter/facts.d/myfacts.txt. For example: my_role=DATABASE
Then in my /etc/puppetlabs/code/hiera.yaml file I have this line in the hierarchy:
This all works just fine. When a server is identified as a DATABASE server then the DATABASE.yaml file is used appropriately.
What I want to do is to be able to use a fact like this:
and have hiera run thru both the DATABASE.yaml and WEB.yaml files.
I'm not being successful at all. I'm not sure if this is possible or if I just haven't figured out the right way to set things up. Any guidance is very much appreciated. Thank you,