aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMicah Anderson <micah@riseup.net>2012-01-02 18:09:56 -0500
committerMicah Anderson <micah@riseup.net>2012-01-02 18:09:56 -0500
commit3cea58cd5081fdec65e93b76f53243455fc1faed (patch)
treea1042eb2b759724ed55ecd6dc6af46b7ffd32634
parent93851f9f3677009885e54fd53d9150aa5f527078 (diff)
downloadpuppet-backupninja-3cea58cd5081fdec65e93b76f53243455fc1faed.tar.gz
puppet-backupninja-3cea58cd5081fdec65e93b76f53243455fc1faed.tar.bz2
add destport to maildir handler config/template
-rw-r--r--manifests/maildir.pp6
-rw-r--r--templates/maildir.conf.erb2
2 files changed, 4 insertions, 4 deletions
diff --git a/manifests/maildir.pp b/manifests/maildir.pp
index ab7ff55..831292c 100644
--- a/manifests/maildir.pp
+++ b/manifests/maildir.pp
@@ -18,9 +18,9 @@
#
define backupninja::maildir(
$order = 99, $ensure = present, $when = 'everyday at 21:00', $srcdir = false,
- $destdir = false, $desthost = false, $destuser = false, $destid_file = false,
- $remove = false, $multiconnection = yes, $keepdaily='4', $keepweekly='2',
- $keepmonthly='2')
+ $destdir = false, $desthost = false, $destuser = false, $destport='22',
+ $destid_file = false, $remove = false, $multiconnection = yes, $keepdaily='4',
+ $keepweekly='2', $keepmonthly='2')
{
include backupninja::client::maildir
diff --git a/templates/maildir.conf.erb b/templates/maildir.conf.erb
index 351f382..71143d4 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 keepdaily keepweekly keepmonthly}.each do |v|
+<% %w{when srcdir destdir desthost destuser destport destid_file keepdaily keepweekly keepmonthly}.each do |v|
if send(v)
-%><%= v + ' = ' + send(v) + "\n" %><%
end