santoro to staticsync (for www)
[mirror/dsa-puppet.git] / modules / debian-org / manifests / init.pp
index e9d75ef..6ac4c12 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,10 +167,10 @@ class debian-org {
                components => ['main','contrib','non-free']
        }
 
-       if ($::hostname in [mips-aql-05, mipsel-aql-02]) or {
+       if ($::hostname in [] or $::debarchitecture in ['kfreebsd-amd64', 'kfreebsd-i386']) {
                site::aptrepo { 'proposed-updates':
                        url        => $mirror,
-                       suite      => "${::lsbdistcodename}-proposed-updates",
+                       suite      => "${mungedcodename}-proposed-updates",
                        components => ['main','contrib','non-free']
                }
        } else {