Mercurial > hg > cc > azure
annotate master/bin/makeWorker.sh @ 67:13182e98a1ab
use sorted insertion into tuple list for properties
author | Henry S. Thompson <ht@markup.co.uk> |
---|---|
date | Thu, 04 Jun 2020 17:58:10 +0000 |
parents | c49b169339b1 |
children |
rev | line source |
---|---|
5
580221a17890
comment out a lot not needed for vmss
Henry S. Thompson <ht@markup.co.uk>
parents:
4
diff
changeset
|
1 #!/bin/bash |
3 | 2 # Usage . makeWorker.sh name |
5
580221a17890
comment out a lot not needed for vmss
Henry S. Thompson <ht@markup.co.uk>
parents:
4
diff
changeset
|
3 # Misnamed -- it assumes you've already done |
580221a17890
comment out a lot not needed for vmss
Henry S. Thompson <ht@markup.co.uk>
parents:
4
diff
changeset
|
4 # az vm create -n [name] -g cc --image Debian --size Standard_... |
3 | 5 # Source this to get the worker name set to its IP address |
14 | 6 set -e -o pipefail |
3 | 7 name=$1 |
8 ip=$(az vm list-ip-addresses -g cc -n $name|egrep -o '"ipAddress": ".*"' | cut -f 2 -d ' ' | tr -d \") | |
4 | 9 setupTemplate.sh $ip |
55 | 10 . bindWorkerVars.sh $name |
11 |