No SRV support in jessie apt
[mirror/dsa-puppet.git] / modules / debian-org / manifests / init.pp
index dc70d53..168b03f 100644 (file)
@@ -6,7 +6,12 @@ class debian-org {
        if getfromhash($site::nodeinfo, 'hoster', 'mirror-debian') {
                $mirror = getfromhash($site::nodeinfo, 'hoster', 'mirror-debian')
        } else {
-               $mirror = 'http://ftp.debian.org/debian/'
+               #$mirror = 'http://ftp.debian.org/debian/'
+               if $::lsbmajdistrelease <= 8 {
+                       $mirror = 'http://cdn-fastly.deb.debian.org/debian/'
+               } else {
+                       $mirror = 'http://deb.debian.org/debian/'
+               }
        }
        if $::lsbmajdistrelease < 7 {
                $mirror_backports = 'http://backports.debian.org/debian-backports/'
@@ -134,7 +139,7 @@ class debian-org {
        }
 
        site::aptrepo { 'security':
-               url        => 'http://security.debian.org/',
+               url        => 'http://security-cdn.debian.org/',
                suite      => "${mungedcodename}/updates",
                components => ['main','contrib','non-free']
        }
@@ -162,7 +167,7 @@ class debian-org {
                components => ['main','contrib','non-free']
        }
 
-       if ($::hostname in [mips-aql-05, mipsel-aql-01, mipsel-aql-02, mipsel-manda-02, eberlin, etler]) {
+       if ($::hostname in []) {
                site::aptrepo { 'proposed-updates':
                        url        => $mirror,
                        suite      => "${::lsbdistcodename}-proposed-updates",