From 90cc5ee1acb824adcdaa14afe7f8a0fce7229bc5 Mon Sep 17 00:00:00 2001 From: Takashi Kajinami Date: Mon, 24 Jul 2023 01:31:07 +0900 Subject: [PATCH] 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 --- manifests/repo.pp | 6 +++--- spec/classes/ceph_repo_spec.rb | 2 +- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/manifests/repo.pp b/manifests/repo.pp index 96dc3728..b0ee0c39 100644 --- a/manifests/repo.pp +++ b/manifests/repo.pp @@ -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}/" } diff --git a/spec/classes/ceph_repo_spec.rb b/spec/classes/ceph_repo_spec.rb index d15ac15d..f214c981 100644 --- a/spec/classes/ceph_repo_spec.rb +++ b/spec/classes/ceph_repo_spec.rb @@ -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