diff options
author | mh <mh@immerda.ch> | 2009-09-29 23:43:42 +0200 |
---|---|---|
committer | Micah Anderson <micah@riseup.net> | 2009-12-07 16:04:22 -0500 |
commit | c8e0ef9ede82e50a9606752cb7645749e5b2683e (patch) | |
tree | 84f1dc2a515106e09452ff1059cb4055b58a99ce /manifests/init.pp | |
parent | 37736c895fd3b73366d7a1b7902de5e9455dfc12 (diff) | |
download | puppet-sshd-c8e0ef9ede82e50a9606752cb7645749e5b2683e.tar.gz puppet-sshd-c8e0ef9ede82e50a9606752cb7645749e5b2683e.tar.bz2 |
better set the variables in the init
Diffstat (limited to 'manifests/init.pp')
-rw-r--r-- | manifests/init.pp | 65 |
1 files changed, 65 insertions, 0 deletions
diff --git a/manifests/init.pp b/manifests/init.pp index cece69e..8489a6a 100644 --- a/manifests/init.pp +++ b/manifests/init.pp @@ -119,6 +119,71 @@ # Default: empty -> not added. class sshd { + # prepare variables to use in templates + case $sshd_listen_address { + '': { $sshd_listen_address = [ '0.0.0.0', '::' ] } + } + case $sshd_allowed_users { + '': { $sshd_allowed_users = '' } + } + case $sshd_allowed_groups { + '': { $sshd_allowed_groups = '' } + } + case $sshd_use_pam { + '': { $sshd_use_pam = 'no' } + } + case $sshd_permit_root_login { + '': { $sshd_permit_root_login = 'without-password' } + } + case $sshd_password_authentication { + '': { $sshd_password_authentication = 'no' } + } + case $sshd_tcp_forwarding { + '': { $sshd_tcp_forwarding = 'no' } + } + case $sshd_x11_forwarding { + '': { $sshd_x11_forwarding = 'no' } + } + case $sshd_agent_forwarding { + '': { $sshd_agent_forwarding = 'no' } + } + case $sshd_challenge_response_authentication { + '': { $sshd_challenge_response_authentication = 'no' } + } + case $sshd_pubkey_authentication { + '': { $sshd_pubkey_authentication = 'yes' } + } + case $sshd_rsa_authentication { + '': { $sshd_rsa_authentication = 'no' } + } + case $sshd_strict_modes { + '': { $sshd_strict_modes = 'yes' } + } + case $sshd_ignore_rhosts { + '': { $sshd_ignore_rhosts = 'yes' } + } + case $sshd_rhosts_rsa_authentication { + '': { $sshd_rhosts_rsa_authentication = 'no' } + } + case $sshd_hostbased_authentication { + '': { $sshd_hostbased_authentication = 'no' } + } + case $sshd_permit_empty_passwords { + '': { $sshd_permit_empty_passwords = 'no' } + } + case $sshd_port { + '': { $sshd_port = 22 } + } + case $sshd_authorized_keys_file { + '': { $sshd_authorized_keys_file = "%h/.ssh/authorized_keys" } + } + case $sshd_sftp_subsystem { + '': { $sshd_sftp_subsystem = '' } + } + case $sshd_additional_options { + '': { $sshd_additional_options = '' } + } + include sshd::client case $operatingsystem { |