Fix Puppet 3.7.3 giving evaluation error in run_service.pp #71
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
If I run this module out on a CentOS 6.5 box with Puppet 3.7.3 using future parser I get the following error -
Error: Evaluation Error: Error while evaluating a Resource Statement, Illegal fully qualified name in file /etc/puppet/modules-extra/consul/manifests/run_service.pp at line 32
This looks like some scoping issue because it cannot lookup the variable $_config_hash. This seems to be down to the fact it starts with an underscore. If I change the variable to use $config_hash_real (no underscore) it seems to work out just fine.
This might actually be down to some bug in Puppet itself, I couldn't see anything in the docs (for Puppet) about variable names and scoping, apart from the fact you can no longer have variables that start with a capital letter.
This should circumvent the issue, but might be worth raising an issue on the Puppet project separately too as this seems a bit weird to me?