[Mageia-sysadm] [366] iurt from mainnode does not need the private ssh key

root at mageia.org root at mageia.org
Mon Nov 22 01:13:16 CET 2010


Revision: 366
Author:   blino
Date:     2010-11-22 01:13:16 +0100 (Mon, 22 Nov 2010)
Log Message:
-----------
iurt from mainnode does not need the private ssh key

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

Modified: puppet/modules/buildsystem/manifests/init.pp
===================================================================
--- puppet/modules/buildsystem/manifests/init.pp	2010-11-22 00:05:11 UTC (rev 365)
+++ puppet/modules/buildsystem/manifests/init.pp	2010-11-22 00:13:16 UTC (rev 366)
@@ -3,10 +3,14 @@
     class base {
 	$build_login = "iurt"
 	$build_home_dir = "/home/iurt/"
+
+	include ssh::auth
+	ssh::auth::key { $build_login: } # declare a key for build bot: RSA, 2048 bits
     }
 
     class mainnode inherits base {
         include iurtuser
+        ssh::auth::server { $build_login: }
 
         package { "task-bs-cluster-main":
             ensure => "installed"
@@ -45,15 +49,12 @@
             gid => $build_login,
             shell => "/bin/bash",
         }
-
-        include ssh::auth
-        ssh::auth::key { $build_login: } # declare a key for build bot: RSA, 2048 bits
-        ssh::auth::client { $build_login: }
     }
 
     class iurt {
         include sudo
         include iurtuser
+        ssh::auth::client { $build_login: }
 
         # build node common settings
         # we could have the following skip list to use less space:
-------------- next part --------------
An HTML attachment was scrubbed...
URL: </pipermail/mageia-sysadm/attachments/20101122/c189951e/attachment.html>


More information about the Mageia-sysadm mailing list