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' :