Commit d7e28304 authored by Micah Anderson's avatar Micah Anderson

Merge branch 'master' of gitosis@labs.riseup.net:module_backupninja

parents 132bae50 72493d7c
......@@ -28,8 +28,25 @@ type = local
<% end -%>
[dest]
<% %w{type host directory user sshoptions}.each do |v|
if has_variable?(v)
-%><%= v + ' = ' + get_instance_var("@#{v}") + "\n" %><%
end
end -%>
<%- include Puppet::Util::Package
class VersionComparer; extend Puppet::Util::Package; end
if VersionComparer.versioncmp(Puppet.version,'0.24.6') >= 0
%w{type host directory user sshoptions}.each do |v|
if has_variable?(v)
-%>
<%= v + ' = ' + instance_variable_get("@#{v}").to_s %>
<%-
end
end
%>
<%- else -%>
<%- %w{type host directory user sshoptions}.each do |v|
if @scope.lookupvar(v)
-%>
<%= v + ' = ' + @scope.lookupvar(v) %>
<%-
end
end
%>
<%- end -%>
Markdown is supported
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