Use hard coded list for what hosts to check
authorTollef Fog Heen <tfheen@err.no>
Sat, 30 Sep 2017 20:40:26 +0000 (22:40 +0200)
committerTollef Fog Heen <tfheen@err.no>
Sat, 30 Sep 2017 20:40:26 +0000 (22:40 +0200)
We can't just grab this from hiera, since some hosts have service
addresses that are not their primary host addresses and so we get 404s
when asking on the wrong IP.

modules/roles/manifests/debian_mirror.pp

index cae863f..da2f07c 100644 (file)
@@ -41,7 +41,7 @@ class roles::debian_mirror {
        }
 
         roles::mirror_health { 'ftp':
-               check_hosts   => getfromhash($site::roles, 'debian_mirror'),
+               check_hosts   => ['mirror-bytemark-debian.debian.org', 'mirror-conova-debian.debian.org, mirror-isc3.debian.org', 'mirror-accumu.debian.org', 'mirror-skroutz.debian.org', 'klecker-ftp.debian.org'],
                check_service => 'ftp',
                url           => 'http://debian.backend.mirrors.debian.org/debian/dists/sid/Release',
         }