From 6aa222e15c4655649ddb3e097f42519b50782d8b Mon Sep 17 00:00:00 2001 From: Peter Palfrader Date: Tue, 10 Sep 2019 13:27:16 +0200 Subject: [PATCH 1/1] debian_org::apt: Retire some <= Debian8(jessie) codepaths --- modules/debian_org/manifests/apt.pp | 22 +++++----------------- 1 file changed, 5 insertions(+), 17 deletions(-) diff --git a/modules/debian_org/manifests/apt.pp b/modules/debian_org/manifests/apt.pp index 8ff087746..5d5b6afa6 100644 --- a/modules/debian_org/manifests/apt.pp +++ b/modules/debian_org/manifests/apt.pp @@ -3,11 +3,7 @@ # 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 ] @@ -31,18 +27,10 @@ class debian_org::apt { } } - 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 -- 2.20.1