Puppet Function: memcached::join_interfaces
- Defined in:
- functions/join_interfaces.pp
- Function type:
- Puppet Language
Overview
Joins interfaces and ports together wrapping IPv6 addresses as appropriate.
12 13 14 15 16 17 18 19 20 |
# File 'functions/join_interfaces.pp', line 12
function memcached::join_interfaces(Array[Memcached::Interface] $interfaces) {
join($interfaces.map |Memcached::Interface $interface| {
type($interface) ? {
Type[Tuple] => join([bodgitlib::enclose_ipv6($interface[0]), $interface[1]], ':'),
default => bodgitlib::enclose_ipv6($interface),
}
}, ',')
}
|