Skip to content
This repository has been archived by the owner on Feb 4, 2020. It is now read-only.

Commit

Permalink
Update repo URI for YUM
Browse files Browse the repository at this point in the history
  • Loading branch information
Dario Vieli committed Jul 11, 2017
1 parent 7562c84 commit e983757
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 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 = $uchiwa::repo_source
} else {
$url = $uchiwa::repo ? {
'unstable' => "http://repos.sensuapp.org/yum-unstable/el/${::operatingsystemmajrelease}/\$basearch/",
default => "http://repos.sensuapp.org/yum/el/${::operatingsystemmajrelease}/\$basearch/"
'unstable' => "https://repositories.sensuapp.org/yum-unstable/${::operatingsystemmajrelease}/\$basearch/",
default => "https://repositories.sensuapp.org/yum/${::operatingsystemmajrelease}/\$basearch/"
}
}

Expand Down
4 changes: 2 additions & 2 deletions spec/classes/uchiwa_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -113,15 +113,15 @@
context 'default' do
it { should contain_yumrepo('uchiwa').with(
:enabled => 1,
:baseurl => 'http://repos.sensuapp.org/yum/el/6/$basearch/',
:baseurl => 'https://repositories.sensuapp.org/yum/6/$basearch/',
:gpgcheck => 0,
:before => 'Package[uchiwa]'
) }
end

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

context 'override repo url' do
Expand Down

0 comments on commit e983757

Please sign in to comment.