Ask Your Question

Revision history [back]

click to hide/show revision 1
initial version

Hi

Sorry, asked and 30 minutes later found:

https://puppet.com/docs/puppet/4.10/hiera_migrate_v3_yaml.html

Remove dead settings

Remove everything except the :hierarchy setting.

Delete the following settings completely:

:logger
:merge_behavior
:deep_merge_options

These have no equivalent in a version 5 config, and are no longer needed. Delete them if they’re present. If you’d like to learn about how Hiera 5 supports deep hash merging, see Merging data from multiple sources.

Solution under Hiera 5:

https://puppet.com/docs/puppet/5.4/hiera_merging.html

And question 2 isanswered, too.

https://puppet.com/docs/puppet/5.4/hiera_merging.html#configure-merge-behavior-in-hiera-data

In any Hiera data source, including module data:

  1. Use the lookup_options key to configure merge behavior.

Really any Hiera data source?

MfG Matthias