aboutsummaryrefslogtreecommitdiff
path: root/templates/rsync.conf.erb
diff options
context:
space:
mode:
authorSilvio Rhatto <rhatto@riseup.net>2018-06-06 14:29:40 -0300
committerSilvio Rhatto <rhatto@riseup.net>2018-06-06 14:29:40 -0300
commit5af6a9bb180a263b6c0a6f3088b6c8084fd64ee8 (patch)
treea17cda9d57e3aeca6fe0167aad47da9f714f1487 /templates/rsync.conf.erb
parentb5e02d6fe88dd074f4c04f32dff9f39c43ef5208 (diff)
downloadpuppet-backupninja-5af6a9bb180a263b6c0a6f3088b6c8084fd64ee8.tar.gz
puppet-backupninja-5af6a9bb180a263b6c0a6f3088b6c8084fd64ee8.tar.bz2
Adds when param into backupninja::rsync
Diffstat (limited to 'templates/rsync.conf.erb')
-rw-r--r--templates/rsync.conf.erb2
1 files changed, 2 insertions, 0 deletions
diff --git a/templates/rsync.conf.erb b/templates/rsync.conf.erb
index e563838..a84b959 100644
--- a/templates/rsync.conf.erb
+++ b/templates/rsync.conf.erb
@@ -3,6 +3,8 @@
# the next time Puppet runs. Please make configuration changes to this
# service in Puppet.
+<%= 'when = '+ @when if @when != false %>
+
[general]
<%- %w{log partition fscheck read_only mountpoint backupdir format days keepdaily keepweekly keepmonthly lockfile nicelevel enable_mv_timestamp_bug, tmp, multiconnection}.each do |v|
if has_variable?(v) and instance_variable_get("@#{v}").to_s != "false" -%>