aboutsummaryrefslogtreecommitdiff
path: root/manifests/defines
diff options
context:
space:
mode:
authorSilvio Rhatto <rhatto@riseup.net>2013-05-01 14:56:58 -0300
committerSilvio Rhatto <rhatto@riseup.net>2013-05-01 14:56:58 -0300
commit2a16c945939db56fb85d61c9a95df027627d76c0 (patch)
tree81dfabaf8a46ebd67faea5a103a895871e7cf75f /manifests/defines
parentabaa0f6203cbb86623000ebb979c3926235fe2ff (diff)
downloadpuppet-nodo-2a16c945939db56fb85d61c9a95df027627d76c0.tar.gz
puppet-nodo-2a16c945939db56fb85d61c9a95df027627d76c0.tar.bz2
Munin: using config parameter instead of load.{warning,critical}
Diffstat (limited to 'manifests/defines')
-rw-r--r--manifests/defines/munin_node.pp4
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; }