Mercurial > hg > cc > azure
view master/bin/makeWorker.sh @ 19:d4f186655bcc
lots of tweaking, reached the 80/20 point
| author | Henry S. Thompson <ht@markup.co.uk> |
|---|---|
| date | Sat, 20 Oct 2018 16:11:29 +0000 |
| parents | c1c8275bd194 |
| children | c49b169339b1 |
line wrap: on
line source
#!/bin/bash # Usage . makeWorker.sh name # Misnamed -- it assumes you've already done # az vm create -n [name] -g cc --image Debian --size Standard_... # Source this to get the worker name set to its IP address set -e -o pipefail name=$1 ip=$(az vm list-ip-addresses -g cc -n $name|egrep -o '"ipAddress": ".*"' | cut -f 2 -d ' ' | tr -d \") export $name=$ip echo $name=$ip setupTemplate.sh $ip
