Skip to content

Commit

Permalink
Merge pull request #272 from semiletov/master
Browse files Browse the repository at this point in the history
Override path of yum repo if rhel or centos 7.
  • Loading branch information
jlambert121 committed Dec 15, 2014
2 parents c2dfa6e + 6e4aed7 commit 31dafa9
Showing 1 changed file with 11 additions and 3 deletions.
14 changes: 11 additions & 3 deletions manifests/repo/yum.pp
Original file line number Diff line number Diff line change
Expand Up @@ -12,12 +12,20 @@
if $sensu::repo_source {
$url = $sensu::repo_source
} else {
$url = $sensu::repo ? {
'unstable' => "http://repos.sensuapp.org/yum-unstable/el/${::operatingsystemmajrelease}/\$basearch/",
default => "http://repos.sensuapp.org/yum/el/${::operatingsystemmajrelease}/\$basearch/"
if $operatingsystemmajrelease == 7 {
$url = $sensu::repo ? {
'unstable' => "http://repos.sensuapp.org/yum-unstable/el/6/\$basearch/",
default => "http://repos.sensuapp.org/yum/el/6/\$basearch/"
}
} else {
$url = $sensu::repo ? {
'unstable' => "http://repos.sensuapp.org/yum-unstable/el/${::operatingsystemmajrelease}/\$basearch/",
default => "http://repos.sensuapp.org/yum/el/${::operatingsystemmajrelease}/\$basearch/"
}
}
}


yumrepo { 'sensu':
enabled => 1,
baseurl => $url,
Expand Down

0 comments on commit 31dafa9

Please sign in to comment.