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

Make gmond_service_config a class parameter #61

Closed
jarshwah opened this issue Dec 17, 2015 · 6 comments
Closed

Make gmond_service_config a class parameter #61

jarshwah opened this issue Dec 17, 2015 · 6 comments

Comments

@jarshwah
Copy link

I'm running ganglia on some rhel 5 boxes and for some reason they expect the gmond.conf file to be in /etc/ganglia/gmond.conf rather than the /etc/gmond.conf location that params defines for rhel 5.

https://github.com/jhoblitt/puppet-ganglia/blob/master/manifests/gmond.pp#L54

Can you please consider adding this as a class parameter to gmond.pp so that I can override it?

@jarshwah
Copy link
Author

Specifically, adding the following to ganglia::gmond class params:

$gmond_service_config = $::ganglia::params::gmond_service_config

And then..

file { $gmond_service_config:

@jhoblitt
Copy link
Owner

@jarshwah these are packages from epel5? The new param your proposing sounds reasonable. Are you interested in taking a stab at a PR?

@jhoblitt
Copy link
Owner

It looks like the ganglia packages in epel5 were upgraded to a recent version earlier this year. It probably makes sense to change the default paths from el5 as well.

@jarshwah
Copy link
Author

Ah, that would explain it. I'm in the middle of a puppet 3 -> 4 migration, but if I have some time after that I'll circle back to write a PR. If the paths have just changed though it might be sufficient to simply update them in params and move on.

From a design perspective, I favour being allowed to override everything by assigning params defaults to class parameters. It should probably be an all or nothing proposition though rather than a single parameter for a single use case. But I'll leave that decision (and implementation ;) ) to others.

@eabecho
Copy link
Contributor

eabecho commented Feb 9, 2016

I'm running into this issue also. It'd make sense to do both: update the default and add a gmond_service_config parameter.

@jhoblitt
Copy link
Owner

resolved by #67

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

No branches or pull requests

3 participants