Skip to content

mirrorlist is not available for centos anymore #38

@lgchiaretto

Description

@lgchiaretto

Once CentOS is officially EOF (July 1, 2024) the mirrorlist repos are not available anymore.

If you plan to still using centos as LB you must to change virt-customize to fix the repo problem.

you must add those lines on virt-cutomize:

--run-command "sed -i s/mirror.centos.org/vault.centos.org/g /etc/yum.repos.d/*.repo" \
--run-command "sed -i s/^#.*baseurl=http/baseurl=http/g /etc/yum.repos.d/*.repo" \
echo "====> Setting up Loadbalancer VM: "
virt-customize -a "${VM_DIR}/${CLUSTER_NAME}-lb.qcow2" \
    --uninstall cloud-init --ssh-inject root:file:$SSH_KEY_PUB --selinux-relabel \
    --run-command "sed -i s/mirror.centos.org/vault.centos.org/g /etc/yum.repos.d/*.repo" \
    --run-command "sed -i s/^#.*baseurl=http/baseurl=http/g /etc/yum.repos.d/*.repo" \
    --install haproxy --install bind-utils \
    --copy-in install_dir/bootstrap.ign:/opt/ --copy-in install_dir/master.ign:/opt/ --copy-in install_dir/worker.ign:/opt/ \
    --copy-in "${CACHE_DIR}/${IMAGE}":/opt/ --copy-in tmpws.service:/etc/systemd/system/ \
    --copy-in haproxy.cfg:/etc/haproxy/ \
    --run-command "systemctl daemon-reload" --run-command "systemctl enable tmpws.service" || \
    err "Setting up Loadbalancer VM image ${VM_DIR}/${CLUSTER_NAME}-lb.qcow2 failed" 

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions