# 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 {