get debian mirror for apt from hiera (not yet doing that for schroot)
[mirror/dsa-puppet.git] / modules / debian_org / manifests / apt.pp
index 5d5b6af..eaed3f1 100644 (file)
@@ -3,13 +3,7 @@
 # Stuff common to all debian.org servers
 #
 class debian_org::apt {
-       $fallbackmirror = 'http://deb.debian.org/debian/'
-
-       if getfromhash($site::nodeinfo, 'hoster', 'mirror-debian') {
-               $mirror = [ getfromhash($site::nodeinfo, 'hoster', 'mirror-debian'), $fallbackmirror ]
-       } else {
-               $mirror = [ $fallbackmirror ]
-       }
+       $mirror = lookup('apt::sources::debian::location')
 
        # jessie
        if versioncmp($::lsbmajdistrelease, '8') <= 0 {