# Stuff common to all debian.org servers
#
class debian_org::apt {
- if versioncmp($::lsbmajdistrelease, '8') <= 0 {
- $fallbackmirror = 'http://cdn-fastly.deb.debian.org/debian/'
- } else {
- $fallbackmirror = 'http://deb.debian.org/debian/'
- }
+ $fallbackmirror = 'http://deb.debian.org/debian/'
if getfromhash($site::nodeinfo, 'hoster', 'mirror-debian') {
$mirror = [ getfromhash($site::nodeinfo, 'hoster', 'mirror-debian'), $fallbackmirror ]
}
}
- if versioncmp($::lsbmajdistrelease, '8') <= 0 {
- base::aptrepo { 'security':
- url => [ 'http://security-cdn.debian.org/', 'http://security.debian.org/' ],
- suite => "${::lsbdistcodename}/updates",
- components => ['main','contrib','non-free']
- }
- } else {
- base::aptrepo { 'security':
- url => [ 'http://security.debian.org/' ],
- suite => "${::lsbdistcodename}/updates",
- components => ['main','contrib','non-free']
- }
+ base::aptrepo { 'security':
+ url => [ 'http://security.debian.org/' ],
+ suite => "${::lsbdistcodename}/updates",
+ components => ['main','contrib','non-free']
}
# ca-certificates is installed by the ssl module