From 3a4bc01d2751472177fb3c4ac86a57b746eef544 Mon Sep 17 00:00:00 2001 From: John Ferlito Date: Tue, 12 Aug 2014 21:41:48 +1000 Subject: [PATCH] Require repo when installing package --- manifests/package.pp | 3 +++ 1 file changed, 3 insertions(+) diff --git a/manifests/package.pp b/manifests/package.pp index b485a9e181..c770991dff 100644 --- a/manifests/package.pp +++ b/manifests/package.pp @@ -12,10 +12,12 @@ 'Debian': { class { 'sensu::repo::apt': } + $repo_require = Apt::Source['sensu'] } 'RedHat': { class { 'sensu::repo::yum': } + $repo_require = Yumrepo['sensu'] } default: { alert("${::osfamily} not supported yet") } @@ -24,6 +26,7 @@ package { 'sensu': ensure => $sensu::version, + require => $repo_require, } package { 'sensu-plugin' :