# Stuff common to all debian.org servers
#
class debian_org::apt {
- if versioncmp($::lsbmajdistrelease, '7') <= 0 {
- $mungedcodename = $::lsbdistcodename
- } elsif ($::debarchitecture in ['kfreebsd-amd64', 'kfreebsd-i386']) {
- $mungedcodename = "${::lsbdistcodename}-kfreebsd"
- } else {
- $mungedcodename = $::lsbdistcodename
- }
-
if versioncmp($::lsbmajdistrelease, '8') <= 0 {
$fallbackmirror = 'http://cdn-fastly.deb.debian.org/debian/'
} else {
}
if getfromhash($site::nodeinfo, 'hoster', 'mirror-debian') {
- $mirror = [ getfromhash($site::nodeinfo, 'hoster', 'mirror-debian'), $fallbackmirror, 'http://debian.anycast-test.mirrors.debian.org/debian/' ]
+ $mirror = [ getfromhash($site::nodeinfo, 'hoster', 'mirror-debian'), $fallbackmirror ]
} else {
- $mirror = [ $fallbackmirror, 'http://debian.anycast-test.mirrors.debian.org/debian/' ]
+ $mirror = [ $fallbackmirror ]
}
site::aptrepo { 'debian':
url => $mirror,
- suite => [ $mungedcodename, "${::lsbdistcodename}-backports", "${::lsbdistcodename}-updates" ],
+ suite => [ $::lsbdistcodename, "${::lsbdistcodename}-backports", "${::lsbdistcodename}-updates" ],
components => ['main','contrib','non-free']
}
- if ($::hostname in [smetana]) {
+ if versioncmp($::lsbmajdistrelease, '8') <= 0 {
site::aptrepo { 'security':
- ensure => absent,
+ url => [ 'http://security-cdn.debian.org/', 'http://security.debian.org/' ],
+ suite => "${::lsbdistcodename}/updates",
+ components => ['main','contrib','non-free']
}
} else {
site::aptrepo { 'security':
- url => [ 'http://security-cdn.debian.org/', 'http://security.anycast-test.mirrors.debian.org/debian-security/', 'http://security.debian.org/' ],
- suite => "${mungedcodename}/updates",
+ url => [ 'http://security.debian.org/' ],
+ suite => "${::lsbdistcodename}/updates",
components => ['main','contrib','non-free']
}
}
key => 'puppet:///modules/debian_org/db.debian.org.gpg',
}
- if ($::hostname in [] or $::debarchitecture in ['kfreebsd-amd64', 'kfreebsd-i386']) {
+ if ($::hostname in []) {
site::aptrepo { 'proposed-updates':
url => $mirror,
- suite => "${mungedcodename}-proposed-updates",
+ suite => "${::lsbdistcodename}-proposed-updates",
components => ['main','contrib','non-free']
}
} else {