-
-
Notifications
You must be signed in to change notification settings - Fork 272
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
write_http/disk is own sub package on CentOS 8 #920
Conversation
WIP until #919 is merge. |
4d94fcc
to
4c35c1c
Compare
@traylenator do you want/need to rebase here? |
class collectd::plugin::write_http ( | ||
Enum['present', 'absent'] $ensure = 'present', | ||
Hash[String, Hash[String, Scalar]] $nodes = {}, | ||
Hash[String, Hash[String, Scalar]] $urls = {} | ||
Hash[String, Hash[String, Scalar]] $urls = {}, | ||
Optional[Boolean] $manage_package = undef, |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I'm not a big fan of an Optional Boolean. Can't we set the default to true or fals?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
In this case there are 3 states.
- Use the default for operating system (so false on debian, true on redhat 8)
- Force to be false.
- Force to be true.
As of CentOS 8 the write_http is in its own subpackage so must be installed on CentOS 8.
Rebased. |
Pull Request (PR) description
As of CentOS 8 the write_http and disk plugins are in their own subpackage
so must be installed on CentOS 8 in these plugins are enabled.
Note this also contains a bugfix for CentOS 7. On CentOS 7 at least as far
as EPEL7 collectd is concerned there is no collectd-disk package and so the attempt on
CentOS 7 to install this
collectd-disk
(by default) is no longer made.acceptance tests for plugins have been added.