diff --git a/manifests/repo/yum.pp b/manifests/repo/yum.pp index 13d49b46fc..9d55efa21d 100644 --- a/manifests/repo/yum.pp +++ b/manifests/repo/yum.pp @@ -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,