Commit 93851f9f authored by Micah Anderson's avatar Micah Anderson
Browse files

fix template to not include configuration lines if they are not defined this was

necessary to change because in puppet 2.6, if you did not set one of the
variables that had no defaults (eg. reporthost), you would get a backupninja
config file with 'reporthost = undef', which is not valid for backupninja
parent 4b587a76
......@@ -8,9 +8,15 @@ when = <%= send(:when) %>
reportemail = <%= reportemail %>
reportsuccess = <%= reportsuccess ? 'yes' : 'no' %>
reportwarning = <%= reportwarning ? 'yes' : 'no' %>
reporthost = <%= reporthost %>
reportuser = <%= reportuser %>
reportdirectory = <%= reportdirectory %>
<% if reporthost.is_a? String -%>
<%= 'reporthost = ' + reporthost %>
<% end -%>
<% if reportuser.is_a? String -%>
<%= 'reportuser = ' + reportuser %>
<% end -%>
<% if reportdirectory.is_a? String -%>
<%= 'reportdirectory = ' + reportdirectory %>
<% end -%>
logfile = <%= logfile %>
configdirectory = <%= configdir %>
scriptdirectory = <%= scriptdir %>
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment