X-Git-Url: https://git.adam-barratt.org.uk/?a=blobdiff_plain;f=modules%2Fmunin-node%2Ftemplates%2Fmunin-node.plugin.conf.erb;h=b5012f7dee29ccbaff49a3f1b0ccaa7c92747a0d;hb=e4cdc52cf7b1b43e2dea82bc3f5712364cfda0b9;hp=07dc7b22699f36f752fc4e3cfcfd28a5deed419e;hpb=14b9d60ed88376a87c5643ea6731d5b0902ad312;p=mirror%2Fdsa-puppet.git diff --git a/modules/munin-node/templates/munin-node.plugin.conf.erb b/modules/munin-node/templates/munin-node.plugin.conf.erb index 07dc7b226..b5012f7de 100644 --- a/modules/munin-node/templates/munin-node.plugin.conf.erb +++ b/modules/munin-node/templates/munin-node.plugin.conf.erb @@ -19,7 +19,7 @@ group adm, maillog user root <%= out = "" -if mx == "exim4" +if has_variable?("mta") and mta == "exim4" out=" [exim_mail*] user Debian-exim @@ -27,7 +27,16 @@ group maillog" end out %> - +<%= +out = "" +if has_variable?("vsftpd") and vsftpd == "true" + out=" +[vsftpd] +user root +" +end +out +%> [fw_conntrack] user root @@ -52,7 +61,7 @@ env.mysqlopts --defaults-extra-file=/etc/mysql/debian.cnf <%= out = "" -if mx == "postfix" +if has_variable?("mta") and mta == "postfix" out=" [postfix_mailqueue] user postfix @@ -76,10 +85,12 @@ user root [spamassassin] group maillog -[bind] +[bind*] <%= -out = case node - when geo1,geo2,geo3 then "env.logfile=/var/log/bind9/geoip-query.log" +out = case hostname + when "geo1","geo2","geo3" then "group bind +env.logfile /var/log/bind9/geoip-query.log" + else "group adm" end out %>