171 |
} |
} |
172 |
} |
} |
173 |
|
|
174 |
define sshuser($homedir, $comment) { |
# $groups: array of secondary groups (only local groups, no ldap) |
175 |
|
define sshuser($homedir, $comment, $groups = []) { |
176 |
group {"$title": |
group {"$title": |
177 |
ensure => present, |
ensure => present, |
178 |
} |
} |
182 |
comment => $comment, |
comment => $comment, |
183 |
managehome => true, |
managehome => true, |
184 |
gid => $title, |
gid => $title, |
185 |
|
groups => $groups, |
186 |
shell => "/bin/bash", |
shell => "/bin/bash", |
187 |
notify => Exec["unlock$title"], |
notify => Exec["unlock$title"], |
188 |
require => Group[$title], |
require => Group[$title], |