main => true,
}
- # This is a workaround to correctly set allowed hosts on munin
- # client when the host is also present.
- #
- # Somewhow the inclusion of munin::host makes both $munin_allow
- # and $munin_port to get blank.
- #
- # Right now we don't need to bother with fixing $munin_port as
- # we are running the munin host in the main master node but it's
- # mandatory to fix $munin_allow so munin can connect into the node.
- $munin_allow = hiera('nodo::munin_node::host', '')
-
include munin::host
include munin::plugins::muninhost
'': { fail("Please set nodo::munin_node::allow in your site config") }
}
- $munin_port = $port
- $munin_allow = $allow
- $munin_host = $host
+ class { 'munin::client':
+ port => $port,
+ allow => $allow,
+ host => $host,
+ }
- include munin::client
munin::plugin { apt_all: ensure => present; }
}