Hard code deb.d.o backend hosts while debugging
authorTollef Fog Heen <tfheen@err.no>
Fri, 2 Feb 2018 05:46:21 +0000 (06:46 +0100)
committerTollef Fog Heen <tfheen@err.no>
Fri, 2 Feb 2018 05:46:21 +0000 (06:46 +0100)
modules/roles/manifests/debian_mirror.pp

index 6e563aa..cde0992 100644 (file)
@@ -37,9 +37,10 @@ class roles::debian_mirror {
                }
        }
 
-       $mirrors = hiera_hash('roles::debian_mirror',[])
-       $fastly_mirrors = $mirrors.filter |$h| { $h[1]['fastly-backend'] }
-       $hosts_to_check = $fastly_mirrors.map | $h| { $h1['service-hostname'] }
+#      $mirrors = hiera_hash('roles::debian_mirror',[])
+#      $fastly_mirrors = $mirrors.filter |$h| { $h[1]['fastly-backend'] }
+#      $hosts_to_check = $fastly_mirrors.map | $h| { $h1['service-hostname'] }
+       $hosts_to_check = ['accumu.debian.backend.mirrors.debian.org', 'bytemark.debian.backend.mirrors.debian.org', 'conova.debian.backend.mirrors.debian.org', 'skroutz.debian.backend.mirrors.debian.org']
 
         roles::mirror_health { 'ftp':
                check_hosts   => $hosts_to_check,