Skip to content

Commit

Permalink
Require repo when installing package
Browse files Browse the repository at this point in the history
  • Loading branch information
johnf committed Aug 12, 2014
1 parent 1ff30be commit 3a4bc01
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions manifests/package.pp
Original file line number Diff line number Diff line change
Expand Up @@ -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") }
Expand All @@ -24,6 +26,7 @@

package { 'sensu':
ensure => $sensu::version,
require => $repo_require,
}

package { 'sensu-plugin' :
Expand Down

0 comments on commit 3a4bc01

Please sign in to comment.