On 27/04/18 17:34, du wrote:
Hi
I am in the process of migrating v3 hiera.yaml to v5 and I would like
all hash merges to merge 'deep' by default, the same way
:merge_behavior: deeper in v3 parameter provides.
I can't seem to find an easy way to do this after reading the docs - I
understand lookup_options: need to be set, however it requires class
parameter to be specified. I tried using regex as below and adding it to
common.yaml however it does not produce the desired result (it works ok
if I specify the hash name explicitly, however I am looking to expand
this behaviour to all lookups, if possible).
Is there an easy way to just migrate :merge_behavior: deeper to v5?
Depends on what you mean. The 'deep' in hiera 5 is the same as 'deeper'
in hiera 3. It just works.
If you mean that all keys should lookup with strategy 'deep' then you
use the lookup_options to set that for all keys.
- 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/pbvlhb%24scl%241%40blaine.gmane.org.
For more options, visit https://groups.google.com/d/optout.