-
-
Notifications
You must be signed in to change notification settings - Fork 104
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
Hierarchy interpolation seems to have changed. #108
Comments
FYI i ran into this also and %%{::}{var} works. %{} seems to now resolve to all variables in scope in a hash as opposed to an invalid lookup like it was before. :: is invalid and no variable could be named that so i guess its a viable work around. Also i would suggest this be a bug against hiera not this module. |
@BarnacleBob Can you help identify when you ran into this issue? Was it when moving to 4.x, and if so, what point release did you start with? I'll follow up with a PL ticket, just want to see if we can narrow the environment. |
(I also wasn't sure if puppet was interpolating it before this module was generating the template content, or if the module was doing it - seems to be puppet) |
I am using OS Puppet 3.x series in production with hiera 1.3.4 and setup puppet-enterprise-2015.3.1 on my personal stuff to start learning the differences. It has hiera 3.0.5. If you test it on the cmdline you see that %{} returns the whole scope array.
|
Interesting, looks like a Hiera 3 bug then. I can never tell when Puppet is handing things to hiera or doing it itself but at least it's a starting point. Thanks! |
I opened HI-494 since this is an upstream issue. Thanks for the workaround @BarnacleBob! |
Using this yaml file and including the class
::hiera
...Used to result in this file with Puppet 3.7 FOSS and Passenger or PE3.7/puppetserver:
Using puppet4/puppetserver results in this file instead:
Is there any known reason for why this behavior has changed? I was able to remedy this with the following changes, but it does not seem like the right solution:
The text was updated successfully, but these errors were encountered: