ceph-ansible/tests/scripts/vagrant_up.sh

12 lines
191 B
Bash
Raw Normal View History

#!/bin/bash
retries=0
until [ $retries -ge 5 ]
do
echo "Attempting to start VMs. Attempts: $retries"
timeout 10m vagrant up "$@" && break
retries=$[$retries+1]
sleep 5
done
sleep 10