From 966ca80c56af071e53179d6d04cdd21f6523121f Mon Sep 17 00:00:00 2001 From: =?utf8?q?Romain=20Tarti=C3=A8re?= Date: Mon, 21 Feb 2022 04:19:25 -1000 Subject: [PATCH] (maint) Fix resource ordering when apt-transport-https is needed (#1015) Adds a dependency to ensure apt-transport-https is installed when the repositories are updated. --- manifests/source.pp | 1 + 1 file changed, 1 insertion(+) diff --git a/manifests/source.pp b/manifests/source.pp index 54cfadf..c178bd2 100644 --- a/manifests/source.pp +++ b/manifests/source.pp @@ -102,6 +102,7 @@ define apt::source( $_transport_https_releases = [ 'wheezy', 'jessie', 'stretch', 'trusty', 'xenial' ] if ($facts['os']['distro']['codename'] in $_transport_https_releases) and $_location =~ /(?i:^https:\/\/)/ { ensure_packages('apt-transport-https') + Package['apt-transport-https'] -> Class['apt::update'] } } else { $_location = undef -- 2.45.2