]> gitweb.fluxo.info Git - puppet-backupninja.git/commitdiff
adding the ability to specify how much maildir backups to keep
authorMicah Anderson <micah@riseup.net>
Fri, 8 Aug 2008 04:06:05 +0000 (00:06 -0400)
committerMicah Anderson <micah@riseup.net>
Fri, 8 Aug 2008 04:06:05 +0000 (00:06 -0400)
manifests/maildir.pp
templates/maildir.conf.erb

index 1ced7714c3ea6537584d63cb4057e081b6d16a2a..53534dbf55d6bef8ff7da2b3eac7a566feeabed0 100644 (file)
@@ -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
                           
index 76123b63daef70c218c3c665a51576ccb948bd1e..fec4d6b58d0d0a6060d0d2177230ca7b8066eb23 100644 (file)
@@ -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