X-Git-Url: https://git.adam-barratt.org.uk/?a=blobdiff_plain;f=modules%2Fmunin-node%2Ftemplates%2Fmunin-node.plugin.conf.erb;h=fbf153977797765968d3ac237d636f14a273d937;hb=d786f4ec40f28a617b962f753c1350e924f91f52;hp=1798fe8122d0fc879354b430b04cb68406a6fb7c;hpb=40953877a0337bbb4ebfdbd1c8109a7c6c8ca347;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 1798fe812..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,10 @@ user root [spamassassin] group maillog -[bind] +[bind*] <%= out = case hostname - when "geo1","geo2","geo3" then "group bind + when "geo1","geo2","geo3","raff" then "group bind env.logfile /var/log/bind9/geoip-query.log" else "group adm" end