- $rsync_bind = $::hostname ? {
- mirror-anu => '150.203.164.61',
- mirror-isc => '149.20.4.14',
- mirror-umn => '128.101.240.215',
- default => '',
- }
- $rsync_bind6 = $::hostname ? {
- mirror-anu => '2001:388:1034:2900::3d',
- mirror-isc => '2001:4f8:1:c::14',
- mirror-umn => '2607:ea00:101:3c0b::1deb:215',
- default => '',
- }
- $ftp_bind = $::hostname ? {
- mirror-anu => '150.203.164.61',
- default => '',
- }
- $ftp_bind6 = $::hostname ? {
- mirror-anu => '2001:388:1034:2900::3d',
- default => undef,
- }
+ $enclosed_addresses_rsync = empty($listen_addr) ? {
+ true => ['[::]'],
+ default => enclose_ipv6($listen_addr),
+ }
+ $_enclosed_addresses = empty($listen_addr) ? {
+ true => ['*'],
+ default => enclose_ipv6($listen_addr),
+ }
+ $vhost_listen = $_enclosed_addresses.map |$a| { "${a}:80" } .join(' ')