For now enable this only on stg. Imported from: https://github.com/praiskup/fedora-copr-spinup-aarch64
19 lines
267 B
Bash
Executable file
19 lines
267 B
Bash
Executable file
#! /bin/bash
|
|
|
|
ticket=
|
|
|
|
cleanup()
|
|
{
|
|
test -n "$ticket" && resalloc ticket-close "$ticket"
|
|
}
|
|
|
|
trap cleanup EXIT
|
|
|
|
ticket=$(resalloc ticket --tag aarch64)
|
|
ip=$(resalloc ticket-wait "$ticket")
|
|
test -z "$ip" && exit 1
|
|
|
|
trap '' EXIT
|
|
|
|
echo "vm_name=$ticket"
|
|
echo "IP=$ip"
|