xentaur
diff files/ec2-instances @ 68:f652fab38c7a
ec2 parameters small fixes
author | Igor Chubin <igor@chub.in> |
---|---|
date | Mon Jan 11 19:36:56 2010 +0200 (2010-01-11) |
parents | 6c145935ece5 |
children |
line diff
1.1 --- a/files/ec2-instances Mon Jan 11 13:01:35 2010 +0200 1.2 +++ b/files/ec2-instances Mon Jan 11 19:36:56 2010 +0200 1.3 @@ -100,6 +100,15 @@ 1.4 ec2-attach-volume -d /dev/sdb -i `head -1 $NETWORK-instances` $VOLUME_NAME 1.5 } 1.6 1.7 +unlock_root_account() 1.8 +{ 1.9 + for i in `seq 0 $((INSTANCES_NUMBER-1))` 1.10 + do 1.11 + host=$NETWORK-node$i.$DOMAIN 1.12 + ssh -i $SSH_SECRET_KEY ubuntu@$host "sudo sh -c 'cat .ssh/authorized_keys > /root/.ssh/authorized_keys'" 1.13 + done 1.14 +} 1.15 + 1.16 configure_instances() 1.17 { 1.18 #FIXME: Only for managed hosts! Not for all! 1.19 @@ -136,6 +145,7 @@ 1.20 update_dns 1.21 ssh_keys 1.22 attach_block_device 1.23 +unlock_root_account 1.24 configure_instances 1.25 message "* Starting emulators" 1.26 start_emulators