]> git.donarmstrong.com Git - dsa-puppet.git/blobdiff - modules/munin-node/templates/munin-node.plugin.conf.erb
Merge branch 'master' of git+ssh://puppet.debian.org/srv/puppet.debian.org/git/dsa...
[dsa-puppet.git] / modules / munin-node / templates / munin-node.plugin.conf.erb
index 36c7ecada5053176ab848055d789e9d28f1701d9..b5012f7dee29ccbaff49a3f1b0ccaa7c92747a0d 100644 (file)
@@ -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,11 +85,11 @@ user root
 [spamassassin]
 group maillog
 
-[bind]
+[bind*]
 <%=
 out = case hostname
   when "geo1","geo2","geo3" then "group bind
-env.logfile=/var/log/bind9/geoip-query.log"
+env.logfile /var/log/bind9/geoip-query.log"
   else "group adm"
 end
 out