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/logrotate.d/munin-node':
44 source => 'puppet:///modules/munin/logrotate',
45 require => Package['munin-node'],
48 file { [ '/etc/munin/plugins/df', '/etc/munin/plugins/df_abs', '/etc/munin/plugins/df_inode' ]:
49 source => 'puppet:///modules/munin/df-wrap',
51 require => Package['munin-node'],
52 notify => Service['munin-node'],
55 @ferm::rule { 'dsa-munin-v4':
56 description => 'Allow munin from munin master',
57 rule => 'proto tcp mod state state (NEW) dport (munin) @subchain \'munin\' { saddr ($HOST_MUNIN_V4 $HOST_NAGIOS_V4) ACCEPT; }',
61 @ferm::rule { 'dsa-munin-v6':
62 description => 'Allow munin from munin master',
64 rule => 'proto tcp mod state state (NEW) dport (munin) @subchain \'munin\' { saddr ($HOST_MUNIN_V6 $HOST_NAGIOS_V6) ACCEPT; }',
68 @@munin::master-per-node {
70 ipaddress => $::ipaddress,
71 munin_async => $::munin_async,
75 #if $::munin_async and str2bool($::munin_async) == true {
76 # file { '/etc/ssh/userkeys/munin-async':
77 # source => 'puppet:///modules/munin/munin-async-authkeys',
80 # file { '/etc/ssh/userkeys/munin-async':
84 if $::lsbmajdistrelease >= 7 {
85 package { 'munin-async':
88 file { '/etc/ssh/userkeys/munin-async':
89 source => 'puppet:///modules/munin/munin-async-authkeys',