# HG changeset patch # User Henry S. Thompson # Date 1538154905 0 # Node ID 580221a17890d8e1a658da4519cca257cb713b35 # Parent 56d8823c68e0010d7a83365d33e76d334e8be6cc comment out a lot not needed for vmss diff -r 56d8823c68e0 -r 580221a17890 master/bin/makeWorker.sh --- a/master/bin/makeWorker.sh Fri Sep 28 15:18:07 2018 +0000 +++ b/master/bin/makeWorker.sh Fri Sep 28 17:15:05 2018 +0000 @@ -1,5 +1,7 @@ -#!/usr/bin/bash +#!/bin/bash # Usage . makeWorker.sh name +# Misnamed -- it assumes you've already done +# az vm create -n [name] -g cc --image Debian --size Standard_... # Source this to get the worker name set to its IP address name=$1 ip=$(az vm list-ip-addresses -g cc -n $name|egrep -o '"ipAddress": ".*"' | cut -f 2 -d ' ' | tr -d \") diff -r 56d8823c68e0 -r 580221a17890 master/bin/setupTemplate.sh --- a/master/bin/setupTemplate.sh Fri Sep 28 15:18:07 2018 +0000 +++ b/master/bin/setupTemplate.sh Fri Sep 28 17:15:05 2018 +0000 @@ -1,6 +1,7 @@ -#!/usr/bin/bash +#!/bin/bash ip=$1 -ssh -o StrictHostKeyChecking=no $ip authorized_keys' cc" < /var/cc/ak -ssh $ip /dev/null -( cd ~ && tar -czf - .azure ) | ssh cc@$ip "tar -xzf -" +#ssh -o StrictHostKeyChecking=no $ip authorized_keys' cc" < /var/cc/ak +ssh -o StrictHostKeyChecking=no $ip /dev/null +#( cd ~ && tar -czf - .azure ) | ssh cc@$ip "tar -xzf -" diff -r 56d8823c68e0 -r 580221a17890 workers/bin/installInTemplate.sh --- a/workers/bin/installInTemplate.sh Fri Sep 28 15:18:07 2018 +0000 +++ b/workers/bin/installInTemplate.sh Fri Sep 28 17:15:05 2018 +0000 @@ -1,4 +1,4 @@ -#!/usr/bin/bash +#!/bin/bash sudo apt-get -y install python3 parallel psmisc jq mercurial curl curl -L https://packages.microsoft.com/keys/microsoft.asc | sudo apt-key add - echo "deb [arch=amd64] https://packages.microsoft.com/repos/azure-cli/ jessie main" |\ @@ -6,4 +6,4 @@ sudo apt-get -y --force-yes install apt-transport-https sudo apt-get -y update sudo apt-get -y install azure-cli -sudo cat ~cc/.ssh/id_rsa.pub +#sudo cat ~cc/.ssh/id_rsa.pub diff -r 56d8823c68e0 -r 580221a17890 workers/bin/setupTemplate.sh --- a/workers/bin/setupTemplate.sh Fri Sep 28 15:18:07 2018 +0000 +++ b/workers/bin/setupTemplate.sh Fri Sep 28 17:15:05 2018 +0000 @@ -1,4 +1,4 @@ -#!/usr/bin/bash +#!/bin/bash sudo adduser --disabled-password --GECOS "CC worker" cc sudo su cc cd ~cc