From f56fb99f2415ef71c226440bc9666178cfa01f2a Mon Sep 17 00:00:00 2001 From: Aurelien Jarno Date: Mon, 1 Apr 2019 15:23:25 +0200 Subject: [PATCH] Now -backports or -updates for jessie --- modules/debian_org/manifests/apt.pp | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) diff --git a/modules/debian_org/manifests/apt.pp b/modules/debian_org/manifests/apt.pp index 33d9c6b31..f7f113bdc 100644 --- a/modules/debian_org/manifests/apt.pp +++ b/modules/debian_org/manifests/apt.pp @@ -15,12 +15,21 @@ class debian_org::apt { $mirror = [ $fallbackmirror ] } - if versioncmp($::lsbmajdistrelease, '9') <= 0 { + # jessie + if versioncmp($::lsbmajdistrelease, '8') <= 0 { + site::aptrepo { 'debian': + url => $mirror, + suite => [ $::lsbdistcodename ], + components => ['main','contrib','non-free'] + } + # stretch + } elsif versioncmp($::lsbmajdistrelease, '9') <= 0 { site::aptrepo { 'debian': url => $mirror, suite => [ $::lsbdistcodename, "${::lsbdistcodename}-backports", "${::lsbdistcodename}-updates" ], components => ['main','contrib','non-free'] } + # buster or newer } else { site::aptrepo { 'debian': url => $mirror, -- 2.20.1