summaryrefslogtreecommitdiff
path: root/manifests/client/base.pp
blob: b3fcc4ab8b711f54676c279a86c957af0dcfe600 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
class munin::client::base {
    service { 'munin-node':
        ensure => running, 
        enable => true,
        hasstatus => true,
        hasrestart => true,
    }
    file {'/etc/munin':
        ensure => directory,
        mode => 0755, owner => root, group => 0;
    }
    $real_munin_allow = $munin_allow ? {
        '' => '127.0.0.1',
        default => $munin_allow
    }
    file {'/etc/munin/munin-node.conf':
	    content => template("munin/munin-node.conf.$operatingsystem"),
        notify => Service['munin-node'],
		mode => 0644, owner => root, group => 0,
	}
	munin::register { $fqdn: }
	include munin::plugins::base
}