diff options
author | Silvio Rhatto <rhatto@riseup.net> | 2013-05-01 14:56:58 -0300 |
---|---|---|
committer | Silvio Rhatto <rhatto@riseup.net> | 2013-05-01 14:56:58 -0300 |
commit | 2a16c945939db56fb85d61c9a95df027627d76c0 (patch) | |
tree | 81dfabaf8a46ebd67faea5a103a895871e7cf75f /manifests/defines/munin_node.pp | |
parent | abaa0f6203cbb86623000ebb979c3926235fe2ff (diff) | |
download | puppet-nodo-2a16c945939db56fb85d61c9a95df027627d76c0.tar.gz puppet-nodo-2a16c945939db56fb85d61c9a95df027627d76c0.tar.bz2 |
Munin: using config parameter instead of load.{warning,critical}
Diffstat (limited to 'manifests/defines/munin_node.pp')
-rw-r--r-- | manifests/defines/munin_node.pp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/manifests/defines/munin_node.pp b/manifests/defines/munin_node.pp index ecbc56f..aef5148 100644 --- a/manifests/defines/munin_node.pp +++ b/manifests/defines/munin_node.pp @@ -4,8 +4,7 @@ define munin_node( $allow = hiera('nodo::munin_node::allow', ''), $host = hiera('nodo::munin_node::host', $::fqdn), $listen = hiera('nodo::munin_node::listen', '*'), - $load_warning = hiera('nodo::munin_node::load_warning', '5'), - $load_critical = hiera('nodo::munin_node::load_critical', '10') + $config = hiera('nodo::munin_node::config', [ 'use_node_name yes', 'load.load.warning 5', 'load.load.critical 10' ]) ) { case $allow { @@ -17,6 +16,7 @@ define munin_node( allow => $allow, host => $host, listen => $listen, + config => $config, } munin::plugin { apt_all: ensure => present; } |