Skip to content

Commit

Permalink
resolve merge conflict
Browse files Browse the repository at this point in the history
  • Loading branch information
jlambert121 committed May 30, 2014
2 parents 3982108 + 2b5e3ff commit 15399c1
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
4 changes: 2 additions & 2 deletions manifests/repo/yum.pp
Original file line number Diff line number Diff line change
Expand Up @@ -13,8 +13,8 @@
$url = $sensu::repo_source
} else {
$url = $sensu::repo ? {
'unstable' => 'http://repos.sensuapp.org/yum-unstable/el/$releasever/$basearch/',
default => 'http://repos.sensuapp.org/yum/el/$releasever/$basearch/'
'unstable' => "http://repos.sensuapp.org/yum-unstable/el/${::operatingsystemmajrelease}/\$basearch/",
default => "http://repos.sensuapp.org/yum/el/${::operatingsystemmajrelease}/\$basearch/"
}
}

Expand Down
6 changes: 3 additions & 3 deletions spec/classes/sensu_package_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -85,20 +85,20 @@
end

context 'redhat' do
let(:facts) { { :osfamily => 'RedHat' } }
let(:facts) { { :osfamily => 'RedHat', :operatingsystemmajrelease => '6' } }

context 'default' do
it { should contain_yumrepo('sensu').with(
:enabled => 1,
:baseurl => 'http://repos.sensuapp.org/yum/el/$releasever/$basearch/',
:baseurl => 'http://repos.sensuapp.org/yum/el/6/$basearch/',
:gpgcheck => 0,
:before => 'Package[sensu]'
) }
end

context 'unstable repo' do
let(:params) { { :repo => 'unstable' } }
it { should contain_yumrepo('sensu').with(:baseurl => 'http://repos.sensuapp.org/yum-unstable/el/$releasever/$basearch/' )}
it { should contain_yumrepo('sensu').with(:baseurl => 'http://repos.sensuapp.org/yum-unstable/el/6/$basearch/' )}
end

context 'override repo url' do
Expand Down

0 comments on commit 15399c1

Please sign in to comment.