diff options
author | Silvio Rhatto <rhatto@riseup.net> | 2012-06-28 18:27:52 -0300 |
---|---|---|
committer | Silvio Rhatto <rhatto@riseup.net> | 2012-06-28 18:27:52 -0300 |
commit | 2b61bee7177fae9d20118f8b197d5a3f9335afb9 (patch) | |
tree | 014212f0c947cca542d760d704ece743d0e2a340 /manifests | |
parent | 00411cb4f9b0f3e19ad6d5fe0918e870b337f0aa (diff) | |
download | puppet-nodo-2b61bee7177fae9d20118f8b197d5a3f9335afb9.tar.gz puppet-nodo-2b61bee7177fae9d20118f8b197d5a3f9335afb9.tar.bz2 |
Adding more battery parameters at ups class
Diffstat (limited to 'manifests')
-rw-r--r-- | manifests/subsystems/ups.pp | 25 |
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, } } } |