Skip to content

Commit

Permalink
Fix for apt-transport-https
Browse files Browse the repository at this point in the history
  The installation for the package apt-transport-https is put only for
the passenger case. But event with « just » nginx we need the
apt-transport-https because the url for nginx repot is on https://nginx
  • Loading branch information
Through github authored and Through github committed Feb 6, 2017
1 parent ff59837 commit 7d97c1b
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions manifests/package/debian.pp
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,10 @@
include '::apt'
Exec['apt_update'] -> Package['nginx']

ensure_packages([ 'apt-transport-https', 'ca-certificates' ])

Package['apt-transport-https','ca-certificates'] -> Apt::Source['nginx']

case $package_source {
'nginx', 'nginx-stable': {
apt::source { 'nginx':
Expand All @@ -54,10 +58,6 @@
key => '16378A33A6EF16762922526E561F9B9CAC40B2F7',
}

ensure_packages([ 'apt-transport-https', 'ca-certificates' ])

Package['apt-transport-https','ca-certificates'] -> Apt::Source['nginx']

package { 'passenger':
ensure => $passenger_package_ensure,
require => Exec['apt_update'],
Expand Down

0 comments on commit 7d97c1b

Please sign in to comment.