aboutsummaryrefslogtreecommitdiff
path: root/templates
diff options
context:
space:
mode:
authorSilvio Rhatto <rhatto@riseup.net>2010-08-16 22:51:37 -0300
committerSilvio Rhatto <rhatto@riseup.net>2010-08-16 22:51:37 -0300
commitacb2e81dce10fc755601bbd0c3e09cd13f1b1fec (patch)
tree2d4fa78a7467225cf8021a460a46d4f1fa636e3f /templates
parent3eed9efd2684766ca3d82b1eb354848b6a7e9015 (diff)
downloadpuppet-backupninja-acb2e81dce10fc755601bbd0c3e09cd13f1b1fec.tar.gz
puppet-backupninja-acb2e81dce10fc755601bbd0c3e09cd13f1b1fec.tar.bz2
Minor fixes
Diffstat (limited to 'templates')
-rw-r--r--templates/rsync.conf.erb6
1 files changed, 3 insertions, 3 deletions
diff --git a/templates/rsync.conf.erb b/templates/rsync.conf.erb
index 1f0a503..71bf0b6 100644
--- a/templates/rsync.conf.erb
+++ b/templates/rsync.conf.erb
@@ -20,7 +20,7 @@ end -%>
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 %>
<%-
@@ -28,7 +28,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 %>
<%-
@@ -36,7 +36,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 %>
<%-