Skip to content

Commit

Permalink
Conditionally adding the packages if they are not added previously
Browse files Browse the repository at this point in the history
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
  • Loading branch information
David Leib committed Aug 11, 2016
1 parent 127bdab commit 8bd354a
Showing 1 changed file with 3 additions and 4 deletions.
7 changes: 3 additions & 4 deletions manifests/package/debian.pp
Original file line number Diff line number Diff line change
Expand Up @@ -53,10 +53,9 @@
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',
Expand Down

0 comments on commit 8bd354a

Please sign in to comment.