]> gitweb.fluxo.info Git - puppet-sshd.git/commitdiff
Updating FreeBSD template for new sshd_ports variable
authorSilvio Rhatto <rhatto@riseup.net>
Thu, 14 Jul 2011 16:15:27 +0000 (13:15 -0300)
committerSilvio Rhatto <rhatto@riseup.net>
Thu, 14 Jul 2011 16:15:27 +0000 (13:15 -0300)
templates/sshd_config/FreeBSD.erb

index 4e4329a1665dc602c561f0551dd377ac2aa47da1..6714003e2027df116d3a98456ccdd174a69baf48 100644 (file)
 <%= sshd_head_additional_options %>
 <%- end %>
 
-<%- unless sshd_port.to_s.empty? then -%>
-<%- if sshd_port.to_s == 'off' then -%>
+# What ports, IPs and protocols we listen for
+<%- sshd_ports.each do |port| -%>
+<%- if port.to_s == 'off' then -%>
 #Port -- disabled by puppet
 <% else -%>
-Port <%= sshd_port -%>
+Port <%= port %>
 <% end -%>
-<%- else -%>
-Port 22
 <%- end -%>
 
 #AddressFamily any