mirror of https://github.com/ceph/ceph-ansible.git
tests: use rocky linux 8
wip Signed-off-by: Guillaume Abrioux <gabrioux@ibm.com>backport-rockylinux-support-to-stable-6.0
parent
b433896de1
commit
07f7c19085
|
@ -1,11 +1,18 @@
|
||||||
#!/bin/bash
|
#!/bin/bash
|
||||||
|
|
||||||
|
set -x
|
||||||
|
|
||||||
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 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
|
||||||
|
# Rocky-8-Vagrant-Libvirt.latest.x86_64.box
|
||||||
|
if [[ "${CEPH_ANSIBLE_VAGRANT_BOX}" =~ "rockylinux/8" ]]; then
|
||||||
|
vagrant box remove "${CEPH_ANSIBLE_VAGRANT_BOX}" --all --force || true
|
||||||
|
vagrant box add --force --provider libvirt --name "${CEPH_ANSIBLE_VAGRANT_BOX}" "https://dl.rockylinux.org/pub/rocky/8.10/images/x86_64/Rocky-8-Vagrant-Vbox.latest.x86_64.box" --force
|
||||||
|
fi
|
||||||
|
|
||||||
retries=0
|
retries=0
|
||||||
until [ $retries -ge 5 ]
|
until [ $retries -ge 5 ]
|
||||||
|
|
2
tox.ini
2
tox.ini
|
@ -277,7 +277,7 @@ setenv=
|
||||||
ANSIBLE_STDOUT_CALLBACK = yaml
|
ANSIBLE_STDOUT_CALLBACK = yaml
|
||||||
non_container: DEV_SETUP = True
|
non_container: DEV_SETUP = True
|
||||||
# Set the vagrant box image to use
|
# Set the vagrant box image to use
|
||||||
centos-non_container: CEPH_ANSIBLE_VAGRANT_BOX = centos/stream9
|
centos-non_container: CEPH_ANSIBLE_VAGRANT_BOX = rockylinux/8
|
||||||
centos-container: CEPH_ANSIBLE_VAGRANT_BOX = centos/stream9
|
centos-container: CEPH_ANSIBLE_VAGRANT_BOX = centos/stream9
|
||||||
INVENTORY = {env:_INVENTORY:hosts}
|
INVENTORY = {env:_INVENTORY:hosts}
|
||||||
container: CONTAINER_DIR = /container
|
container: CONTAINER_DIR = /container
|
||||||
|
|
Loading…
Reference in New Issue