# HG changeset patch # User Henry S. Thompson # Date 1539873004 0 # Node ID c1c8275bd1941a0c9e5bdc285ccec197e38d7af3 # Parent bba589cab8373c753866f871057535abe8226a86 trying to make this work diff -r bba589cab837 -r c1c8275bd194 master/bin/makeWorker.sh --- a/master/bin/makeWorker.sh Fri Oct 12 08:51:50 2018 +0000 +++ b/master/bin/makeWorker.sh Thu Oct 18 14:30:04 2018 +0000 @@ -3,6 +3,7 @@ # 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 +set -e -o pipefail name=$1 ip=$(az vm list-ip-addresses -g cc -n $name|egrep -o '"ipAddress": ".*"' | cut -f 2 -d ' ' | tr -d \") export $name=$ip diff -r bba589cab837 -r c1c8275bd194 master/bin/setupTemplate.sh --- a/master/bin/setupTemplate.sh Fri Oct 12 08:51:50 2018 +0000 +++ b/master/bin/setupTemplate.sh Thu Oct 18 14:30:04 2018 +0000 @@ -3,5 +3,5 @@ #ssh -o StrictHostKeyChecking=no $ip authorized_keys' cc" < /var/cc/ak -ssh -o StrictHostKeyChecking=no $ip /dev/null +ssh -o StrictHostKeyChecking=no $ip /dev/null ( cd ~ && tar -czf - .azure ) | ssh $ip "tar -xzf -" diff -r bba589cab837 -r c1c8275bd194 workers/bin/installInTemplate.sh --- a/workers/bin/installInTemplate.sh Fri Oct 12 08:51:50 2018 +0000 +++ b/workers/bin/installInTemplate.sh Thu Oct 18 14:30:04 2018 +0000 @@ -6,4 +6,6 @@ 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 adduser --disabled-password -GECOS "CC master" cc +sudo su -c 'ssh-keygen -t rsa -N "" -f /home/cc/.ssh/id_rsa' cc +sudo cat ~cc/.ssh/id_rsa.pub