Skip to content
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

Fix Puppet 3.7.3 giving evaluation error in run_service.pp #71

Merged

Conversation

tayzlor
Copy link

@tayzlor tayzlor commented Jan 22, 2015

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?

@solarkennedy
Copy link
Contributor

The wan thing is covered in #66, can you rebase with only the underscore change?

@tayzlor
Copy link
Author

tayzlor commented Jan 22, 2015

#66 didn't yet get merged to master. Are you planning to merge that or do you want me to rebase against that fork? in the line that joins the WAN it references the underscore variable, so that would need updated.

@solarkennedy
Copy link
Contributor

Yes. #66 is merged now. Please rebase.

What do you think about adding the future parser to the rspec stuff so we can (potentially) catch other bugs?

rodjek/rspec-puppet#182 (comment)

@tayzlor
Copy link
Author

tayzlor commented Jan 23, 2015

Thanks, Rebased!
Yeah might be worth creating a separate issue to add in the future parser stuff.

solarkennedy added a commit that referenced this pull request Jan 23, 2015
Fix Puppet 3.7.3 giving evaluation error in run_service.pp
@solarkennedy solarkennedy merged commit da8f4a6 into voxpupuli:master Jan 23, 2015
@solarkennedy
Copy link
Contributor

Thank you for rebasing, I know it is a pain. :)

99% of the time the future parser shouldn't be an issue, but I guess this was one of those times?

Seems like modules shouldn't have to test against the future parser unless they explicitly are using it?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants