blob: c33ec0d05bf2d96f0bbd8b0a855b369828c3099b (
plain)
1
2
3
4
5
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
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
|
# client.pp - configure a munin node
# Copyright (C) 2007 David Schmitt <david@schmitt.edv-bus.at>
# See LICENSE for the full license granted to you.
# Adapted and improved by admin(at)immerda.ch
class munin::client(
$allow = [ '127.0.0.1' ],
$host = '*',
$port = '4949',
$use_ssh = false,
$manage_shorewall = false,
$shorewall_collector_source = 'net',
$export_tag = 'munin'
) {
anchor { 'munin::client::installed': }
case $::operatingsystem {
openbsd: {
class { 'munin::client::openbsd':
before => Anchor['munin::client::installed']
}
}
darwin: {
class { 'munin::client::darwin':
before => Anchor['munin::client::installed']
}
}
debian,ubuntu: {
class { 'munin::client::debian':
before => Anchor['munin::client::installed']
}
}
gentoo: {
class { 'munin::client::gentoo':
before => Anchor['munin::client::installed']
}
}
centos: {
class { 'munin::client::package':
before => Anchor['munin::client::installed']
}
}
default: {
class { 'munin::client::base':
before => Anchor['munin::client::installed']
}
}
}
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,
}
}
}
|