[Mageia-sysadm] [862] add secondary groups option
root at mageia.org
root at mageia.org
Thu Jan 20 18:48:08 CET 2011
Revision: 862
Author: boklm
Date: 2011-01-20 18:48:07 +0100 (Thu, 20 Jan 2011)
Log Message:
-----------
add secondary groups option
Modified Paths:
--------------
puppet/modules/buildsystem/manifests/init.pp
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],
-------------- next part --------------
An HTML attachment was scrubbed...
URL: </pipermail/mageia-sysadm/attachments/20110120/5a9ad1e6/attachment.html>
More information about the Mageia-sysadm
mailing list