aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--templates/maildir.conf.erb14
1 files changed, 9 insertions, 5 deletions
diff --git a/templates/maildir.conf.erb b/templates/maildir.conf.erb
index 4d636eb..ac1611a 100644
--- a/templates/maildir.conf.erb
+++ b/templates/maildir.conf.erb
@@ -3,11 +3,15 @@
# the next time Puppet runs. Please make configuration changes to this
# service in Puppet.
-<% %w{when srcdir destdir desthost destuser destid_file keepdaily keepweekly keepmonthly}.each do |v|
- if send(v)
- -%><%= v + ' = ' + send(v) + "\n" %><%
- end
-end -%>
+<%= 'when = '+ @when if @when %>
+<%= 'srcdir = '+ @srcdir if @srcdir %>
+<%= 'destdir = '+ @destdir if @destdir %>
+<%= 'desthost = '+ @desthost if @desthost %>
+<%= 'destuser = '+ @destuser if @destuser %>
+<%= 'destid_file = '+ @destid_file if @destid_file %>
+<%= 'keepdaily = '+ @keepdaily if @keepdaily %>
+<%= 'keepweekly = '+ @keepweekly if @keepweekly %>
+<%= 'keepmonthly = '+ @keepmonthly if @keepmonthly %>
remove = <%= @remove ? 'yes' : 'no' %>
multiconnection = <%= @multiconnection ? 'yes' : 'no' %>