Provision hosts in parallel during build process

This commit is contained in:
Chris Long
2021-07-11 11:39:40 -07:00
parent 6a66e23c6a
commit bf99ffd478
3 changed files with 50 additions and 75 deletions

View File

@@ -121,7 +121,7 @@ jobs:
echo "$STATUS" > /tmp/status
break
fi
if [ "$MINUTES_PAST" -gt 240 ]; then
if [ "$MINUTES_PAST" -gt 120 ]; then
echo "[$(date +%H:%M:%S)]: Serer timed out. Uptime: $MINUTES_PAST minutes."
scp -q -i ~/.ssh/id_rsa root@"$IP_ADDRESS":/opt/DetectionLab/Vagrant/vagrant_up_*.log /tmp/artifacts/
curl -s -X DELETE --header 'Accept: application/json' --header 'X-Auth-Token: '"$PACKET_API_TOKEN" 'https://api.packet.net/devices/'"$DEVICE_ID"'?force_delete=true'