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=9ed7097f87411da464e8f40ad48698f35aa628f3;hpb=cca32a1be104377cb4678efbf300b81f1ad5bd96;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 9ed7097f8..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 mta == "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 mta == "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 %>