Skip to content

Commit

Permalink
Merge pull request #714 from actatux/apt-transport-https_debian8
Browse files Browse the repository at this point in the history
Install apt-transport-https in Debian 8 if needed
  • Loading branch information
willmeek authored Nov 2, 2017
2 parents dc3ead0 + 811bbd9 commit e9b2b12
Showing 1 changed file with 9 additions and 2 deletions.
11 changes: 9 additions & 2 deletions manifests/source.pp
Original file line number Diff line number Diff line change
Expand Up @@ -29,8 +29,15 @@
$_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)
Expand Down

0 comments on commit e9b2b12

Please sign in to comment.