File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -26,13 +26,20 @@ if ! which supernova > /dev/null; then
2626 exit 1
2727fi
2828
29+ if ! supernova production network-list| grep -q deis & > /dev/null; then
30+ echo_yellow " Creating deis private network..."
31+ supernova production network-create deis 10.21.12.0/24
32+ fi
33+
34+ NETWORK_ID=` supernova production network-list| grep deis| awk -F" |" ' {print $2}' | sed ' s/^ *//g' `
35+
2936if [ -z " $DEIS_NUM_INSTANCES " ]; then
3037 DEIS_NUM_INSTANCES=3
3138fi
3239
3340i=1 ; while [[ $i -le $DEIS_NUM_INSTANCES ]] ; do \
3441 echo_yellow " Provisioning deis-$i ..."
35- supernova production boot --image c431c19c-4c09-48ef-a7c1-f4a43f65a1de --flavor $FLAVOR --key-name $1 --user-data ../coreos/user-data --config-drive true deis-$i ; \
42+ supernova production boot --image c431c19c-4c09-48ef-a7c1-f4a43f65a1de --flavor $FLAVOR --key-name $1 --user-data ../coreos/user-data --no-service-net --nic net-id= $NETWORK_ID -- config-drive true deis-$i ; \
3643 (( i = i + 1 )) ; \
3744done
3845
You can’t perform that action at this time.
0 commit comments