Setup servers id_rsa for the humbug user as well.

(imported from commit 19a36fc829882eff7bfdab3a22765c5df6bdbd0d)
This commit is contained in:
Tim Abbott
2012-11-01 15:14:31 -04:00
parent 7d35c3135b
commit 44bee33c41

View File

@@ -33,7 +33,7 @@ yes '' | apt-get install -t squeeze-backports puppet git
EOF
# Give new server git access
# TODO: Don't give servers pull access to our git!
# TODO: Don't give servers push access to our git!
scp -i ~/humbug/humbug.pem ~/humbug/servers/puppet/files/id_rsa root@"$server":/root/.ssh/id_rsa
ssh "$server" -t -i ~/humbug/humbug.pem -lroot <<EOF
@@ -74,6 +74,12 @@ if [ -e "/etc/init.d/apache2" ]; then
fi
EOF
# TODO: Don't give servers push access to our git!
scp -i ~/humbug/humbug.pem ~/humbug/servers/puppet/files/id_rsa humbug@"$server":/home/humbug/.ssh/id_rsa
ssh "$server" -t -i ~/humbug/humbug.pem -lhumbug <<EOF
chmod 600 /home/humbug/.ssh/id_rsa
EOF
set +x
cat <<EOF