- file { "/etc/munin/munin-node.conf":
- source => [ "puppet:///munin-node/per-host/$fqdn/munin-node.conf",
- "puppet:///munin-node/common/munin-node.conf" ],
- require => Package["munin-node"],
- notify => Exec["munin-node restart"],
+ case $spamd {
+ "true": {
+ activate_munin_check { "spamassassin":; }
+ }
+ }
+
+ case $vsftpd {
+ "true": {
+ package {
+ "logtail": ensure => installed;
+ }
+ activate_munin_check {
+ "vsftpd":;
+ "ps_vsftpd": script => "ps_";
+ }
+ }
+ }
+
+ file {
+ "/etc/munin/munin-node.conf":
+ content => template("munin-node/munin-node.conf.erb"),
+ require => Package["munin-node"],
+ notify => Exec["munin-node restart"];
+
+ "/etc/munin/plugin-conf.d/munin-node":
+ content => template("munin-node/munin-node.plugin.conf.erb"),
+ require => Package["munin-node"],
+ notify => Exec["munin-node restart"];