switch the default $debian_url to use the Debian CDN mirror address.

The CDN checks your IP and uses the Max-Mind geoIP DB to determine your location and then uses your local country Debian Mirror, or if your local country doesn't have a debian mirror, it uses the local continent. It automatically checks and prunes dead mirrors. the technology for the Debian CDN setup is still improving, I believe that ASN-number associations are the next step to attempt to make more informed, finer-grained choices.

This is more useful than using ftp.debian.org because that is just a round-robin DNS entry that could get you any mirror anywhere.
This commit is contained in:
Micah Anderson 2010-12-07 12:46:37 -05:00
parent 2ee70ab5e0
commit bb03c32b45

View file

@ -21,7 +21,7 @@ class apt {
}
$debian_url = $apt_debian_url ? {
'' => 'http://ftp.debian.org/debian/',
'' => 'http://cdn.debian.net/debian/',
default => "${apt_debian_url}",
}
$security_url = $apt_security_url ? {