diff --git a/manifests/install.pp b/manifests/install.pp index 10a7277..364fecb 100644 --- a/manifests/install.pp +++ b/manifests/install.pp @@ -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']], } - }