}
$mirrors = hiera_hash('roles::security_mirror',[])
+ notice("Mirrors: ${mirrors}")
$fastly_mirrors = $mirrors.filter |$h| { $h[1]['fastly-backend'] }
- $hosts_to_check = $fastly_mirrors.map | $h| { $h['service-hostname'] }
+ notice("Fastly Mirrors: ${fastly_mirrors}")
+ $hosts_to_check = $fastly_mirrors.map |$h| { $h[1]['service-hostname'] }
+ notice("Fastly Mirrors: ${hosts_to_check}")
roles::mirror_health { 'security':
check_hosts => $hosts_to_check,