aboutsummaryrefslogtreecommitdiff
path: root/templates/sshd_config/Debian_lenny.erb
diff options
context:
space:
mode:
Diffstat (limited to 'templates/sshd_config/Debian_lenny.erb')
-rw-r--r--templates/sshd_config/Debian_lenny.erb4
1 files changed, 4 insertions, 0 deletions
diff --git a/templates/sshd_config/Debian_lenny.erb b/templates/sshd_config/Debian_lenny.erb
index c7f4ab4..18f3e4d 100644
--- a/templates/sshd_config/Debian_lenny.erb
+++ b/templates/sshd_config/Debian_lenny.erb
@@ -7,7 +7,11 @@
# 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 -%>