blob: f29afb86bed4c36e98bd7c4aa7ec15f9ed7f8639 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
|
# Define a munin node
define munin_node($port = '4949') {
case $global_munin_allow {
'': { fail("Please set \$global_munin_allow in your site config") }
}
$munin_allow = $node_munin_allow ? {
'' => "$global_munin_allow",
default => "$node_munin_allow",
}
$munin_port = $node_munin_port ? {
'' => "$port",
default => "$node_munin_port",
}
include munin::client
munin::plugin { apt_all: ensure => present; }
}
|