Commit 1d0ec732 authored by Micah Anderson's avatar Micah Anderson

adding the ability to specify how much maildir backups to keep

parent ed2382de
......@@ -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
......
......@@ -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
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment