Mercurial > hg > cc > azure
view master/bin/makeWorker.sh @ 57:ac1a20e627a9
from lukasz git repo 2020-05-26 (see ~/src/wecu), then editted,
sac not quite working yet
author | Henry S. Thompson <ht@markup.co.uk> |
---|---|
date | Wed, 27 May 2020 20:54:34 +0000 |
parents | c49b169339b1 |
children |
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 \") setupTemplate.sh $ip . bindWorkerVars.sh $name