aboutsummaryrefslogtreecommitdiff
path: root/manifests/init.pp
diff options
context:
space:
mode:
authorMicah Anderson <micah@riseup.net>2008-09-26 18:23:25 -0400
committerMicah Anderson <micah@riseup.net>2008-09-26 18:23:25 -0400
commit26e4ac53a93c61fad4c07c44009cd180e4196d36 (patch)
treefd279e2498af12c00fa1f59d32306f193f3e0860 /manifests/init.pp
parente525f18d129ac3b9adc8e6df89c9e5e48367439c (diff)
downloadpuppet-sshd-26e4ac53a93c61fad4c07c44009cd180e4196d36.tar.gz
puppet-sshd-26e4ac53a93c61fad4c07c44009cd180e4196d36.tar.bz2
add sshd_port variable enabling you to set a different port for sshd, default is 22
Diffstat (limited to 'manifests/init.pp')
-rw-r--r--manifests/init.pp8
1 files changed, 7 insertions, 1 deletions
diff --git a/manifests/init.pp b/manifests/init.pp
index e48524d..c2f318c 100644
--- a/manifests/init.pp
+++ b/manifests/init.pp
@@ -80,7 +80,9 @@
# sshd_permit_empty_passwords: If you want enable PermitEmptyPasswords to allow empty passwords
# Valid Values: yes or no
# Default: no
-
+#
+# sshd_port: If you want to specify a different port than the default 22
+# Default: 22
class sshd {
include sshd::client
@@ -159,6 +161,10 @@ class sshd::base {
'' => 'no',
default => $sshd_permit_empty_passwords
}
+ $real_sshd_port = $sshd_port ? {
+ '' => 22,
+ default => $sshd_port
+ }
file { 'sshd_config':
path => '/etc/ssh/sshd_config',