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

access out-of-scope variables via the scope.lookupvar method #40

Merged
merged 1 commit into from
Jun 22, 2015

Conversation

eoly
Copy link
Contributor

@eoly eoly commented Jun 19, 2015

The templates/redis-sentinel.conf.erb and templates/redis.conf.erb are accessing out-of-scope variables by accessing variables declared top level redis class.

In Puppet 4 and Puppet 3 with Future Parser enabled the values of these variables are blank in the resulting configuration files.

Puppet 4 and Puppet 3 with Future Parser enabled no longer supports relative namespace lookups.
https://tickets.puppetlabs.com/browse/PUP-121

You must access these variables by calling the scope.lookupvar function with the fully qualified variable name as the argument. This PR modifies the 2 templates to use the scope.lookupvar function.

@arioch
Copy link
Contributor

arioch commented Jun 22, 2015

You've saved me the hassle of doing it myself. 👍
Thanks!

@arioch arioch merged commit edd7cb5 into voxpupuli:master Jun 22, 2015
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