]> review.fuel-infra Code Review - puppet-modules/puppetlabs-apt.git/commitdiff
Use Debian's new official mirrors redirector
authorRaoul Bhatia <raoul@bhatia.at>
Sun, 5 Jul 2015 06:56:38 +0000 (08:56 +0200)
committerRaoul Bhatia <raoul@bhatia.at>
Sun, 5 Jul 2015 07:17:12 +0000 (09:17 +0200)
See https://www.debian.org/News/weekly/2015/05/#httpredir

README.md
manifests/params.pp
spec/classes/apt_backports_spec.rb

index 0592202f5ab27a62842d4a418ebf6670c34f7f8b..fa7c3de698b39b24f1508e77f522ec55e0d88820 100644 (file)
--- a/README.md
+++ b/README.md
@@ -263,8 +263,8 @@ Manages backports.
 
 * `location`: Specifies an Apt repository containing the backports to manage. Valid options: a string containing a URL. Defaults:
 
-  * Debian (squeeze): 'http://backports.debian.org/debian-backports'
-  * Debian (other): 'http://ftp.debian.org/debian/'
+  * Debian (squeeze): 'http://httpredir.debian.org/debian-backports'
+  * Debian (other): 'http://httpredir.debian.org/debian'
   * Ubuntu: 'http://archive.ubuntu.com/ubuntu'
 
 * `pin`: *Optional.* Specifies a pin priority for the backports. Valid options: a number or string to be passed to the `id` parameter of the `apt::pin` define, or a hash of `parameter => value` pairs to be passed to `apt::pin`'s corresponding parameters. Default: '200'.
index d4f838946a342dfcbc7059d2138037b52203841c..cdf8e6e09f2e64e74f6a0dd07c05578fbcc631a6 100644 (file)
@@ -105,14 +105,14 @@ class apt::params {
       case $xfacts['lsbdistcodename'] {
         'squeeze': {
           $backports = {
-            'location' => 'http://backports.debian.org/debian-backports',
+            'location' => 'http://httpredir.debian.org/debian-backports',
             'key'      => 'A1BD8E9D78F7FE5C3E65D8AF8B48AD6246925553',
             'repos'    => 'main contrib non-free',
           }
         }
         default: {
           $backports = {
-            'location' => 'http://ftp.debian.org/debian/',
+            'location' => 'http://httpredir.debian.org/debian',
             'key'      => 'A1BD8E9D78F7FE5C3E65D8AF8B48AD6246925553',
             'repos'    => 'main contrib non-free',
           }
index efaa9cc955ad965fff8eb64daca730d0129cae4a..a80af1e4bdc02fe21f51967f69d9d65ec52a51dd 100644 (file)
@@ -14,7 +14,7 @@ describe 'apt::backports', :type => :class do
         }
       end
       it { is_expected.to contain_apt__source('backports').with({
-        :location => 'http://ftp.debian.org/debian/',
+        :location => 'http://httpredir.debian.org/debian',
         :key      => 'A1BD8E9D78F7FE5C3E65D8AF8B48AD6246925553',
         :repos    => 'main contrib non-free',
         :release  => 'wheezy-backports',
@@ -32,7 +32,7 @@ describe 'apt::backports', :type => :class do
         }
       end
       it { is_expected.to contain_apt__source('backports').with({
-        :location => 'http://backports.debian.org/debian-backports',
+        :location => 'http://httpredir.debian.org/debian-backports',
         :key      => 'A1BD8E9D78F7FE5C3E65D8AF8B48AD6246925553',
         :repos    => 'main contrib non-free',
         :release  => 'squeeze-backports',