3 package { 'munin-node':
7 service { 'munin-node':
9 require => Package['munin-node'],
12 $owner = $::lsbdistcodename ? {
17 $gid = $::lsbdistcodename ? {
19 default => 'www-data',
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/logrotate.d/munin-node':
42 source => 'puppet:///modules/munin/logrotate',
43 require => Package['munin-node'],
46 file { [ '/etc/munin/plugins/df', '/etc/munin/plugins/df_abs', '/etc/munin/plugins/df_inode' ]:
47 source => 'puppet:///modules/munin/df-wrap',
49 require => Package['munin-node'],
50 notify => Service['munin-node'],
53 @ferm::rule { 'dsa-munin-v4':
54 description => 'Allow munin from munin master',
55 rule => 'proto tcp mod state state (NEW) dport (munin) @subchain \'munin\' { saddr ($HOST_MUNIN_V4 $HOST_NAGIOS_V4) ACCEPT; }',
59 @ferm::rule { 'dsa-munin-v6':
60 description => 'Allow munin from munin master',
62 rule => 'proto tcp mod state state (NEW) dport (munin) @subchain \'munin\' { saddr ($HOST_MUNIN_V6 $HOST_NAGIOS_V6) ACCEPT; }',
66 @@munin::master-per-node {
68 ipaddress => $::ipaddress,
69 munin_async => $::munin_async,
73 #if $::munin_async and str2bool($::munin_async) == true {
74 # file { '/etc/ssh/userkeys/munin-async':
75 # source => 'puppet:///modules/munin/munin-async-authkeys',
78 # file { '/etc/ssh/userkeys/munin-async':
82 if $::lsbmajdistrelease >= 7 {
83 package { 'munin-async':
86 file { '/etc/ssh/userkeys/munin-async':
87 source => 'puppet:///modules/munin/munin-async-authkeys',