3 package { 'munin-node':
7 service { 'munin-node':
9 require => Package['munin-node'],
12 $owner = $::lsbdistcodename ? {
17 $gid = $::lsbdistcodename ? {
22 file { '/var/log/munin':
29 file { '/etc/munin/munin-node.conf':
30 content => template('munin/munin-node.conf.erb'),
31 require => Package['munin-node'],
32 notify => Service['munin-node'],
35 file { '/etc/munin/plugin-conf.d/munin-node':
36 content => template('munin/munin-node.plugin.conf.erb'),
37 require => Package['munin-node'],
38 notify => Service['munin-node'],
41 file { [ '/etc/munin/plugins/df', '/etc/munin/plugins/df_abs', '/etc/munin/plugins/df_inode' ]:
42 source => 'puppet:///modules/munin/df-wrap',
44 require => Package['munin-node'],
45 notify => Service['munin-node'],
48 @ferm::rule { 'dsa-munin-v4':
49 description => 'Allow munin from munin master',
50 rule => 'proto tcp mod state state (NEW) dport (munin) @subchain \'munin\' { saddr ($HOST_MUNIN_V4 $HOST_NAGIOS_V4) ACCEPT; }',
54 @ferm::rule { 'dsa-munin-v6':
55 description => 'Allow munin from munin master',
57 rule => 'proto tcp mod state state (NEW) dport (munin) @subchain \'munin\' { saddr ($HOST_MUNIN_V6 $HOST_NAGIOS_V6) ACCEPT; }',