3 package { 'munin-node':
7 service { 'munin-node':
9 require => Package['munin-node'],
12 file { '/var/log/munin':
19 file { '/etc/munin/munin-node.conf':
20 content => template('munin/munin-node.conf.erb'),
21 require => Package['munin-node'],
22 notify => Service['munin-node'],
25 file { '/etc/munin/plugin-conf.d/munin-node':
26 content => template('munin/munin-node.plugin.conf.erb'),
27 require => Package['munin-node'],
28 notify => Service['munin-node'],
31 file { '/etc/logrotate.d/munin-node':
32 source => 'puppet:///modules/munin/logrotate',
33 require => Package['munin-node'],
36 file { '/etc/munin/plugins/df':
38 target => '/usr/share/munin/plugins/df',
39 require => Package['munin-node'],
40 notify => Service['munin-node'],
43 file { '/etc/munin/plugins/df_abs':
45 source => 'puppet:///modules/munin/df-wrap',
47 require => Package['munin-node'],
48 notify => Service['munin-node'],
51 file { '/etc/munin/plugins/df_inode':
53 target => '/usr/share/munin/plugins/df_inode',
54 require => Package['munin-node'],
55 notify => Service['munin-node'],
58 @ferm::rule { 'dsa-munin-v4':
59 description => 'Allow munin from munin master',
60 rule => 'proto tcp mod state state (NEW) dport (munin) @subchain \'munin\' { saddr ($HOST_MUNIN_V4 $HOST_NAGIOS_V4) ACCEPT; }',
64 @ferm::rule { 'dsa-munin-v6':
65 description => 'Allow munin from munin master',
67 rule => 'proto tcp mod state state (NEW) dport (munin) @subchain \'munin\' { saddr ($HOST_MUNIN_V6 $HOST_NAGIOS_V6) ACCEPT; }',
71 @@munin::master_per_node { $::fqdn:
72 ipaddress => $::ipaddress,
73 munin_async => $::munin_async,
76 #if $::munin_async and str2bool($::munin_async) == true {
77 # file { '/etc/ssh/userkeys/munin-async':
78 # source => 'puppet:///modules/munin/munin-async-authkeys',
81 # file { '/etc/ssh/userkeys/munin-async':
85 package { 'munin-async':
88 file { '/etc/ssh/userkeys/munin-async':
89 source => 'puppet:///modules/munin/munin-async-authkeys',