X-Git-Url: https://git.adam-barratt.org.uk/?a=blobdiff_plain;f=modules%2Fdebian-org%2Fmanifests%2Finit.pp;h=2ea9e150a15f59d533049edae541f4d663459f34;hb=fa899cd432340ac6361886caa94138148d9aa370;hp=e9d75efc89114ce5403b107abda8a5a9c1456147;hpb=e14240114016721fb6d75a337bf8520e22694193;p=mirror%2Fdsa-puppet.git diff --git a/modules/debian-org/manifests/init.pp b/modules/debian-org/manifests/init.pp index e9d75efc8..2ea9e150a 100644 --- a/modules/debian-org/manifests/init.pp +++ b/modules/debian-org/manifests/init.pp @@ -6,12 +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/' - } - if $::lsbmajdistrelease < 7 { - $mirror_backports = 'http://backports.debian.org/debian-backports/' - } else { - $mirror_backports = $mirror + #$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 { @@ -63,10 +63,8 @@ class debian-org { if ($::lsbmajdistrelease >= 8) { $rubyfs_package = 'ruby-filesystem' - } elsif $::lsbmajdistrelease == 7 { - $rubyfs_package = 'libfilesystem-ruby1.9' } else { - $rubyfs_package = 'libfilesystem-ruby1.8' + $rubyfs_package = 'libfilesystem-ruby1.9' } package { [ 'apt-utils', @@ -134,24 +132,16 @@ 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'] } - if $::lsbmajdistrelease < 7 { - site::aptrepo { 'debian-lts': - url => $mirror, - suite => "${::lsbdistcodename}-lts", - components => ['main','contrib','non-free'] - } - } else { - site::aptrepo { 'debian-lts': - ensure => absent, - } + site::aptrepo { 'debian-lts': + ensure => absent, } site::aptrepo { 'backports.debian.org': - url => $mirror_backports, + url => $mirror, suite => "${::lsbdistcodename}-backports", components => ['main','contrib','non-free'] } @@ -162,10 +152,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 { @@ -207,6 +197,15 @@ class debian-org { components => ['main','contrib','non-free'] } } + site::aptrepo { 'debian-cdn': + ensure => absent, + } + + site::aptrepo { 'debian2': + url => "http://cdn-fastly.deb.debian.org/debian", + suite => $mungedcodename, + components => ['main','contrib','non-free'] + } file { '/etc/facter': ensure => directory,