aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSilvio Rhatto <rhatto@riseup.net>2010-08-16 16:50:24 -0300
committerSilvio Rhatto <rhatto@riseup.net>2010-08-16 16:50:24 -0300
commitc5220c6efb0ae15739c9a78f45a828b19435e31c (patch)
treefa6bc7ee16ea6db9a9774ebc0a67c9fde36218b7
parent06b5fbe33fabfa97755a840119368440ab258365 (diff)
downloadpuppet-backupninja-c5220c6efb0ae15739c9a78f45a828b19435e31c.tar.gz
puppet-backupninja-c5220c6efb0ae15739c9a78f45a828b19435e31c.tar.bz2
Right now just local origin and remote destination is supported
-rw-r--r--manifests/rsync.pp1
-rw-r--r--templates/rsync.conf.erb2
2 files changed, 2 insertions, 1 deletions
diff --git a/manifests/rsync.pp b/manifests/rsync.pp
index 7d925f2..bcd1d1b 100644
--- a/manifests/rsync.pp
+++ b/manifests/rsync.pp
@@ -1,5 +1,6 @@
# Run rsync as part of a backupninja run.
# Based on backupninja::rdiff
+# Right now just local origin and remote destination is supported.
define backupninja::rsync(
$order = 90, $ensure = present, $user = false, $home = false, $host = false,
diff --git a/templates/rsync.conf.erb b/templates/rsync.conf.erb
index 8c61fc8..594683c 100644
--- a/templates/rsync.conf.erb
+++ b/templates/rsync.conf.erb
@@ -12,7 +12,7 @@
end -%>
[source]
-<%- %w{from host port user testconnect include exclude ssh protocol rsync rssync_options exclude_vserver, numericids, compress, bandwidthlimit, remote_rsync, id_file, batch, batchbase, filelist, filelistbase}.each do |v|
+<%- %w{from testconnect include exclude ssh protocol rsync rssync_options exclude_vserver, numericids, compress, bandwidthlimit, remote_rsync, id_file, batch, batchbase, filelist, filelistbase}.each do |v|
if has_variable?(v) and instance_variable_get("@#{v}").to_s != "false" -%>
<%= v + ' = ' + instance_variable_get("@#{v}").to_s %>
<%-