From e3a739a518ee5f30211873a6b9817d7c2faa4ced Mon Sep 17 00:00:00 2001 From: Nicolas Vigier Date: Thu, 20 Jan 2011 17:48:07 +0000 Subject: add secondary groups option --- modules/buildsystem/manifests/init.pp | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'modules/buildsystem') 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], -- cgit v1.2.1