mirror of https://github.com/ceph/ceph-ansible.git
Uses a more recent version of the CentOS stream 8 box
Uses the latest centos/streamX image available. Signed-off-by: Teoman ONAY <tonay@ibm.com>pull/7408/head
parent
6b900d8db0
commit
23e05d372d
|
@ -1,7 +1,11 @@
|
||||||
#!/bin/bash
|
#!/bin/bash
|
||||||
|
|
||||||
vagrant box remove --force --provider libvirt --box-version 0 centos/stream8 || true
|
if [[ "${CEPH_ANSIBLE_VAGRANT_BOX}" =~ "centos/stream" ]]; then
|
||||||
vagrant box add --provider libvirt --name centos/stream8 https://cloud.centos.org/centos/8-stream/x86_64/images/CentOS-Stream-Vagrant-8-20220125.1.x86_64.vagrant-libvirt.box || true
|
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)"
|
||||||
|
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
|
||||||
|
fi
|
||||||
|
|
||||||
retries=0
|
retries=0
|
||||||
until [ $retries -ge 5 ]
|
until [ $retries -ge 5 ]
|
||||||
|
@ -12,4 +16,4 @@ do
|
||||||
sleep 5
|
sleep 5
|
||||||
done
|
done
|
||||||
|
|
||||||
sleep 10
|
sleep 10
|
||||||
|
|
Loading…
Reference in New Issue