aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMicah Anderson <micah@riseup.net>2008-07-08 19:02:07 +0000
committerMicah Anderson <micah@riseup.net>2008-07-08 19:02:07 +0000
commitc4d0241f44979e3ea57589d708bcc6846b893385 (patch)
tree7c0b092cf190c54e732eca24a58552edae00ee72
parent46aae53ee252636124abe82fa2293e124afb7eed (diff)
downloadpuppet-backupninja-c4d0241f44979e3ea57589d708bcc6846b893385.tar.gz
puppet-backupninja-c4d0241f44979e3ea57589d708bcc6846b893385.tar.bz2
forgot the when parameter which is needed for this handler
-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