Cleanup templates: sshd_port is guaranteed by init.pp not to be empty.
This commit is contained in:
parent
060703f6a2
commit
23efb583bf
6 changed files with 0 additions and 24 deletions
|
@ -16,15 +16,11 @@
|
|||
|
||||
# only protocol 2
|
||||
Protocol 2
|
||||
<%- unless sshd_port.to_s.empty? then -%>
|
||||
<%- if sshd_port.to_s == 'off' then -%>
|
||||
#Port -- disabled by puppet
|
||||
<% else -%>
|
||||
Port <%= sshd_port -%>
|
||||
<% end -%>
|
||||
<%- else -%>
|
||||
Port 22
|
||||
<%- end -%>
|
||||
|
||||
# Use these options to restrict which interfaces/protocols sshd will bind to
|
||||
<% for address in sshd_listen_address -%>
|
||||
|
|
|
@ -6,15 +6,11 @@
|
|||
<%- end %>
|
||||
|
||||
# What ports, IPs and protocols we listen for
|
||||
<%- unless sshd_port.to_s.empty? then -%>
|
||||
<%- if sshd_port.to_s == 'off' then -%>
|
||||
#Port -- disabled by puppet
|
||||
<% else -%>
|
||||
Port <%= sshd_port -%>
|
||||
<% end -%>
|
||||
<%- else -%>
|
||||
Port 22
|
||||
<%- end -%>
|
||||
|
||||
# Use these options to restrict which interfaces/protocols sshd will bind to
|
||||
<% for address in sshd_listen_address -%>
|
||||
|
|
|
@ -6,15 +6,11 @@
|
|||
<%- end %>
|
||||
|
||||
# What ports, IPs and protocols we listen for
|
||||
<%- unless sshd_port.to_s.empty? then -%>
|
||||
<%- if sshd_port.to_s == 'off' then -%>
|
||||
#Port -- disabled by puppet
|
||||
<% else -%>
|
||||
Port <%= sshd_port -%>
|
||||
<% end -%>
|
||||
<%- else -%>
|
||||
Port 22
|
||||
<%- end -%>
|
||||
|
||||
# Use these options to restrict which interfaces/protocols sshd will bind to
|
||||
<% for address in sshd_listen_address -%>
|
||||
|
|
|
@ -6,15 +6,11 @@
|
|||
<%- end %>
|
||||
|
||||
# What ports, IPs and protocols we listen for
|
||||
<%- unless sshd_port.to_s.empty? then -%>
|
||||
<%- if sshd_port.to_s == 'off' then -%>
|
||||
#Port -- disabled by puppet
|
||||
<% else -%>
|
||||
Port <%= sshd_port -%>
|
||||
<% end -%>
|
||||
<%- else -%>
|
||||
Port 22
|
||||
<%- end -%>
|
||||
|
||||
# Use these options to restrict which interfaces/protocols sshd will bind to
|
||||
<% for address in sshd_listen_address -%>
|
||||
|
|
|
@ -14,15 +14,11 @@
|
|||
<%= sshd_head_additional_options %>
|
||||
<%- end %>
|
||||
|
||||
<%- unless sshd_port.to_s.empty? then -%>
|
||||
<%- if sshd_port.to_s == 'off' then -%>
|
||||
#Port -- disabled by puppet
|
||||
<% else -%>
|
||||
Port <%= sshd_port -%>
|
||||
<% end -%>
|
||||
<%- else -%>
|
||||
Port 22
|
||||
<%- end -%>
|
||||
|
||||
# Use these options to restrict which interfaces/protocols sshd will bind to
|
||||
<% for address in sshd_listen_address -%>
|
||||
|
|
|
@ -12,15 +12,11 @@
|
|||
<%= sshd_head_additional_options %>
|
||||
<%- end %>
|
||||
|
||||
<%- unless sshd_port.to_s.empty? then -%>
|
||||
<%- if sshd_port.to_s == 'off' then -%>
|
||||
#Port -- disabled by puppet
|
||||
<% else -%>
|
||||
Port <%= sshd_port -%>
|
||||
<% end -%>
|
||||
<%- else -%>
|
||||
Port 22
|
||||
<%- end -%>
|
||||
|
||||
# Use these options to restrict which interfaces/protocols sshd will bind to
|
||||
<% for address in sshd_listen_address -%>
|
||||
|
|
Loading…
Reference in a new issue