Puppet Function: postfix::flatten_hosts
- Defined in:
- vendor_modules/postfix/functions/flatten_hosts.pp
- Function type:
- Puppet Language
Overview
Flatten an array of host structures to an array of strings.
11 12 13 14 15 16 17 18 19 |
# File 'vendor_modules/postfix/functions/flatten_hosts.pp', line 11
function postfix::flatten_hosts(Optional[Array[Variant[Postfix::Type::Lookup::LDAP::Host, Postfix::Type::Lookup::MySQL::Host, Postfix::Type::Lookup::PgSQL::Host], 1]] $hosts) {
$hosts ? {
undef => undef,
default => $hosts.map |$host| {
postfix::flatten_host($host)
},
}
}
|