Puppet Function: openldap::flatten_unique
- Defined in:
- functions/flatten_unique.pp
- Function type:
- Puppet Language
Overview
Flatten an array of unique overlay uniqueness domains to an array of strings.
11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 |
# File 'functions/flatten_unique.pp', line 11
function openldap::flatten_unique(Optional[Array[OpenLDAP::Unique, 1]] $values) {
$values ? {
undef => undef,
default => $values.map |OpenLDAP::Unique $value| {
join(delete_undef_values([
$value['strict'] ? {
true => 'strict',
default => undef,
},
$value['ignore'] ? {
true => 'ignore',
default => undef,
},
join($value['uri'], ' '),
]), ' ')
}
}
}
|