aboutsummaryrefslogtreecommitdiff
path: root/manifests/subsystems/munin.pp
blob: a0eb7d996dc2fe5d820edee59d51e8372a1e5f93 (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  = hiera('nodo::munin_node::port',  '4949'),
  $allow = hiera('nodo::munin_node::allow', ''),
  $host  = hiera('nodo::munin_node::host',   '')
) {

  case $allow {
    '': { fail("Please set nodo::munin_node::allow in your site config") }
  }

  class { 'munin::client':
    port  => $port,
    allow => $allow,
    host  => $host,
  }

  munin::plugin { apt_all: ensure => present; }
}