-
Notifications
You must be signed in to change notification settings - Fork 204
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
warn if manifest has parameter called 'environment' #574
Comments
this is mainly about classes. (obviously?) |
Can someone explain why it's causing a failure? Is that a prohibited parameter name, and does puppet parser validate not catch that? Puppet-lint tried to only handle formatting style issues rather than syntax, so I want to make sure this is fixed in the correct project. If it is a style issue, then we need to link to or create a style guide reference for it. (It could always be a plugin but it would not be in core then) |
if you have a # managed by puppet
---
:backends:
- yaml
- file
:logger: console
:hierarchy:
- "fqdn/%{::fqdn}"
- "roles/%{role}"
- "vm_profiles/%{vm_profile}"
- "vm_parents/%{vm_parent}"
- repos
- tlsdata
- users
- common
:yaml:
:datadir: "/etc/puppetlabs/code/environments/%{::environment}/hieradata"
:file:
:datadir: "/etc/puppetlabs/code/environments/%{::environment}/hierafiles"
:merge_behavior: deeper then, as soon as puppet's execution flow enters a class which has a top-scope parameter called |
Wow, that seems like a pretty serious bug! Has anyone opened a ticket with Puppet yet? |
That means that local class parameter variables override global variables in hiera? That's bad! Looks like a Puppet or hiera lookup bug. Does this happen with all versions of puppet/hiera? |
yup |
The right interpolation to use here is |
While I would not mind making |
@hlindberg It sounds like currently there is nothing to do for puppet-lint as the syntax exists currently - but a hiera-lint, if it existed, should check for hierarchy values that do not begin with We can try getting a style guide update added but that's only going to help for |
@rnelson0 correct. |
@igalic Am I missing something? You are already correctly using |
It is a bug for sure if interpolation of |
I'm going to close this out as it looks like a possible bug in puppet or hiera. Thanks, all! |
To prevent issues like voxpupuli/puppet-letsencrypt#63
The text was updated successfully, but these errors were encountered: