From: Silvio Rhatto Date: Thu, 14 Jul 2011 16:15:27 +0000 (-0300) Subject: Updating FreeBSD template for new sshd_ports variable X-Git-Url: https://gitweb.fluxo.info/?a=commitdiff_plain;h=b221570654920306e59948dde08378a95fa4612d;p=puppet-sshd.git Updating FreeBSD template for new sshd_ports variable --- diff --git a/templates/sshd_config/FreeBSD.erb b/templates/sshd_config/FreeBSD.erb index 4e4329a..6714003 100644 --- a/templates/sshd_config/FreeBSD.erb +++ b/templates/sshd_config/FreeBSD.erb @@ -20,14 +20,13 @@ <%= 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