Fix CentOS Storage SIG mirror URL

The mirror URL is hardcoded to buildslogs for
CentOS 7 and should be mirror with proper fact
usage.

Change-Id: Iedf2e77d08c5e5c15268472f7acaa9ea7885c92c
This commit is contained in:
Tobias Urdin 2020-05-08 16:40:03 +02:00
parent af57dca3e2
commit cdfbfde15b
2 changed files with 3 additions and 2 deletions

View File

@ -127,7 +127,8 @@ not on ${::operatingsystem}, which can lead to packaging issues.")
if $ceph_mirror {
$ceph_mirror_real = $ceph_mirror
} else {
$ceph_mirror_real = "https://buildlogs.centos.org/centos/7/storage/x86_64/ceph-${release}/"
# NOTE(tobias-urdin): mirror.centos.org doesnt have https support
$ceph_mirror_real = "http://mirror.centos.org/centos/${::operatingsystemmajrelease}/storage/x86_64/ceph-${release}/"
}
yumrepo { 'ceph-luminous-sig':
ensure => 'absent',

View File

@ -505,7 +505,7 @@ describe 'ceph::repo' do
it { should contain_yumrepo('ceph-luminous-sig').with_ensure('absent') }
it { should contain_yumrepo('ceph-storage-sig').with(
:baseurl => 'https://buildlogs.centos.org/centos/7/storage/x86_64/ceph-nautilus/',
:baseurl => 'http://mirror.centos.org/centos/7/storage/x86_64/ceph-nautilus/',
)}
end