aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSilvio Rhatto <rhatto@riseup.net>2013-03-22 20:39:39 -0300
committerSilvio Rhatto <rhatto@riseup.net>2013-03-22 20:39:39 -0300
commitfe17582d5be21fa041e80aad6697d03ba717a7fb (patch)
treefc201ce4f75e58fb2aa5db4781b0ea859cebf4b0
parent273f3b74870e156a069f4b656e474af10258405b (diff)
downloadpuppet-nodo-fe17582d5be21fa041e80aad6697d03ba717a7fb.tar.gz
puppet-nodo-fe17582d5be21fa041e80aad6697d03ba717a7fb.tar.bz2
Adding listen parameter to munin::client as it might be different from host
-rw-r--r--manifests/subsystems/munin.pp14
1 files changed, 8 insertions, 6 deletions
diff --git a/manifests/subsystems/munin.pp b/manifests/subsystems/munin.pp
index f02ec7f..db50735 100644
--- a/manifests/subsystems/munin.pp
+++ b/manifests/subsystems/munin.pp
@@ -1,8 +1,9 @@
# Define a munin node
define munin_node(
- $port = hiera('nodo::munin_node::port', '4949'),
- $allow = hiera('nodo::munin_node::allow', ''),
- $host = hiera('nodo::munin_node::host', $::fqdn)
+ $port = hiera('nodo::munin_node::port', '4949'),
+ $allow = hiera('nodo::munin_node::allow', ''),
+ $host = hiera('nodo::munin_node::host', $::fqdn),
+ $listen = hiera('nodo::munin_node::listen', '*')
) {
case $allow {
@@ -10,9 +11,10 @@ define munin_node(
}
class { 'munin::client':
- port => $port,
- allow => $allow,
- host => $host,
+ port => $port,
+ allow => $allow,
+ host => $host,
+ listen => $listen,
}
munin::plugin { apt_all: ensure => present; }