Skip to content

Commit

Permalink
OPENSHIFTP-173: Update mirrorlist to use mirrormanager
Browse files Browse the repository at this point in the history
Signed-off-by: Paul Bastide <[email protected]>
  • Loading branch information
prb112 committed Jul 15, 2024
1 parent 8522e7c commit 65f5b39
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion modules/2_pvs_prepare/bastion/bastion.tf
Original file line number Diff line number Diff line change
Expand Up @@ -204,7 +204,9 @@ resource "null_resource" "enable_repos" {
# Additional repo for installing ansible package
if ( [[ -z "${var.rhel_subscription_username}" ]] || [[ "${var.rhel_subscription_username}" == "<subscription-id>" ]] ) && [[ -z "${var.rhel_subscription_org}" ]]
then
timeout 300 bash -c -- 'until ping -c 1 mirrorlist.centos.org; do sleep 30; printf ".";done'
# Centos8 is end-of-life and does not use mirrorlist.centos.org
# Centos9 uses https://mirrormanager.fedoraproject.org/mirrors/CentOS
timeout 300 bash -c -- 'until ping -c 1 mirrormanager.fedoraproject.org; do sleep 30; printf ".";done'
sudo yum install -y epel-release
else
os_ver=$(cat /etc/os-release | egrep "^VERSION_ID=" | awk -F'"' '{print $2}')
Expand Down

0 comments on commit 65f5b39

Please sign in to comment.