diff --git a/manifests/package/debian.pp b/manifests/package/debian.pp index af9efccab..1196e0518 100644 --- a/manifests/package/debian.pp +++ b/manifests/package/debian.pp @@ -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': @@ -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'],