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

write_http/disk is own sub package on CentOS 8 #920

Merged
merged 1 commit into from
Mar 14, 2020

Conversation

traylenator
Copy link
Contributor

@traylenator traylenator commented Mar 10, 2020

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.

@traylenator traylenator added the bug Something isn't working label Mar 10, 2020
@traylenator
Copy link
Contributor Author

WIP until #919 is merge.

@traylenator traylenator changed the title WIP: write_http expected to be own package on CentOS 8 WIP: write_http/disk expected to be own package on CentOS 8 Mar 10, 2020
@traylenator traylenator changed the title WIP: write_http/disk expected to be own package on CentOS 8 WIP: write_http/disk is own sub package on CentOS 8 Mar 10, 2020
@bastelfreak
Copy link
Member

@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,
Copy link
Member

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?

Copy link
Contributor Author

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.
@traylenator traylenator changed the title WIP: write_http/disk is own sub package on CentOS 8 write_http/disk is own sub package on CentOS 8 Mar 11, 2020
@traylenator
Copy link
Contributor Author

Rebased.

@bastelfreak bastelfreak merged commit 07a5277 into voxpupuli:master Mar 14, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants