Revision
862
Author
boklm
Date
2011-01-20 18:48:07 +0100 (Thu, 20 Jan 2011)

Log Message

add secondary groups option

Modified Paths

Modified: puppet/modules/buildsystem/manifests/init.pp
===================================================================
--- puppet/modules/buildsystem/manifests/init.pp	2011-01-20 17:41:50 UTC (rev 861)
+++ puppet/modules/buildsystem/manifests/init.pp	2011-01-20 17:48:07 UTC (rev 862)
@@ -171,7 +171,8 @@
         }
     }
 
-    define sshuser($homedir, $comment) {
+    # $groups: array of secondary groups (only local groups, no ldap)
+    define sshuser($homedir, $comment, $groups = []) {
         group {"$title": 
             ensure => present,
         }
@@ -181,6 +182,7 @@
             comment => $comment,
             managehome => true,
             gid => $title,
+	    groups => $groups,
             shell => "/bin/bash",
             notify => Exec["unlock$title"],
             require => Group[$title],