mirror of https://github.com/ceph/ceph-ansible.git
Remove all vagrant boxes
Remove all existing vagrant boxes to prevent vagrant from using older ones Signed-off-by: Teoman ONAY <tonay@ibm.com>rhcs-5.3
parent
c0cbbbf7e8
commit
f78bbc5699
|
@ -3,6 +3,7 @@
|
||||||
if [[ "${CEPH_ANSIBLE_VAGRANT_BOX}" =~ "centos/stream" ]]; then
|
if [[ "${CEPH_ANSIBLE_VAGRANT_BOX}" =~ "centos/stream" ]]; then
|
||||||
EL_VERSION="${CEPH_ANSIBLE_VAGRANT_BOX: -1}"
|
EL_VERSION="${CEPH_ANSIBLE_VAGRANT_BOX: -1}"
|
||||||
LATEST_IMAGE="$(curl -s https://cloud.centos.org/centos/${EL_VERSION}-stream/x86_64/images/CHECKSUM | sed -nE 's/^SHA256.*\((.*-([0-9]+).*vagrant-libvirt.box)\).*$/\1/p' | sort -u | tail -n1)"
|
LATEST_IMAGE="$(curl -s https://cloud.centos.org/centos/${EL_VERSION}-stream/x86_64/images/CHECKSUM | sed -nE 's/^SHA256.*\((.*-([0-9]+).*vagrant-libvirt.box)\).*$/\1/p' | sort -u | tail -n1)"
|
||||||
|
vagrant box remove "${CEPH_ANSIBLE_VAGRANT_BOX}" --all --force || true
|
||||||
vagrant box add --force --provider libvirt --name "${CEPH_ANSIBLE_VAGRANT_BOX}" "https://cloud.centos.org/centos/${EL_VERSION}-stream/x86_64/images/${LATEST_IMAGE}" --force
|
vagrant box add --force --provider libvirt --name "${CEPH_ANSIBLE_VAGRANT_BOX}" "https://cloud.centos.org/centos/${EL_VERSION}-stream/x86_64/images/${LATEST_IMAGE}" --force
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue