Closed rgarrigue closed 7 years ago
@rgarrigue See https://github.com/razorsedge/puppet-vmwaretools/issues/55
@alexjfisher Ok. Should I enforce STRICT_VARIABLES=no
? If I should, how do I do that, site.pp, puppet.conf ?
Thanks,
It'd be strict_variables = false
in puppet.conf on your master
https://docs.puppet.com/puppet/latest/reference/configuration.html#strictvariables
STRICT_VARIABLES=no
is how you'd set the option when using rspec-puppet and puppetlabs_spec_helper. https://github.com/puppetlabs/puppetlabs_spec_helper#initializing-puppet-for-testing
I don't think this will help you though. The option already defaults to false
but I'm guessing in recent versions, puppet generates warnings. If it was set to true
I don't think the catalog would compile at all.
To fix the warnings, you'd have to fix the params.pp
manifest in this module. The fixes aren't hard, but there are quite a lot of them needed. I might be able to find the time at some point, just probably not this week at least.
So I tried the strict_variable=no, but as you guessed that's not changing anything. Settings it to yes issue an error instead of a warning and stop compilation, no is the default issue warning type.
So... well, that only cosmetic, nevermind this. Thanks for the answer anyway !
2016-08-31 14:07 GMT+02:00 Alex Fisher notifications@github.com:
It'd be strict_variables = false in puppet.conf on your master https://docs.puppet.com/puppet/latest/reference/configuration.html# strictvariables
STRICT_VARIABLES=no is how you'd set the option when using rspec-puppet and puppetlabs_spec_helper. https://github.com/puppetlabs/ puppetlabs_spec_helper#initializing-puppet-for-testing
I don't think this will help you though. The option already defaults to false but I'm guessing in recent versions, puppet generates warnings. If it was set to true I don't think the catalog would compile at all.
To fix the warnings, you'd have to fix the params.pp manifest in this module. The fixes aren't hard, but there are quite a lot of them needed. I might be able to find the time at some point, just probably not this week at least.
— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHub https://github.com/razorsedge/puppet-vmwaretools/issues/54#issuecomment-243743938, or mute the thread https://github.com/notifications/unsubscribe-auth/AByQn3CqUpTvo735MvTak0g5gfpRb54Rks5qlW5mgaJpZM4JtOC- .
Fixed in #62 and released to the Forge as 6.1.0.
Hi
Is there a clean way to get rid of those warning ?
Regards,