aboutsummaryrefslogtreecommitdiff
path: root/manifests
diff options
context:
space:
mode:
authorMicah Anderson <micah@riseup.net>2008-09-26 17:10:33 -0400
committerMicah Anderson <micah@riseup.net>2008-09-26 17:10:33 -0400
commit6f5a865b583b1cc2c51484ce03f88be52e2c5b8d (patch)
tree6cf437b9fe0b0e4998903506e5f18ef924ea1cd1 /manifests
parent51c18b6b8f71a925e3c94b459dbc257f2466c453 (diff)
downloadpuppet-sshd-6f5a865b583b1cc2c51484ce03f88be52e2c5b8d.tar.gz
puppet-sshd-6f5a865b583b1cc2c51484ce03f88be52e2c5b8d.tar.bz2
add sshd_pubkey_authentication variable, with the default set to yes
Diffstat (limited to 'manifests')
-rw-r--r--manifests/init.pp8
1 files changed, 8 insertions, 0 deletions
diff --git a/manifests/init.pp b/manifests/init.pp
index 029ab95..413c46a 100644
--- a/manifests/init.pp
+++ b/manifests/init.pp
@@ -51,6 +51,10 @@
# sshd_agent_forwarding: If you want to allow ssh-agent forwarding
# Valid Values: yes or no
# Default: no
+#
+# sshd_pubkey_authentication: If you want to enable public key authentication
+# Valid Values: yes or no
+# Default: yes
class sshd {
include sshd::client
@@ -97,6 +101,10 @@ class sshd::base {
'' => 'no',
default => $sshd_challenge_response_authentication
}
+ $real_sshd_pubkey_authentication = $sshd_pubkey_authentication ? {
+ '' => 'no',
+ default => $sshd_pubkey_authentication
+ }
file { 'sshd_config':
path => '/etc/ssh/sshd_config',