Mercurial > hg > cc > azure
comparison master/bin/vmss_setup.sh @ 7:a7637c994964
cull_network.py, parse_load_balance.py, vmss_setup.sh x 2, vmss_create.sh:
From kenneth, slight mods in some cases
share.sh:
Distribute files to workers
wrun.sh, invoke.sh:
From last year, slight mods
author | Henry S. Thompson <ht@markup.co.uk> |
---|---|
date | Sun, 30 Sep 2018 20:53:43 +0000 |
parents | |
children |
comparison
equal
deleted
inserted
replaced
6:a3b30e707e83 | 7:a7637c994964 |
---|---|
1 #!/bin/bash | |
2 set -e -o pipefail | |
3 if [ $# != 4 ]; then | |
4 cat 1>&2 <<EOF | |
5 Usage: $0 --resource-group group --name name | |
6 Where name is the name of a VM scale set." | |
7 | |
8 This script: | |
9 1. Insecurely gets SSH host keys and adds them to your ~/.ssh/known_hosts . | |
10 2. Copies your ~/.azure to the machines so they have command line access. | |
11 3. Installs delete and deallocate commands so you can stop them from inside. | |
12 4. Prints SSH connection information. | |
13 EOF | |
14 exit 1 | |
15 fi | |
16 ip=$(az vmss list-instance-connection-info $@ --output tsv | head -n 1 | cut -d : -f 1) | |
17 echo IP address $ip 1>&2 | |
18 az network lb show $1 $2 $3 ${4}LB --o json | \ | |
19 "$(dirname "$0")"/internal/parse_load_balance.py $ip | \ | |
20 parallel --gnu --colsep ' ' "$(dirname "$0")"/internal/vmss_setup.sh {} $@ |