3 package { 'munin-node':
7 service { 'munin-node':
9 require => Package['munin-node'],
12 $owner = $::lsbdistcodename ? {
18 $gid = $::lsbdistcodename ? {
24 file { '/var/log/munin':
31 file { '/etc/munin/munin-node.conf':
32 content => template('munin/munin-node.conf.erb'),
33 require => Package['munin-node'],
34 notify => Service['munin-node'],
37 file { '/etc/munin/plugin-conf.d/munin-node':
38 content => template('munin/munin-node.plugin.conf.erb'),
39 require => Package['munin-node'],
40 notify => Service['munin-node'],
43 file { [ '/etc/munin/plugins/df', '/etc/munin/plugins/df_abs', '/etc/munin/plugins/df_inode' ]:
44 source => 'puppet:///modules/munin/df-wrap',
46 require => Package['munin-node'],
47 notify => Service['munin-node'],
50 @ferm::rule { 'dsa-munin-v4':
51 description => 'Allow munin from munin master',
52 rule => 'proto tcp mod state state (NEW) dport (munin) @subchain \'munin\' { saddr ($HOST_MUNIN_V4 $HOST_NAGIOS_V4) ACCEPT; }',
56 @ferm::rule { 'dsa-munin-v6':
57 description => 'Allow munin from munin master',
59 rule => 'proto tcp mod state state (NEW) dport (munin) @subchain \'munin\' { saddr ($HOST_MUNIN_V6 $HOST_NAGIOS_V6) ACCEPT; }',
63 @@munin::master-per-node {
65 ipaddress => $::ipaddress,
66 munin_async => $::munin_async,
70 if $::munin_async and str2bool($::munin_async) == true {
71 file { '/etc/ssh/userkeys/munin-async':
72 source => 'puppet:///modules/munin/munin-async-authkeys',
75 file { '/etc/ssh/userkeys/munin-async':