From 892c327983c4f1f415e0f91ba1c4b739519935a4 Mon Sep 17 00:00:00 2001 From: Silvio Rhatto Date: Thu, 6 Jun 2013 16:30:54 -0300 Subject: Adding munin parameter into nodo::subsystem::ups --- manifests/subsystem/ups.pp | 11 +++++------ 1 file changed, 5 insertions(+), 6 deletions(-) (limited to 'manifests/subsystem/ups.pp') 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, } } } -- cgit v1.2.3