X-Git-Url: https://review.fuel-infra.org/gitweb?a=blobdiff_plain;f=manifests%2Fsource.pp;h=3e6d0cb814870d0b30a4b3bd0fab11282d4e3935;hb=69edb0d6344a7c628c538219aa7b7b01ae131f6f;hp=a95bc592f98d03749076786faae1f0932ff5da35;hpb=dc3ead0ed5f4d735869565660c982983d379a519;p=puppet-modules%2Fpuppetlabs-apt.git diff --git a/manifests/source.pp b/manifests/source.pp index a95bc59..3e6d0cb 100644 --- a/manifests/source.pp +++ b/manifests/source.pp @@ -29,8 +29,15 @@ define apt::source( $_release = $release } - if $ensure == 'present' and ! $location { - fail('cannot create a source entry without specifying a location') + if $ensure == 'present' { + if ! $location { + fail('cannot create a source entry without specifying a location') + } elsif $_release == 'jessie' { + $method = split($location, '[:\/]+')[0] + if $method == 'https' { + ensure_packages('apt-transport-https') + } + } } $includes = merge($::apt::include_defaults, $include)