diff options
author | Micah Anderson <micah@riseup.net> | 2008-08-08 00:06:05 -0400 |
---|---|---|
committer | Micah Anderson <micah@riseup.net> | 2008-08-08 00:06:05 -0400 |
commit | 1d0ec732fcc23fdfd7763f9e1bfdcc394f2c7693 (patch) | |
tree | 254abb8f4c6fb9cde16b350591aa34add3bfa6b2 | |
parent | ed2382dec7f4a4c86ac44a0960c1ce7b605c591b (diff) | |
download | puppet-backupninja-1d0ec732fcc23fdfd7763f9e1bfdcc394f2c7693.tar.gz puppet-backupninja-1d0ec732fcc23fdfd7763f9e1bfdcc394f2c7693.tar.bz2 |
adding the ability to specify how much maildir backups to keep
-rw-r--r-- | manifests/maildir.pp | 3 | ||||
-rw-r--r-- | templates/maildir.conf.erb | 2 |
2 files changed, 3 insertions, 2 deletions
diff --git a/manifests/maildir.pp b/manifests/maildir.pp index 1ced771..53534db 100644 --- a/manifests/maildir.pp +++ b/manifests/maildir.pp @@ -19,7 +19,8 @@ define backupninja::maildir( $order = 40, $ensure = present, $when = 'everyday at 21:00', $srcdir = false, $destdir = false, $desthost = false, $destuser = false, $destid_file = false, - $remove = no, $multiconnection = yes) + $remove = no, $multiconnection = yes, $keepdaily='4', $keepweekly='2', + $keepmonthly='2') { include backupninja::client diff --git a/templates/maildir.conf.erb b/templates/maildir.conf.erb index 76123b6..fec4d6b 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{when srcdir destdir desthost destuser destid_file}.each do |v| +<% %w{when srcdir destdir desthost destuser destid_file keeydaily keepweekly keepmonthly}.each do |v| if send(v) -%><%= v + ' = ' + send(v) + "\n" %><% end |