Use https for CentOS Stream 9 mirror

The mirror server for CentOS Stream 9 supports https and access using
http is redirected to https.

Change-Id: I1ada67c7d960b3aed121296e367eaf2a3264ecd4
This commit is contained in:
Takashi Kajinami
2023-07-24 01:31:07 +09:00
parent ee90ea8764
commit 90cc5ee1ac
2 changed files with 4 additions and 4 deletions

View File

@@ -134,11 +134,11 @@ not on ${facts['os']['name']}, which can lead to packaging issues.")
# NOTE(tobias-urdin): mirror.centos.org doesnt have https support
if $stream {
if versioncmp($el, '9') >= 0 {
$centos_mirror = 'mirror.stream.centos.org/SIGs'
$centos_mirror = 'https://mirror.stream.centos.org/SIGs'
} else {
$centos_mirror = 'mirror.centos.org/centos'
$centos_mirror = 'http://mirror.centos.org/centos'
}
$ceph_mirror_real = "http://${centos_mirror}/${el}-stream/storage/x86_64/ceph-${release}/"
$ceph_mirror_real = "${centos_mirror}/${el}-stream/storage/x86_64/ceph-${release}/"
} else {
$ceph_mirror_real = "http://mirror.centos.org/centos/${el}/storage/x86_64/ceph-${release}/"
}

View File

@@ -596,7 +596,7 @@ describe 'ceph::repo' do
end
it { should contain_yumrepo('ceph-storage-sig').with(
:baseurl => 'http://mirror.stream.centos.org/SIGs/9-stream/storage/x86_64/ceph-nautilus/',
:baseurl => 'https://mirror.stream.centos.org/SIGs/9-stream/storage/x86_64/ceph-nautilus/',
)}
end
end