From b2aaa0db1d578991b95806fb08ee7d2839f34f00 Mon Sep 17 00:00:00 2001 From: Takashi Kajinami Date: Sat, 20 Apr 2024 12:04:54 +0900 Subject: [PATCH] Ubuntu: Switch back to official repository We replaced the ceph official repository by UCA because the official repository didn't provide packages for jammy but now the packages for jammy are available. Change-Id: I4cb520c7250d0920f677c6411a493859bbf2a0ae --- manifests/repos.pp | 44 ++++++++++++++++---------------------------- 1 file changed, 16 insertions(+), 28 deletions(-) diff --git a/manifests/repos.pp b/manifests/repos.pp index 813f5336d..7d3881069 100644 --- a/manifests/repos.pp +++ b/manifests/repos.pp @@ -2,14 +2,6 @@ class openstack_integration::repos { $ceph_version_real = pick($facts['ceph_version'], 'reef') - if $facts['os']['name'] == 'Ubuntu' and versioncmp($facts['os']['release']['major'], '22') >= 0 { - # NOTE(tkajinam): Upstream ceph repository does not provide packages for - # Ubuntu Jammy, so we use packages from UCA. - $enable_ceph_repository = false - } else { - $enable_ceph_repository = true - } - case $facts['os']['family'] { 'Debian': { case $facts['os']['name'] { @@ -34,20 +26,18 @@ class openstack_integration::repos { } $ceph_mirror = pick($facts['ceph_mirror_host'], "http://download.ceph.com/debian-${ceph_version_real}/") - if $enable_ceph_repository { - # Ceph is both packaged on UCA and official download.ceph.com packages - # which we mirror. We want to use the official packages or our mirror. - if $ceph_mirror !~ '^http://download.ceph.com/.*' { - $ceph_version_cap = capitalize($ceph_version_real) - apt::pin { 'ceph': - priority => 1001, - originator => "Ceph ${ceph_version_cap}", - } - } else { - apt::pin { 'ceph': - priority => 1001, - origin => 'download.ceph.com', - } + # Ceph is both packaged on UCA and official download.ceph.com packages + # which we mirror. We want to use the official packages or our mirror. + if $ceph_mirror !~ '^http://download.ceph.com/.*' { + $ceph_version_cap = capitalize($ceph_version_real) + apt::pin { 'ceph': + priority => 1001, + originator => "Ceph ${ceph_version_cap}", + } + } else { + apt::pin { 'ceph': + priority => 1001, + origin => 'download.ceph.com', } } @@ -100,12 +90,10 @@ class openstack_integration::repos { } } - if $enable_ceph_repository { - class { 'ceph::repo': - enable_sig => $enable_sig, - enable_epel => $enable_epel, - ceph_mirror => $ceph_mirror, - } + class { 'ceph::repo': + enable_sig => $enable_sig, + enable_epel => $enable_epel, + ceph_mirror => $ceph_mirror, } # NOTE(tobias-urdin): Needed where augeas is used, like puppet-ovn.