diff options
author | Micah Anderson <micah@riseup.net> | 2008-09-27 13:30:52 -0400 |
---|---|---|
committer | Micah Anderson <micah@riseup.net> | 2008-09-27 13:30:52 -0400 |
commit | 2391ef9bfe2e5960a024b68d8e19d3a0954dd48c (patch) | |
tree | fef54fbbfbbd5e18063da0c8ecf7d22468d87e5e /manifests/init.pp | |
parent | f62573822bf3997cd31707a9c6fa32604b3f23c1 (diff) |
add the ability to set the ListenAddress configuration option through sshd_listen_address
Diffstat (limited to 'manifests/init.pp')
-rw-r--r-- | manifests/init.pp | 11 |
1 files changed, 10 insertions, 1 deletions
diff --git a/manifests/init.pp b/manifests/init.pp index 4841038..0fd2dfa 100644 --- a/manifests/init.pp +++ b/manifests/init.pp @@ -22,6 +22,11 @@ # of variables, which you might consider to configure. # Checkout the following: # +# sshd_listen_address: specify the addresses sshd should listen on +# set this to "10.0.0.1 192.168.0.1" to have it listen on both +# addresses, or leave it unset to listen on all +# Default: empty -> results in listening on 0.0.0.0 +# # sshd_allowed_users: list of usernames separated by spaces. # set this for example to "foobar root" # to ensure that only user foobar and root @@ -104,7 +109,11 @@ class sshd { class sshd::base { - # prepare variables to use in templates + # prepare variables to use in templates + $real_sshd_listen_address = $sshd_sshd_listen_address ? { + '' => '', + default => $sshd_sshd_listen_address + } $real_sshd_allowed_users = $sshd_allowed_users ? { '' => '', default => $sshd_allowed_users |