-
-
Notifications
You must be signed in to change notification settings - Fork 105
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Can't specify hiera::hierarchy in hiera #92
Comments
Can you give an example of this failing? |
Yes. Defining this array in hiera:
... and then invoking the hiera class with expectation of it picking up the "hierarchy" parameter automatically from hiera fails:
The class uses '[]' for the parameter value. Specifying a default empty array in code overrides Puppet's automated parameter lookup from hiera, as that lookup only does native merging and not deep merging. The work-around I have to do is wrap hiera::init in a another class (i.e. a profile class) and do the hiera lookup of "hiera::hierarchy" explicitly.
|
GH-92: Default to undef for hierarchy on puppet 4+
Merged in #119 |
Having the default value for the "hierarchy" parameter specified as [], i.e. an empty array, prevents one from providing the value of this parameter via hiera. You need to leave a default parameter value as undef for Puppet to do automatic parameter lookup.
https://docs.puppetlabs.com/hiera/3.0/puppet.html#automatic-parameter-lookup
The text was updated successfully, but these errors were encountered: