From b221570654920306e59948dde08378a95fa4612d Mon Sep 17 00:00:00 2001 From: Silvio Rhatto Date: Thu, 14 Jul 2011 13:15:27 -0300 Subject: Updating FreeBSD template for new sshd_ports variable --- templates/sshd_config/FreeBSD.erb | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-) 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 -- cgit v1.2.3