summaryrefslogtreecommitdiff
path: root/manifests
diff options
context:
space:
mode:
Diffstat (limited to 'manifests')
-rw-r--r--manifests/init.pp3
-rw-r--r--manifests/munin.pp20
2 files changed, 23 insertions, 0 deletions
diff --git a/manifests/init.pp b/manifests/init.pp
index 9c963f6..06c0d02 100644
--- a/manifests/init.pp
+++ b/manifests/init.pp
@@ -22,6 +22,9 @@ class apcupsd(
$device = '/dev/ttyS0',
$ensure = 'present',
$nisip = '127.0.0.1',
+ $onbatterydelay = '6',
+ $batterylevel = '5',
+ $minutes = '3')
$admin = 'root',
$mail = 'mail',
$polltime = '60' )
diff --git a/manifests/munin.pp b/manifests/munin.pp
new file mode 100644
index 0000000..46b75bd
--- /dev/null
+++ b/manifests/munin.pp
@@ -0,0 +1,20 @@
+class apcupsd::munin(
+ $ensure = present
+) {
+ munin::plugin::deploy { 'apc_nis':
+ source => "apcupsd/munin/apc_nis",
+ ensure => $ensure,
+ }
+
+ # From http://munin-monitoring.org/browser/munin-contrib/plugins/ups/apcupsd_ww
+ munin::plugin::deploy { 'apcupsd_ww':
+ source => "apcupsd/munin/apcupsd_ww",
+ ensure => absent,
+ }
+
+ # From https://raw.githubusercontent.com/munin-monitoring/contrib/master/plugins/ups/apcupsd_pct
+ #munin::plugin::deploy { 'apcupsd_pct':
+ # source => "apcupsd/munin/apcupsd_pct",
+ # ensure => $ensure,
+ #}
+}