[Mageia-sysadm] [776] fix bcd problem of variable missing

root at mageia.org root at mageia.org
Thu Jan 13 19:12:27 CET 2011


Revision: 776
Author:   misc
Date:     2011-01-13 19:12:27 +0100 (Thu, 13 Jan 2011)
Log Message:
-----------
fix bcd problem of variable missing

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

Modified: puppet/modules/bcd/manifests/init.pp
===================================================================
--- puppet/modules/bcd/manifests/init.pp	2011-01-13 18:12:25 UTC (rev 775)
+++ puppet/modules/bcd/manifests/init.pp	2011-01-13 18:12:27 UTC (rev 776)
@@ -1,10 +1,13 @@
 class bcd {
-    $bcd_login = 'bcd'
-    $bcd_home = '/home/bcd'
+    class variable {
 
-    class base {
-	include sudo
+        $bcd_login = 'bcd'
+        $bcd_home = '/home/bcd'
+    }
 
+    class base inherits variable {
+        include sudo
+
         buildsystem::sshuser { $bcd_login:
 	    homedir => $bcd_home,
  	    comment => "User for creating ISOs",
@@ -23,10 +26,11 @@
     }
 
     define ssh_access($type, $key) {
-	ssh_authorized_key{$name:
-		type => $type,
-		key => $key,
-		user => $bcd_login,
-	}
+        include bcd::variable
+        ssh_authorized_key{$name:
+            type => $type,
+            key => $key,
+            user => $bcd_login,
+        }
     }
 }
-------------- next part --------------
An HTML attachment was scrubbed...
URL: </pipermail/mageia-sysadm/attachments/20110113/05cd68e9/attachment-0001.html>


More information about the Mageia-sysadm mailing list