- vsftpd::site { 'security':
- ensure => absent,
- root => '/nonexistent',
- }
+ $mirrors = hiera('roles.security_mirror', {})
+ $fastly_mirrors = $mirrors.filter |$h| { $h[1]['fastly-backend'] }
+ $hosts_to_check = $fastly_mirrors.map |$h| { $h[1]['service-hostname'] }
+
+ roles::mirror_health { 'security':
+ check_hosts => $hosts_to_check,
+ check_service => 'security',
+ url => 'http://security.backend.mirrors.debian.org/debian/dists/sid/Release',
+ health_url => 'http://security.backend.mirrors.debian.org/_health',
+ }