Commit 8e00eda7 authored by Jens-Petter Salvesen's avatar Jens-Petter Salvesen

make the script actually execute the command.

also, improve output.
parent bc7f25fc
......@@ -8,20 +8,21 @@ set -e
# create instances:
for i in ${list[@]};do
echo "making vm for item $i"
hostname="ece$i$postfix"
echo "making vm for $hostname"
cmd="openstack server create "
cmd+="--volume ece$i$postfix-disk "
cmd+="--volume $hostname-disk "
cmd+="--flavor $os_flavor "
for secgroup in ${os_security_groups[@]};
do
cmd+="--security-group $secgroup "
done
cmd+="--user-data ./yamls/ece$i$postfix.api.yaml "
cmd+="--user-data ./yamls/$hostname.api.yml "
cmd+="--availability-zone $os_avail_zone "
cmd+="--network $os_network "
cmd+="--key-name $os_key_name "
cmd+="ece$i$postfix.api";
echo $cmd
cmd+="$hostname.api";
eval $cmd
done
set +e
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment