rule => 'proto tcp mod state state (NEW) dport (munin) @subchain \'munin\' { saddr ($HOST_MUNIN_V6 $HOST_NAGIOS_V6) ACCEPT; }',
notarule => true,
}
+
+ @@munin::master-per-node { $::fqdn: }
}
--- /dev/null
+define munin::master-per-node() {
+ file { "/etc/munin/munin-conf.d/${name}.conf":
+ content => template('munin/munin.conf-per-node.erb'),
+ }
+}
content => template('munin/munin.conf.erb'),
require => Package['munin'];
}
+
+ if $::hostname == 'menotti' {
+ file { '/etc/munin/munin-conf.d':
+ ensure => directory,
+ mode => 755,
+ ;
+ }
+
+ Munin::Master-per-node<<| |>>
+ }
}
--- /dev/null
+##
+### THIS FILE IS UNDER PUPPET CONTROL. DON'T EDIT IT HERE.
+##
+
+[<%= fqdn %>]
+ address <%= ipaddress %>