Commit 0daf4db6 by Feanil Patel

Update SSH Options for ansible-provision.sh

When ansible is going over a NAT Gateway or other intermdiate
network devices, the connection can time out if that device has
its own timeout setting for no traffic.  Setting the ServerAliveInterval
will ensure that there is data sent over the wire ever 30 seconds so the
connection does not get closed while running ansible tasks that take
over 5 minutes.
parent 1907f9f1
......@@ -24,6 +24,7 @@ env | grep -v AWS | grep -v ARN
export PYTHONUNBUFFERED=1
export BOTO_CONFIG=/var/lib/jenkins/${aws_account}.boto
export ANSIBLE_SSH_ARGS='-o ControlMaster=auto -o ControlPersist=60s -o ControlPath="~/.ansible/tmp/ansible-ssh-%h-%p-%r" -o ServerAliveInterval=30'
# docker on OS-X includes your Mac's home directory in the socket path
# that SSH/Ansible uses for the control socket, pushing you over
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment