aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--manifests/maildir.pp1
-rw-r--r--templates/maildir.conf.erb2
2 files changed, 2 insertions, 1 deletions
diff --git a/manifests/maildir.pp b/manifests/maildir.pp
index b7f36f7..027a499 100644
--- a/manifests/maildir.pp
+++ b/manifests/maildir.pp
@@ -18,6 +18,7 @@
#
define backupninja::maildir($order = 40,
$ensure = present,
+ $when = 'everyday at 21:00',
$srcdir = '/maildir',
$destdir = '/crypt/maildir',
$desthost = false,
diff --git a/templates/maildir.conf.erb b/templates/maildir.conf.erb
index 370596a..76123b6 100644
--- a/templates/maildir.conf.erb
+++ b/templates/maildir.conf.erb
@@ -3,7 +3,7 @@
# the next time Puppet runs. Please make configuration changes to this
# service in Puppet.
-<% %w{srcdir destdir desthost destuser destid_file}.each do |v|
+<% %w{when srcdir destdir desthost destuser destid_file}.each do |v|
if send(v)
-%><%= v + ' = ' + send(v) + "\n" %><%
end