Mercurial > hg > cc > azure
view master/bin/setupTemplate.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 | a3b30e707e83 |
| children | c1c8275bd194 |
line wrap: on
line source
#!/bin/bash ip=$1 #ssh -o StrictHostKeyChecking=no $ip </var/cc/workers/bin/setupTemplate.sh # Not necessary as will happen automatically in vmss setup if/when run from cc # ssh -o StrictHostKeyChecking=no $ip "sudo su -c 'cd ~/.ssh && cat >authorized_keys' cc" < /var/cc/ak ssh -o StrictHostKeyChecking=no $ip </var/cc/workers/bin/installInTemplate.sh # | tee /dev/stderr | tail -1 | sudo tee -a ~cc/.ssh/authorized_keys >/dev/null ( cd ~ && tar -czf - .azure ) | ssh $ip "tar -xzf -"
