aboutsummaryrefslogtreecommitdiff
path: root/templates
diff options
context:
space:
mode:
authorMicah Anderson <micah@riseup.net>2008-06-05 16:13:02 +0000
committerMicah Anderson <micah@riseup.net>2008-06-05 16:13:02 +0000
commitebcd9d1dfe6ab890cedd1409346f59ee19bb89e6 (patch)
tree35ee2377bf48481614399fa5985f44f744dedb27 /templates
parentebec65f24c7dbf53dd294614255fbca1a3168b77 (diff)
downloadpuppet-backupninja-ebcd9d1dfe6ab890cedd1409346f59ee19bb89e6.tar.gz
puppet-backupninja-ebcd9d1dfe6ab890cedd1409346f59ee19bb89e6.tar.bz2
Add vsinclude option to rdiff handler
Diffstat (limited to 'templates')
-rw-r--r--templates/rdiff.conf.erb6
1 files changed, 6 insertions, 0 deletions
diff --git a/templates/rdiff.conf.erb b/templates/rdiff.conf.erb
index 2906dc4..f5548e4 100644
--- a/templates/rdiff.conf.erb
+++ b/templates/rdiff.conf.erb
@@ -21,6 +21,12 @@ type = local
<%= exclude.map { |i| "exclude = #{i}" }.join("\n") %>
<% end -%>
+<% if vsinclude.is_a? String -%>
+<%= 'vsinclude = ' + vsinclude %>
+<% elsif vsinclude.is_a? Array -%>
+<%= vsinclude.map { |i| "vsinclude = #{i}" }.join("\n") %>
+<% end -%>
+
[dest]
<% %w{type host directory user sshoptions}.each do |v|
if @scope.lookupvar(v)