]> gitweb.fluxo.info Git - puppet-apt.git/commitdiff
switch the default $debian_url to use the Debian CDN mirror address.
authorMicah Anderson <micah@riseup.net>
Tue, 7 Dec 2010 17:46:37 +0000 (12:46 -0500)
committerMicah Anderson <micah@riseup.net>
Tue, 7 Dec 2010 17:46:37 +0000 (12:46 -0500)
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.

manifests/init.pp

index 179b4d81f8ed7224a50f6ad984b4cb18d4a0db64..e7eac334acd2f41036548ebbedf59aea61c7490c 100644 (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 ? {