Puppet Class: munin::client

Defined in:
manifests/client.pp

Overview

configure a munin node

Parameters:

  • allow (Any) (defaults to: [ '127.0.0.1' ])
  • host (Any) (defaults to: '*')
  • port (Any) (defaults to: '4949')
  • use_ssh (Any) (defaults to: false)
  • manage_shorewall (Any) (defaults to: false)
  • shorewall_collector_source (Any) (defaults to: 'net')
  • export_tag (Any) (defaults to: 'munin')
  • description (Any) (defaults to: 'absent')
  • munin_group (Any) (defaults to: 'absent')


6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
# File 'manifests/client.pp', line 6

class munin::client(
  $allow                      = [ '127.0.0.1' ],
  $host                       = '*',
  $port                       = '4949',
  $use_ssh                    = false,
  $manage_shorewall           = false,
  $shorewall_collector_source = 'net',
  $export_tag                 = 'munin',
  $description                = 'absent',
  $munin_group                = 'absent',
) {

  case $::operatingsystem {
    openbsd: { include munin::client::openbsd }
    darwin: { include munin::client::darwin }
    debian,ubuntu: { include munin::client::debian }
    gentoo: { include munin::client::gentoo }
    centos: { include munin::client::base }
    default: { include munin::client::base }
  }
  if $munin::client::manage_shorewall {
    class{'shorewall::rules::munin':
      munin_port       => $port,
      munin_collector  => delete($allow,'127.0.0.1'),
      collector_source => $shorewall_collector_source,
    }
  }
}