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

plugin: add battery plugin #800

Merged
merged 1 commit into from
May 31, 2018
Merged

Conversation

sileht
Copy link
Contributor

@sileht sileht commented May 25, 2018

this change adds the battery plugin

@@ -0,0 +1,17 @@
# https://collectd.org/wiki/index.php/Plugin:Uptime
class collectd::plugin::battery (
$ensure = 'present',
Copy link
Member

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.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

done

</Plugin>

EOS

Copy link
Member

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

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

done

@@ -0,0 +1,11 @@
<Plugin "battery">
Copy link
Member

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?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

done

class collectd::plugin::battery (
$ensure = 'present',
$interval = undef,
Optional[Boolean] $values_percentage = undef,
Copy link
Member

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?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

done

@bastelfreak bastelfreak added enhancement New feature or request backwards-incompatible needs-work not ready to merge just yet and removed backwards-incompatible labels May 30, 2018
this change adds the battery plugin
@bastelfreak bastelfreak removed the needs-work not ready to merge just yet label May 31, 2018
@bastelfreak bastelfreak merged commit 094fbf3 into voxpupuli:master May 31, 2018
@sileht sileht mentioned this pull request Jun 12, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants