| 1 |
<%- | |
| 2 |
Array[Variant[String, Sensitive[String]]] $epp_users = [], |
| 3 |
Array[String] $epp_groups = [], |
| 4 |
String $epp_section_name, |
| 5 |
| -%> |
| 6 |
|
| 7 |
userlist <%= $epp_section_name %> |
| 8 |
<%- |
| 9 |
$epp_groups.each |String $group| { |
| 10 |
unless $group.empty { |
| 11 |
-%> |
| 12 |
group <%= $group %> |
| 13 |
<%- |
| 14 |
} |
| 15 |
} |
| 16 |
$epp_users.each |Variant[String, Sensitive[String]] $user| { |
| 17 |
# TODO: remove this Workaround, as soon as Function empty() can handle |
| 18 |
# Sensitive (Pullrequest pending) |
| 19 |
$user_unsensitive = if $user =~ Sensitive { $user.unwrap } else { $user } |
| 20 |
unless $user_unsensitive.empty { |
| 21 |
-%> |
| 22 |
user <%= $user_unsensitive %> |
| 23 |
<%- |
| 24 |
} |
| 25 |
} |
| 26 |
-%> |