diff options
Diffstat (limited to 'manifests/subsystem/ups.pp')
-rw-r--r-- | manifests/subsystem/ups.pp | 11 |
1 files changed, 5 insertions, 6 deletions
diff --git a/manifests/subsystem/ups.pp b/manifests/subsystem/ups.pp index 915bc40..e9a0235 100644 --- a/manifests/subsystem/ups.pp +++ b/manifests/subsystem/ups.pp @@ -7,7 +7,8 @@ class nodo::subsystem::ups( $polltime = hiera('nodo::subsystem::ups::polltime', '60'), $onbatterydelay = hiera('nodo::subsystem::ups::onbatterydelay', '6'), $batterylevel = hiera('nodo::subsystem::ups::batterylevel', '5'), - $minutes = hiera('nodo::subsystem::ups::minutes', '3') + $minutes = hiera('nodo::subsystem::ups::minutes', '3'), + $munin = hiera('nodo::subsystem::ups::munin', false) ) { case $include { true: { @@ -24,11 +25,9 @@ class nodo::subsystem::ups( # Graph local UPS munin::plugin { 'apc_nis': - ensure => $nisip ? { - '127.0.0.1' => present, - '0.0.0.0' => present, - 'localhost' => present, - default => absent, + ensure => $munin ? { + true => present, + default => absent, } } } |