[Mageia-sysadm] [435] link root keys in the /var/lib/pubkeys ( easier than to change the location of root keys deployed by puppet )

root at mageia.org root at mageia.org
Wed Nov 24 00:17:46 CET 2010


Revision: 435
Author:   misc
Date:     2010-11-24 00:17:46 +0100 (Wed, 24 Nov 2010)
Log Message:
-----------
link root keys in the /var/lib/pubkeys ( easier than to change the location of root keys deployed by puppet )

Modified Paths:
--------------
    puppet/modules/restrictshell/manifests/init.pp

Modified: puppet/modules/restrictshell/manifests/init.pp
===================================================================
--- puppet/modules/restrictshell/manifests/init.pp	2010-11-23 22:57:04 UTC (rev 434)
+++ puppet/modules/restrictshell/manifests/init.pp	2010-11-23 23:17:46 UTC (rev 435)
@@ -38,6 +38,18 @@
             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,
-------------- next part --------------
An HTML attachment was scrubbed...
URL: </pipermail/mageia-sysadm/attachments/20101124/c0ffe33b/attachment.html>


More information about the Mageia-sysadm mailing list