aboutsummaryrefslogtreecommitdiff
path: root/manifests/subsystem
diff options
context:
space:
mode:
authorSilvio Rhatto <rhatto@riseup.net>2013-06-06 16:30:54 -0300
committerSilvio Rhatto <rhatto@riseup.net>2013-06-06 16:30:54 -0300
commit892c327983c4f1f415e0f91ba1c4b739519935a4 (patch)
tree65323de5cbb260c66fd1ce48de4bea1d75bdd2c1 /manifests/subsystem
parent4355b4727436351af2b1b2f8721592f5c446d79d (diff)
downloadpuppet-nodo-892c327983c4f1f415e0f91ba1c4b739519935a4.tar.gz
puppet-nodo-892c327983c4f1f415e0f91ba1c4b739519935a4.tar.bz2
Adding munin parameter into nodo::subsystem::ups
Diffstat (limited to 'manifests/subsystem')
-rw-r--r--manifests/subsystem/ups.pp11
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,
}
}
}