Mercurial > hg > cc > azure
annotate workers/bin/installInTemplate.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 sudo apt-get -y install python3 parallel psmisc jq mercurial curl |
3 curl -L https://packages.microsoft.com/keys/microsoft.asc | sudo apt-key add - | |
4 echo "deb [arch=amd64] https://packages.microsoft.com/repos/azure-cli/ jessie main" |\ | |
5 sudo tee /etc/apt/sources.list.d/azure-cli.list | |
6 sudo apt-get -y --force-yes install apt-transport-https | |
7 sudo apt-get -y update | |
8 sudo apt-get -y install azure-cli | |
14 | 9 sudo adduser --disabled-password -GECOS "CC master" cc |
18
9631fca89cc6
F2-related stuff, and new experiment
Henry S. Thompson <ht@markup.co.uk>
parents:
14
diff
changeset
|
10 if [ ! -d ~cc/.ssh ] |
9631fca89cc6
F2-related stuff, and new experiment
Henry S. Thompson <ht@markup.co.uk>
parents:
14
diff
changeset
|
11 then |
9631fca89cc6
F2-related stuff, and new experiment
Henry S. Thompson <ht@markup.co.uk>
parents:
14
diff
changeset
|
12 sudo su -c 'ssh-keygen -t rsa -N "" -f /home/cc/.ssh/id_rsa' cc |
9631fca89cc6
F2-related stuff, and new experiment
Henry S. Thompson <ht@markup.co.uk>
parents:
14
diff
changeset
|
13 fi |
14 | 14 sudo cat ~cc/.ssh/id_rsa.pub |