From bbaef03179a8a061ba588c934307b1afb541bd50 Mon Sep 17 00:00:00 2001 From: Aurelien Jarno Date: Thu, 22 Feb 2018 23:24:26 +0100 Subject: [PATCH] Drop security-cdn.d.o on stretch Now that security.d.o as a SRV record basically pointing to security-cdn.d.o, there is no point to have both in the sources.list for stretch hosts. Signed-off-by: Aurelien Jarno --- modules/debian_org/manifests/apt.pp | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/modules/debian_org/manifests/apt.pp b/modules/debian_org/manifests/apt.pp index 4fcb87b48..703cafc42 100644 --- a/modules/debian_org/manifests/apt.pp +++ b/modules/debian_org/manifests/apt.pp @@ -25,12 +25,18 @@ class debian_org::apt { site::aptrepo { 'security': ensure => absent, } - } else { + } elsif versioncmp($::lsbmajdistrelease, '8') <= 0 { site::aptrepo { 'security': 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.debian.org/' ], + suite => "${::lsbdistcodename}/updates", + components => ['main','contrib','non-free'] + } } $dbdosuites = [ 'debian-all', $::lsbdistcodename ] -- 2.20.1