node 'mailing1.mysite.nl' inherits mysite {
# The tag is an experiment, to see if we can automate munin and nagios a bit
tag(postfix)
include syslog::client
include apache
include euroforum::mailingserver
}
munin::client contains (included by mysite node definition)
# If the server is tagged as postfix, symlink the correct files
if tagged(postfix) {
file {
"/etc/munin/plugins/postfix_mailqueue":
ensure => "/usr/share/munin/plugins/postfix_mailqueue";
}
} else {
notice("No postfix detected.")
}