X-Git-Url: https://git.adam-barratt.org.uk/?a=blobdiff_plain;ds=sidebyside;f=modules%2Fmunin-node%2Ftemplates%2Fmunin-node.plugin.conf.erb;h=fbf153977797765968d3ac237d636f14a273d937;hb=d786f4ec40f28a617b962f753c1350e924f91f52;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..fbf153977 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","raff" then "group bind +env.logfile /var/log/bind9/geoip-query.log" + else "group adm" end out %>