Skip to content

Commit

Permalink
Merge pull request #720 from actatux/apt-transport-https
Browse files Browse the repository at this point in the history
Install apt-transport-https if needed
  • Loading branch information
willmeek authored Nov 8, 2017
2 parents b24d45d + 3292e50 commit c88a7e3
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion manifests/source.pp
Original file line number Diff line number Diff line change
Expand Up @@ -29,10 +29,13 @@
$_release = $release
}

# Some releases do not support https transport with default installation
$_transport_https_releases = [ 'jessie', 'stretch', 'trusty', 'xenial' ]

if $ensure == 'present' {
if ! $location {
fail('cannot create a source entry without specifying a location')
} elsif $_release == 'jessie' {
} elsif $_release in $_transport_https_releases {
$method = split($location, '[:\/]+')[0]
if $method == 'https' {
ensure_packages('apt-transport-https')
Expand Down

0 comments on commit c88a7e3

Please sign in to comment.