aboutsummaryrefslogtreecommitdiff
path: root/manifests/munin.pp
blob: b23978715453dee14cfadae607a72f244dc60db7 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
# 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
}