Skip to content

Commit

Permalink
fix deps a bit
Browse files Browse the repository at this point in the history
  • Loading branch information
sjoeboo committed Mar 21, 2016
1 parent c5af349 commit 393b50a
Showing 1 changed file with 13 additions and 5 deletions.
18 changes: 13 additions & 5 deletions manifests/install.pp
Original file line number Diff line number Diff line change
Expand Up @@ -2,13 +2,21 @@
$version = $::whats::version,
$provider = $::whats::provider,
) {
$deps = ['gcc','ruby-devel']
package {$deps:
ensure => installed,
} ->

if ! defined(Package['gcc']) {
packge {'gcc':
ensure => installed,
}
}
if ! defined(Package['ruby-devel']) {
packge {'ruby-devel':
ensure => installed,
}
}

package {'puppet-whats':
ensure => $version,
provider => $provider,
require => [Package['gcc'],Package['ruby-devel']],
}

}

0 comments on commit 393b50a

Please sign in to comment.