Merge pull request #416 from crawford/ami

oem/ami: up SSH timeout to 10 minutes
This commit is contained in:
Alex Crawford 2015-06-10 14:27:16 -07:00
commit f0248e57a5

View File

@ -150,7 +150,7 @@ declare -a ips=($($ec2_cmd | grep INSTANCE | cut -f4))
# sleep until all the sockets we need come up # sleep until all the sockets we need come up
for host in ${ips[@]}; do for host in ${ips[@]}; do
for port in 22 4001 7001; do for port in 22 4001 7001; do
timeout 300 perl -MIO::Socket::INET -e " timeout 600 perl -MIO::Socket::INET -e "
until(new IO::Socket::INET('$host:$port')){sleep 1}" until(new IO::Socket::INET('$host:$port')){sleep 1}"
done done
done done