diff --git a/manifests/install.pp b/manifests/install.pp index aad1151..05f27b6 100644 --- a/manifests/install.pp +++ b/manifests/install.pp @@ -13,7 +13,12 @@ } } - package { $packages : - ensure => $::influxdb::package_ensure, + if $::influxdb::manage_repo { + ensure_packages($packages, { + ensure => $::influxdb::package_ensure, + require => Class['::influxdb::repo'], + }) + } else { + ensure_packages($packages, {ensure => $::influxdb::package_ensure}) } }