Mercurial > hg > cc > azure
annotate master/bin/setupTemplate.sh @ 18:9631fca89cc6
F2-related stuff, and new experiment
| author | Henry S. Thompson <ht@markup.co.uk> |
|---|---|
| date | Fri, 19 Oct 2018 14:25:19 +0000 |
| parents | c1c8275bd194 |
| children | cc065b2a2543 |
| 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 |
| 4 | 2 ip=$1 |
|
5
580221a17890
comment out a lot not needed for vmss
Henry S. Thompson <ht@markup.co.uk>
parents:
4
diff
changeset
|
3 #ssh -o StrictHostKeyChecking=no $ip </var/cc/workers/bin/setupTemplate.sh |
|
580221a17890
comment out a lot not needed for vmss
Henry S. Thompson <ht@markup.co.uk>
parents:
4
diff
changeset
|
4 # Not necessary as will happen automatically in vmss setup if/when run from cc |
|
580221a17890
comment out a lot not needed for vmss
Henry S. Thompson <ht@markup.co.uk>
parents:
4
diff
changeset
|
5 # ssh -o StrictHostKeyChecking=no $ip "sudo su -c 'cd ~/.ssh && cat >authorized_keys' cc" < /var/cc/ak |
| 14 | 6 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 |
| 6 | 7 ( cd ~ && tar -czf - .azure ) | ssh $ip "tar -xzf -" |
