diff options
author | Silvio Rhatto <rhatto@riseup.net> | 2013-06-05 15:36:21 -0300 |
---|---|---|
committer | Silvio Rhatto <rhatto@riseup.net> | 2013-06-05 15:36:21 -0300 |
commit | 2f41b9eaf6275d6d222efec626ba41edf0e76332 (patch) | |
tree | f6168f4a1adbfc38c5260f02339589cfe82eae84 | |
parent | 7ed1c52b68bbdafe9669cd3e3fcbdd3cc1202ff6 (diff) | |
download | puppet-nodo-2f41b9eaf6275d6d222efec626ba41edf0e76332.tar.gz puppet-nodo-2f41b9eaf6275d6d222efec626ba41edf0e76332.tar.bz2 |
Configuring apc_nis munin plugin
-rw-r--r-- | manifests/defines/munin_node.pp | 4 | ||||
-rw-r--r-- | manifests/subsystem/ups.pp | 8 |
2 files changed, 12 insertions, 0 deletions
diff --git a/manifests/defines/munin_node.pp b/manifests/defines/munin_node.pp index aef5148..f867fd3 100644 --- a/manifests/defines/munin_node.pp +++ b/manifests/defines/munin_node.pp @@ -11,6 +11,10 @@ define munin_node( '': { fail("Please set nodo::munin_node::allow in your config") } } + package { "munin-plugins-extra": + ensure => "present", + } + class { 'munin::client': port => $port, allow => $allow, diff --git a/manifests/subsystem/ups.pp b/manifests/subsystem/ups.pp index d304418..9802d26 100644 --- a/manifests/subsystem/ups.pp +++ b/manifests/subsystem/ups.pp @@ -21,6 +21,14 @@ class nodo::subsystem::ups( batterylevel => $batterylevel, minutes => $minutes, } + + # Graph local UPS + munin::plugin { apc_nis: + ensure => $nisip ? { + '127.0.0.1' => present, + default => absent, + } + } } } } |