You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
ansible/test/utils/docker/cloudstack-simulator/run.sh

16 lines
411 B
Bash

#!/bin/bash
until nc -z localhost 8096; do
echo "waiting for port 8096..."
sleep 3
done
sleep 3
if [ ! -e /var/www/html/admin.json ]
then
python /opt/cloudstack/tools/marvin/marvin/deployDataCenter.py -i /opt/zones.cfg
export CLOUDSTACK_ENDPOINT=http://127.0.0.1:8096
export CLOUDSTACK_KEY=""
export CLOUDSTACK_SECRET=""
cs listUsers account=admin | jq .user[0] > /var/www/html/admin.json
fi