aboutsummaryrefslogtreecommitdiff
path: root/templates/rsync.conf.erb
diff options
context:
space:
mode:
authorSilvio Rhatto <rhatto@riseup.net>2015-10-26 12:36:11 -0200
committerSilvio Rhatto <rhatto@riseup.net>2015-10-26 12:36:11 -0200
commitfee18a9d990fc03c696c3dab17c5c111c7d1264f (patch)
treea319bce3da9393ca35bd24a4f61d643986e4ce1c /templates/rsync.conf.erb
parent381cf73b5920c3f4271f009810288dfee961a7e7 (diff)
downloadpuppet-backupninja-fee18a9d990fc03c696c3dab17c5c111c7d1264f.tar.gz
puppet-backupninja-fee18a9d990fc03c696c3dab17c5c111c7d1264f.tar.bz2
More variable deprecation rollbacks
Diffstat (limited to 'templates/rsync.conf.erb')
-rw-r--r--templates/rsync.conf.erb10
1 files changed, 5 insertions, 5 deletions
diff --git a/templates/rsync.conf.erb b/templates/rsync.conf.erb
index 5ed4acb..0a7173c 100644
--- a/templates/rsync.conf.erb
+++ b/templates/rsync.conf.erb
@@ -4,7 +4,7 @@
# service in Puppet.
[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|
+<%- %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" -%>
<%= v + ' = ' + instance_variable_get("@#{v}").to_s %>
<%-
@@ -15,7 +15,7 @@ end -%>
<% unless @from.empty? and @from.to_s != "false" -%>
from = <%= f@rom %>
<% end -%>
-<%- %w{@include exclude}.each do |v|
+<%- %w{include exclude}.each do |v|
if has_variable?(v)
instance_variable_get("@#{v}").to_a.each do |parameter| -%>
<%= v + ' = ' + parameter %>
@@ -25,7 +25,7 @@ from = <%= f@rom %>
end -%>
[dest]
-<%- %w{@dest @testconnect @ssh @protocol @numericids @compress @host @port @user @id_file @bandwidthlimit @remote_rsync @batch @batchbase @fakesuper}.each do |v|
+<%- %w{dest testconnect ssh protocol numericids compress host port user id_file bandwidthlimit remote_rsync batch batchbase fakesuper}.each do |v|
if has_variable?(v) and instance_variable_get("@#{v}").to_s != "false" -%>
<%= v + ' = ' + instance_variable_get("@#{v}").to_s %>
<%-
@@ -33,7 +33,7 @@ end -%>
end -%>
[services]
-<%- %w{@initscripts service}.each do |v|
+<%- %w{initscripts service}.each do |v|
if has_variable?(v) and instance_variable_get("@#{v}").to_s != "false" -%>
<%= v + ' = ' + instance_variable_get("@#{v}").to_s %>
<%-
@@ -41,7 +41,7 @@ end -%>
end -%>
[system]
-<%- %w{@rm @cp @touch @mv @fsck}.each do |v|
+<%- %w{rm cp touch mv fsck}.each do |v|
if has_variable?(v) and instance_variable_get("@#{v}").to_s != "false" -%>
<%= v + ' = ' + instance_variable_get("@#{v}").to_s %>
<%-