513060fc3a
Commit: 3216cd87ae97ee74f06edd0e4868cedbc90e86d9 Source: https://github.com/saz/puppet-ssh/ Implements: blueprint upgrade-openstack-puppet-modules Change-Id: I8c709fe0d6c604a8e64839295030263dcce43c62
20 lines
294 B
Plaintext
20 lines
294 B
Plaintext
<%-
|
|
def bool2str(v)
|
|
case v
|
|
when true
|
|
'yes'
|
|
when false
|
|
'no'
|
|
else
|
|
v
|
|
end
|
|
end
|
|
-%>
|
|
Match <%= @type %> <%= @name %>
|
|
<%- @options.keys.sort.each do |k| -%>
|
|
<%- v = @options[k] -%>
|
|
<%- if v != :undef -%>
|
|
<%= k %> <%= bool2str(v) %>
|
|
<%- end -%>
|
|
<%- end -%>
|