aboutsummaryrefslogtreecommitdiff
path: root/manifests/init.pp
diff options
context:
space:
mode:
authorMicah Anderson <micah@riseup.net>2008-09-26 20:03:10 -0400
committerMicah Anderson <micah@riseup.net>2008-09-26 20:03:10 -0400
commitef6f137cff6cf749031423fd7384dbd0f29a7dfc (patch)
tree444e8f7c3466ffce7264ac568097969ca2c1e2db /manifests/init.pp
parent26e4ac53a93c61fad4c07c44009cd180e4196d36 (diff)
downloadpuppet-sshd-ef6f137cff6cf749031423fd7384dbd0f29a7dfc.tar.gz
puppet-sshd-ef6f137cff6cf749031423fd7384dbd0f29a7dfc.tar.bz2
add the variable sshd_authorized_keys_file with the default set to the normal: %h/.ssh/authorized_keys
Diffstat (limited to 'manifests/init.pp')
-rw-r--r--manifests/init.pp10
1 files changed, 9 insertions, 1 deletions
diff --git a/manifests/init.pp b/manifests/init.pp
index c2f318c..4841038 100644
--- a/manifests/init.pp
+++ b/manifests/init.pp
@@ -83,6 +83,10 @@
#
# sshd_port: If you want to specify a different port than the default 22
# Default: 22
+#
+# sshd_authorized_keys_file: Set this to the location of the AuthorizedKeysFile (e.g. /etc/ssh/authorized_keys/%u)
+# Default: AuthorizedKeysFile %h/.ssh/authorized_keys
+#
class sshd {
include sshd::client
@@ -165,7 +169,11 @@ class sshd::base {
'' => 22,
default => $sshd_port
}
-
+ $real_sshd_authorized_keys_file = $sshd_authorized_keys_file ? {
+ '' => "%h/.ssh/authorized_keys",
+ default => $sshd_authorized_keys_file
+ }
+
file { 'sshd_config':
path => '/etc/ssh/sshd_config',
owner => root,