-
-
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 class ovs_events plugin #743
Conversation
276ceda
to
fffe997
Compare
@bastelfreak: Can this be merged now please, when all checks are passing? |
@alexjfisher This one is similar, can you please check it too? Thanks in advance. |
templates/plugin/ovs_events.conf.erb
Outdated
<%- if @interfaces %> | ||
Interfaces "<%= @interfaces.join('" "') %>" | ||
<%- end -%> | ||
<%- if defined?(@send_notification) %> |
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'd have gone with unless @send_notification.null?
, but I guess if defined?
also works.
manifests/plugin/ovs_events.pp
Outdated
Optional[String] $address = undef, | ||
Optional[Boolean] $dispatch = undef, | ||
String $ensure = 'present', | ||
Optional[Array] $interfaces = 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.
Maybe better to use Optional[Array[1]]
? or default to an empty array and adjust the template.
manifests/plugin/ovs_events.pp
Outdated
# by the plugin | ||
# | ||
class collectd::plugin::ovs_events ( | ||
Optional[String] $address = 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.
Stdlib::Host
is available in recent stdlib.
@paramite LGTM. I've left a couple of random comments, but these are very minor and subjective. |
fffe997
to
257c172
Compare
257c172
to
e939787
Compare
@alexjfisher So as test suite discovered, "@send_notification.null?" does not work. I've added the other suggested changes. |
This patch is adding support for ovs_events plugin configuration and installation.
e939787
to
76c99fc
Compare
# by the plugin | ||
# | ||
class collectd::plugin::ovs_events ( | ||
Optional[Stdlib::Host] $address = 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.
datatypes \o/
Thanks for the PR @paramite ! |
This patch is adding support for ovs_events plugin configuration and installation.