mirror of https://github.com/ceph/ceph-ansible.git
16 lines
539 B
Bash
16 lines
539 B
Bash
#!/bin/bash
|
|
|
|
vagrant box remove --force --provider libvirt --box-version 1905.1 centos/8 || true
|
|
vagrant box remove --force --provider libvirt --box-version 0 centos/8 || true
|
|
vagrant box add --provider libvirt --name centos/8 https://cloud.centos.org/centos/8/vagrant/x86_64/images/CentOS-8-Vagrant-8.3.2011-20201204.2.x86_64.vagrant-libvirt.box || true
|
|
|
|
retries=0
|
|
until [ $retries -ge 5 ]
|
|
do
|
|
echo "Attempting to start VMs. Attempts: $retries"
|
|
timeout 10m time vagrant up "$@" && break
|
|
retries=$[$retries+1]
|
|
sleep 5
|
|
done
|
|
|
|
sleep 10 |