aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--modules/buildsystem/manifests/init.pp4
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],