feat: add othergroups support for services #109
@ -6,7 +6,12 @@ define glauth::obj::service (
|
||||
Integer $primarygroup,
|
||||
String $passsha256,
|
||||
Stdlib::Absolutepath $config_path,
|
||||
Optional[Array[Integer]] $othergroups = [],
|
||||
) {
|
||||
$formatted_othergroups = $othergroups.empty ? {
|
||||
true => '[]',
|
||||
false => "[${othergroups.join(', ')}]",
|
||||
}
|
||||
concat::fragment { "glauth_service_${service_name}":
|
||||
target => $config_path,
|
||||
content => epp('glauth/obj/service.epp', {
|
||||
@ -15,6 +20,7 @@ define glauth::obj::service (
|
||||
'uidnumber' => $uidnumber,
|
||||
'primarygroup' => $primarygroup,
|
||||
'passsha256' => $passsha256,
|
||||
'othergroups' => $formatted_othergroups,
|
||||
}),
|
||||
order => '80',
|
||||
}
|
||||
|
||||
@ -4,4 +4,5 @@
|
||||
uidnumber = <%= $uidnumber %>
|
||||
primarygroup = <%= $primarygroup %>
|
||||
passsha256 = "<%= $passsha256 %>"
|
||||
othergroups = <%= $othergroups %>
|
||||
|
||||
|
||||
Loading…
Reference in New Issue
Block a user