-
-
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
plugin: add battery plugin #800
Conversation
manifests/plugin/battery.pp
Outdated
@@ -0,0 +1,17 @@ | |||
# https://collectd.org/wiki/index.php/Plugin:Uptime | |||
class collectd::plugin::battery ( | |||
$ensure = 'present', |
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.
please add a datatype for $ensure
as well.
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.
done
</Plugin> | ||
|
||
EOS | ||
|
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.
please also add a is_expected.to compile.with_all_deps
test
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.
done
templates/plugin/battery.conf.erb
Outdated
@@ -0,0 +1,11 @@ | |||
<Plugin "battery"> |
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.
for new templates we agreed on epp only: https://voxpupuli.org/docs/#reviewing-a-module-pr
Can you please convert this to epp?
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.
done
manifests/plugin/battery.pp
Outdated
class collectd::plugin::battery ( | ||
$ensure = 'present', | ||
$interval = undef, | ||
Optional[Boolean] $values_percentage = 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 we instead default to true or false and don't mark it as optional?
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.
done
this change adds the battery plugin
7a98167
to
5f741b6
Compare
this change adds the battery plugin