aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--manifests/subsystems/ups.pp25
1 files changed, 20 insertions, 5 deletions
diff --git a/manifests/subsystems/ups.pp b/manifests/subsystems/ups.pp
index ccf37d9..cc6677e 100644
--- a/manifests/subsystems/ups.pp
+++ b/manifests/subsystems/ups.pp
@@ -19,14 +19,29 @@ class ups {
'': { $ups_polltime = '60' }
}
+ case $ups_onbatterydelay {
+ '': { $ups_onbatterydelay = '6' }
+ }
+
+ case $ups_batterylevel {
+ '': { $ups_batterylevel = '5' }
+ }
+
+ case $ups_minutes {
+ '': { $ups_minutes = '3' }
+ }
+
case $has_ups {
true: {
class { "apcupsd":
- upstype => $ups_type,
- cable => $ups_cable,
- device => $ups_dev,
- nisip => $ups_nisip,
- polltime => $ups_polltime,
+ upstype => $ups_type,
+ cable => $ups_cable,
+ device => $ups_dev,
+ nisip => $ups_nisip,
+ polltime => $ups_polltime,
+ onbatterydelay => $ups_onbatterydelay,
+ batterylevel => $ups_batterylevel,
+ minutes => $ups_minutes,
}
}
}