aboutsummaryrefslogtreecommitdiff
path: root/templates
diff options
context:
space:
mode:
authorSilvio Rhatto <rhatto@riseup.net>2011-07-14 13:15:27 -0300
committerSilvio Rhatto <rhatto@riseup.net>2011-07-14 13:15:27 -0300
commitb221570654920306e59948dde08378a95fa4612d (patch)
tree329f88c82f8565932bf6e429b7bd84acef251108 /templates
parent57d8883d485baa09a0841d629fe66406611ca261 (diff)
downloadpuppet-sshd-b221570654920306e59948dde08378a95fa4612d.tar.gz
puppet-sshd-b221570654920306e59948dde08378a95fa4612d.tar.bz2
Updating FreeBSD template for new sshd_ports variable
Diffstat (limited to 'templates')
-rw-r--r--templates/sshd_config/FreeBSD.erb9
1 files 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