-
Notifications
You must be signed in to change notification settings - Fork 34
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 scope problem for gmetad config #27
Conversation
|
Also found the problem in ganglia::web::config (port/ip from ganglia::web not in the scope that the template is in) |
|
Inheriting the base class to get at it's variables is a bit of an anti-pattern in puppet. A better approach would be to use EPP templates won't have this problem but it's going to be awhile before we can rely on puppet 4 features. |
|
BTW - the |
|
I'm open to suggestions, I wasn't keen on using inherits, but I figured it's already being used elsewhere in puppet-ganglia so it should be ok for now. I can refactor with scope[] if that's the way you want to go |
|
I started rewriting it to use scope[], but EPEL6 is still on puppet 2.7.x. Might be worth hanging on to 2.7.x support for a while. |
|
Sounds completely reasonable. Supposedly EPEL6 is going to stay with |
|
Ok, I'll use scope.lookupvar() instead. |
|
Thanks for working on this! |
Fix scope problem for gmetad config
With future parser there is a scope problem in the gmetad.conf.erb. Because the variable "clusters" is defined in ganglia::gmetad and the template is in ganglia::gmetad::config it is not in the same scope. By inheriting ganglia::gmetad this fixes the problem.