mirror of
https://github.com/zulip/zulip.git
synced 2025-11-15 03:11:54 +00:00
Setup servers id_rsa for the humbug user as well.
(imported from commit 19a36fc829882eff7bfdab3a22765c5df6bdbd0d)
This commit is contained in:
@@ -33,7 +33,7 @@ yes '' | apt-get install -t squeeze-backports puppet git
|
|||||||
EOF
|
EOF
|
||||||
|
|
||||||
# Give new server git access
|
# 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
|
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
|
ssh "$server" -t -i ~/humbug/humbug.pem -lroot <<EOF
|
||||||
@@ -74,6 +74,12 @@ if [ -e "/etc/init.d/apache2" ]; then
|
|||||||
fi
|
fi
|
||||||
EOF
|
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
|
set +x
|
||||||
cat <<EOF
|
cat <<EOF
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user