From 24f3aba9328a628b0248ad682a16c249ad06b5ea Mon Sep 17 00:00:00 2001 From: Christos Papageorgiou Date: Tue, 15 Mar 2022 14:00:56 +0200 Subject: [PATCH] Switch using os.release.major for apt-transport-https Signed-off-by: Christos Papageorgiou --- manifests/source.pp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/manifests/source.pp b/manifests/source.pp index 3bcbe82..da01ef1 100644 --- a/manifests/source.pp +++ b/manifests/source.pp @@ -99,8 +99,8 @@ define apt::source( $_location = $location } # Newer oses, do not need the package for HTTPS transport. - $_transport_https_releases = [ 'wheezy', 'jessie', 'stretch', 'trusty', 'xenial' ] - if (fact('os.distro.codename') in $_transport_https_releases) and $_location =~ /(?i:^https:\/\/)/ { + $_transport_https_releases = [ '7', '8', '9', '14.04', '16.04' ] + if (fact('os.release.major') in $_transport_https_releases) and $_location =~ /(?i:^https:\/\/)/ { ensure_packages('apt-transport-https') Package['apt-transport-https'] -> Class['apt::update'] } -- 2.45.2