On 2019-01-17 18:40, Peter Berghold wrote:
I'm having a revertment to my noob days with respect to how hiera
works. (Version 3 for now)
If I have the hierarchy of
- common
- nodes/"%{fqdn}"
- datacenter/"%{fdatacenter}"
if in common.yaml I have "module::parms::server: server1" and in
nodes/myclient.yaml I have "module::parms::server: server2" and in
datacenter/NYCA.yaml (and the host presents NYCA as its datacenter) I
have "module::parms::server: server3" which value will be presented for
host myclient?
I could have sworn I read the lower down the list of hierarchy a value
was it would override the one above it. I just read this morning that
hiera stops at the first value it finds which is a bit of a problem for
what I'm trying to accomplish.
Hiera has always gone from top to bottom in the list in hiera.yaml
and it returns the first found.
You want "common" (the default) to be last in the list.
- henrik
--
Visit my Blog "Puppet on the Edge"
http://puppet-on-the-edge.blogspot.se/
--
You received this message because you are subscribed to the Google Groups "Puppet
Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to puppet-users+unsubscr...@googlegroups.com.
To view this discussion on the web visit
https://groups.google.com/d/msgid/puppet-users/q1s97u%24p5t%241%40blaine.gmane.org.
For more options, visit https://groups.google.com/d/optout.