-
-
Notifications
You must be signed in to change notification settings - Fork 879
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
Hiera does not merge correctly #426
Comments
I debugged the output of the hiera_hash in the project:
but the output from the init.pp with "notice("${nginx_vhosts}")" is
Does the module gets the informatione before it is fully merged? |
Which version of Puppet, Hiera, and the module are you using? |
It sounds like you're using Hiera without deep merge support, can you review your settings according to https://docs.puppetlabs.com/hiera/1/lookup_types.html#hash-merge then report back? |
I am using hiera 1.3 and native merging.... but didnt native merging should be enough? |
The problem apears still with "deeper" merging. However I can reproduce it with another module (puppetlabs/mysql), so I think this maybe a general issue and not something with the nginx module. |
I close this issue because after deeper investigation it seems to be a hiera/puppet bug |
What was the bug (link, etc?) ..update - my issue was with Priority Lookup only for automatic parameter lookup.http://docs.puppetlabs.com/hiera/1/puppet.html#limitations |
I did experienced the same issue some time ago, it has became even more confusing when I started to fix "deprecation notice" about direct parameters assignment to class {"nginx":}. So I've done it with a following code in my "nginx_base" profile: class site::profiles::nginx_base ( ############### Some magic to autoconfigure collect::plugin::nginx ############### class {'nginx::config': class {'nginx': You can adjust hiera lookups as needed (for priority lookups). However, I'd like to hear some notes from maintainers whether I did it right or wrong. |
I have a hiera file with the following data:
And 2 yaml files with the following code:
and
the hiera command " hiera -c hiera.yaml -h nginx::nginx_vhosts"
gives me the correct result... a merge from the two vhosts and files
But only the first vhost is installed on the system, the second is ignored. I used the multiple files with multiple hashs with other modules and this problem seems to be only with the nginx module.
Greetings Jan
The text was updated successfully, but these errors were encountered: