-
-
Notifications
You must be signed in to change notification settings - Fork 269
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
Add configuration/support for NFVPE plugins #835
Conversation
ee5ff52
to
26cf834
Compare
manifests/plugin/connectivity.pp
Outdated
class collectd::plugin::connectivity ( | ||
Enum['present', 'absent'] $ensure = 'present', | ||
Boolean $manage_package = $collectd::manage_package, | ||
Array[String] $interfaces = [], |
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.
can you update this to Array[String[1]]
? That enforces a minimal string length of one.
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.
Will do.
manifests/plugin/sysevent.pp
Outdated
Enum['present', 'absent'] $ensure = 'present', | ||
Boolean $manage_package = $collectd::manage_package, | ||
Stdlib::Host $listen_host = '127.0.0.1', | ||
Integer $listen_port = 6666, |
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.
Can you use this type please? https://github.com/puppetlabs/puppetlabs-stdlib/blob/master/types/port.pp. We then need to make sure that stdlib 4.25.0 is the lowest supported version in our metadata.json
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.
Will do.
manifests/plugin/procevent.pp
Outdated
Boolean $manage_package = $collectd::manage_package, | ||
Optional[String] $process = undef, | ||
Optional[String] $regex_process = undef, | ||
Optional[Integer] $buffer_length = 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.
You can also enforce that this has to be a positive integer: https://puppet.com/docs/puppet/5.5/lang_data_number.html#the-integer-data-type
26cf834
to
0e8043a
Compare
manifests/plugin/procevent.pp
Outdated
class collectd::plugin::procevent ( | ||
Enum['present', 'absent'] $ensure = 'present', | ||
Boolean $manage_package = $collectd::manage_package, | ||
Optional[String] $process = 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.
can you use Optional[String[1]]
here?
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.
Sure.
manifests/plugin/procevent.pp
Outdated
Enum['present', 'absent'] $ensure = 'present', | ||
Boolean $manage_package = $collectd::manage_package, | ||
Optional[String] $process = undef, | ||
Optional[String] $regex_process = 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.
can you use Optional[String[1]]
here?
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.
Sure
This patch adds support for NFVPE plugins, namely: sysevent, procevent and connectivity
0e8043a
to
28c2b15
Compare
Thanks! |
Pull Request (PR) description
This patch adds support for NFVPE plugins, namely: sysevent, procevent and connectivity.
Those plugins are not merged yet in collectd itself, but once this (hopefully) happens,
we will have configuration patch ready for merge.
Collectd patches:
collectd/collectd#2624
collectd/collectd#2623
collectd/collectd#2622
This Pull Request (PR) fixes the following issues
n/a