-
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
Possible wrong Stdlib type in gmond.pp #95
Comments
|
https://github.com/jhoblitt/puppet-ganglia/blob/master/spec/classes/gmond_spec.rb#L70 No, it should be a Fqdn, see above test coverage Edit: https://forge.puppet.com/modules/puppetlabs/stdlib#stdlibfqdn as well |
|
Yes, but the gmond.conf man page (https://manpages.debian.org/testing/ganglia-monitor/gmond.conf.5.en.html) suggests that the cluster section should have the following: The cluster section has four attributes: name, owner, latlong and url. the url should contain a url, not just the fqdn. Regards |
|
That might be correct for the product (or the end result) but it would be a breaking change to all those people who have the module installed. |
|
@frizop I think if this would be a breaking change for many you'd have had this bugreport a long time ago, as cluster_url has been in there since 2012. in any case, couldn't you just bump the major version number to let users know of an incompatible change? |
|
I concur that it should be |
|
Rather, lets go with |
|
Fix released as part of https://forge.puppet.com/modules/jhoblitt/ganglia/4.0.0/readme |
Hi
Just been using your module and have been getting this error:
Class[Ganglia::Gmond]: parameter 'cluster_url' expects a match for Stdlib::Fqdn = Pattern[/\A(([a-zA-Z0-9]|[a-zA-Z0-9][a-zA-Z0-9-][a-zA-Z0-9]).)([A-Za-z0-9]|[A-Za-z0-9][A-Za-z0-9-][A-Za-z0-9])\z/], got 'http://*****/ganglia
Should the relevant line in gmond.pp be:
Optional[Stdlib::HTTPUrl] $cluster_url = undef,
rather than:
Optional[Stdlib::Fqdn] $cluster_url = undef,
Regards
John
The text was updated successfully, but these errors were encountered: