From cf9da3b474e10671138d8d41b3f2c0022be36fe8 Mon Sep 17 00:00:00 2001 From: Lance Albertson Date: Thu, 17 Mar 2022 11:20:58 -0700 Subject: [PATCH] Use vault repo for RHEL 8 Train has been archived to vault for RHEL 8 and this breaks CI currently. Change-Id: Ia77026617f993169e46ef76ced3468b5e4fa8bfc Signed-off-by: Lance Albertson --- attributes/default.rb | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/attributes/default.rb b/attributes/default.rb index 3b1e7e39..c3113e54 100644 --- a/attributes/default.rb +++ b/attributes/default.rb @@ -143,7 +143,14 @@ default['openstack']['apt']['components'] = ['main'] default['openstack']['yum']['update_yum_cache'] = false default['openstack']['yum']['rdo_enabled'] = true -default['openstack']['yum']['uri'] = "http://mirror.centos.org/centos/$releasever/cloud/$basearch/openstack-#{node['openstack']['release']}" +default['openstack']['yum']['uri'] = + if node['platform_version'].to_i >= 8 + # TODO: Train has been archived to vault for RHEL 8 + # "http://mirror.centos.org/centos/$releasever/cloud/$basearch/openstack-#{node['openstack']['release']}" + "https://vault.centos.org/8.5.2111/cloud/x86_64/openstack-#{node['openstack']['release']}/" + else + "http://mirror.centos.org/centos/$releasever/cloud/$basearch/openstack-#{node['openstack']['release']}" + end default['openstack']['yum']['repo-key'] = "https://github.com/rdo-infra/rdo-release/raw/#{node['openstack']['release']}-rdo/RPM-GPG-KEY-CentOS-SIG-Cloud" # Enforcing GnuPG signature check for RDO repo. Set this to false if you want to disable the check. default['openstack']['yum']['gpgcheck'] = true