Puppet Function: postfix::flatten_hosts
- Defined in:
- 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 '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)
},
}
}
|