From: Romain Tartière Date: Mon, 21 Feb 2022 14:19:25 +0000 (-1000) Subject: (maint) Fix resource ordering when apt-transport-https is needed (#1015) X-Git-Tag: v8.4.0~12 X-Git-Url: https://review.fuel-infra.org/gitweb?a=commitdiff_plain;ds=sidebyside;h=966ca80c56af071e53179d6d04cdd21f6523121f;p=puppet-modules%2Fpuppetlabs-apt.git (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. --- 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