santoro to staticsync (for www)
[mirror/dsa-puppet.git] / modules / debian-org / manifests / init.pp
index aa90ad0..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,18 +167,17 @@ class debian-org {
                components => ['main','contrib','non-free']
        }
 
-       #if ($::hostname in [corelli, eysler, lucatelli, mayr, pettersson]) or
-       #   ($::hoster and ($::hoster in [bytemark, man-da, brown])) {
-       #       site::aptrepo { 'proposed-updates':
-       #               url        => $mirror,
-       #               suite      => "${::lsbdistcodename}-proposed-updates",
-       #               components => ['main','contrib','non-free']
-       #       }
-       #} else {
+       if ($::hostname in [] or $::debarchitecture in ['kfreebsd-amd64', 'kfreebsd-i386']) {
+               site::aptrepo { 'proposed-updates':
+                       url        => $mirror,
+                       suite      => "${mungedcodename}-proposed-updates",
+                       components => ['main','contrib','non-free']
+               }
+       } else {
                site::aptrepo { 'proposed-updates':
                        ensure => absent,
                }
-       #}
+       }
 
        site::aptrepo { 'debian.org':
                ensure => absent,