diff options
author | Nicolas Vigier <boklm@mageia.org> | 2011-01-20 17:48:07 +0000 |
---|---|---|
committer | Nicolas Vigier <boklm@mageia.org> | 2011-01-20 17:48:07 +0000 |
commit | e3a739a518ee5f30211873a6b9817d7c2faa4ced (patch) | |
tree | d50150088a07644a906cc113cf6c59ca82750efa /modules/buildsystem/manifests | |
parent | 282cb7e512cb18342d75780316c519e16e7ddaee (diff) | |
download | puppet-e3a739a518ee5f30211873a6b9817d7c2faa4ced.tar puppet-e3a739a518ee5f30211873a6b9817d7c2faa4ced.tar.gz puppet-e3a739a518ee5f30211873a6b9817d7c2faa4ced.tar.bz2 puppet-e3a739a518ee5f30211873a6b9817d7c2faa4ced.tar.xz puppet-e3a739a518ee5f30211873a6b9817d7c2faa4ced.zip |
add secondary groups option
Diffstat (limited to 'modules/buildsystem/manifests')
-rw-r--r-- | modules/buildsystem/manifests/init.pp | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/modules/buildsystem/manifests/init.pp b/modules/buildsystem/manifests/init.pp index 38264e46..3b156274 100644 --- a/modules/buildsystem/manifests/init.pp +++ b/modules/buildsystem/manifests/init.pp @@ -171,7 +171,8 @@ class buildsystem { } } - 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 @@ class buildsystem { comment => $comment, managehome => true, gid => $title, + groups => $groups, shell => "/bin/bash", notify => Exec["unlock$title"], require => Group[$title], |