blob: 9db374e7b2d4681ee4673a8483fefb49772636d1 [file] [log] [blame]
#!/bin/sh
export HOST_NAME='operator0'
export VAGRANT_CWD='..'
set_up() {
vagrant up --provision-with=run_playbook_create
vagrant up --provision-with=run_playbook_destroy
}
check() {
local host="$1"
vagrant ssh operator --no-tty -c \
"export OS_CLOUD=openstack; openstack server list -fcsv" \
| grep "$host" \
|| echo "Host ${host} not found."
}
set_up >/dev/null # drop provisioning output
check "$HOST_NAME"