diff options
author | Silvio Rhatto <rhatto@riseup.net> | 2010-08-16 11:47:01 -0300 |
---|---|---|
committer | Silvio Rhatto <rhatto@riseup.net> | 2010-08-16 11:47:01 -0300 |
commit | bee234d0a4e490b0531e1e23488c514dbae7d816 (patch) | |
tree | e605efe5935fc1775cf71fb3adfe08aa97559319 /templates | |
parent | 7f3356e33789703c9ebcd8b1477e5c0d0b2b3feb (diff) | |
download | puppet-backupninja-bee234d0a4e490b0531e1e23488c514dbae7d816.tar.gz puppet-backupninja-bee234d0a4e490b0531e1e23488c514dbae7d816.tar.bz2 |
Initial code for rsync handler
Diffstat (limited to 'templates')
-rw-r--r-- | templates/rsync.conf.erb | 44 |
1 files changed, 44 insertions, 0 deletions
diff --git a/templates/rsync.conf.erb b/templates/rsync.conf.erb new file mode 100644 index 0000000..8c61fc8 --- /dev/null +++ b/templates/rsync.conf.erb @@ -0,0 +1,44 @@ +# This configuration file was auto-generated by the Puppet configuration +# management system. Any changes you make to this file will be overwritten +# the next time Puppet runs. Please make configuration changes to this +# 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| + if has_variable?(v) and instance_variable_get("@#{v}").to_s != "false" -%> +<%= v + ' = ' + instance_variable_get("@#{v}").to_s %> +<%- + end +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| + if has_variable?(v) and instance_variable_get("@#{v}").to_s != "false" -%> +<%= v + ' = ' + instance_variable_get("@#{v}").to_s %> +<%- + end +end -%> + +[dest] +<%- %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 %> +<%- + end +end -%> + +[services] +<%- %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 %> +<%- + end +end -%> + +[system] +<%- %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 %> +<%- + end +end -%> |