Conditionally adding the packages if they are not added previously

Replaced the not defined statements with a more practical ensure_packages and removed the not defined from passenger becase it should be defined only once
This commit is contained in:
David Leib 2016-08-11 11:06:56 +02:00
parent 127bdabf5f
commit 8bd354a0db

View file

@ -53,10 +53,9 @@ class nginx::package::debian(
key => '16378A33A6EF16762922526E561F9B9CAC40B2F7',
}
package { ['apt-transport-https', 'ca-certificates']:
ensure => 'present',
before => Apt::Source['nginx'],
}
ensure_packages([ 'apt-transport-https', 'ca-certificates' ])
Apt::Source['nginx'] -> Package['apt-transport-https','ca-certificates']
package { 'passenger':
ensure => 'present',