aboutsummaryrefslogtreecommitdiffstats
path: root/modules/restrictshell/manifests
diff options
context:
space:
mode:
authorMichael Scherer <misc@mageia.org>2010-11-23 23:17:46 +0000
committerMichael Scherer <misc@mageia.org>2010-11-23 23:17:46 +0000
commit0773748d9802ba93ed2594f9807cd8064aeecfe5 (patch)
tree74a4f29ff98e2260ceb74c79889ad46fa018cb21 /modules/restrictshell/manifests
parent84edab7bd61703c16279463f9c5bb02bb86fc588 (diff)
downloadpuppet-0773748d9802ba93ed2594f9807cd8064aeecfe5.tar
puppet-0773748d9802ba93ed2594f9807cd8064aeecfe5.tar.gz
puppet-0773748d9802ba93ed2594f9807cd8064aeecfe5.tar.bz2
puppet-0773748d9802ba93ed2594f9807cd8064aeecfe5.tar.xz
puppet-0773748d9802ba93ed2594f9807cd8064aeecfe5.zip
link root keys in the /var/lib/pubkeys ( easier than to change the location of root keys deployed by puppet )
Diffstat (limited to 'modules/restrictshell/manifests')
-rw-r--r--modules/restrictshell/manifests/init.pp12
1 files changed, 12 insertions, 0 deletions
diff --git a/modules/restrictshell/manifests/init.pp b/modules/restrictshell/manifests/init.pp
index 54452026..c87664a7 100644
--- a/modules/restrictshell/manifests/init.pp
+++ b/modules/restrictshell/manifests/init.pp
@@ -38,6 +38,18 @@ class restrictshell {
mode => 755,
}
+ file { "$pubkeys_directory/root":
+ ensure => directory,
+ owner => root,
+ group => root,
+ mode => 700,
+ }
+
+ file { "$pubkeys_directory/root/authorized_keys":
+ ensure => "/root/.ssh/authorized_keys",
+ mode => 700,
+ }
+
$ldap_pwfile = "/etc/ldap.secret"
file { '/usr/local/bin/ldap-sshkey2file.py':
ensure => present,