rdiff.conf.erb 1.07 KB
Newer Older
Micah Anderson's avatar
Micah Anderson committed
1 2 3 4 5
# 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.

chris's avatar
chris committed
6
<%= 'options = ' + @options if @options %>
Micah Anderson's avatar
Micah Anderson committed
7

chris's avatar
chris committed
8
<%= @extras if @extras %>
9

Micah Anderson's avatar
Micah Anderson committed
10 11
[source]
type = local
chris's avatar
chris committed
12
<%= 'keep = ' + @keep if @keep %>
Micah Anderson's avatar
Micah Anderson committed
13

chris's avatar
chris committed
14 15 16 17
<% if @include.is_a? String -%>
<%= 'include = ' + @include %>
<% elsif @include.is_a? Array -%>
<%= @include.map { |i| "include = #{i}" }.join("\n") %>
Micah Anderson's avatar
Micah Anderson committed
18 19
<% end -%>

chris's avatar
chris committed
20 21 22 23
<% if @exclude.is_a? String -%>
<%= 'exclude = ' + @exclude %>
<% elsif @exclude.is_a? Array -%>
<%= @exclude.map { |i| "exclude = #{i}" }.join("\n") %>
Micah Anderson's avatar
Micah Anderson committed
24 25
<% end -%>

chris's avatar
chris committed
26 27 28 29
<% if @vsinclude.is_a? String -%>
<%= 'vsinclude = ' + @vsinclude %>
<% elsif @vsinclude.is_a? Array -%>
<%= @vsinclude.map { |i| "vsinclude = #{i}" }.join("\n") %>
30 31
<% end -%>

Micah Anderson's avatar
Micah Anderson committed
32
[dest]
33 34
<%- %w{type host directory user sshoptions}.each do |v|
    if has_variable?(v) and instance_variable_get("@#{v}").to_s != "false" -%>
35
<%= v + ' = ' + instance_variable_get("@#{v}").to_s %>
36 37 38
<%-
    end
end -%>