fuel-library/deployment/puppet/ssh/templates/sshd_match_block.erb
Bartłomiej Piotrowski 513060fc3a Merge saz/ssh 2.8.1
Commit: 3216cd87ae97ee74f06edd0e4868cedbc90e86d9
Source: https://github.com/saz/puppet-ssh/

Implements: blueprint upgrade-openstack-puppet-modules
Change-Id: I8c709fe0d6c604a8e64839295030263dcce43c62
2015-06-15 10:29:30 +00:00

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 -%>