Turn on pipelining for better Ansible performance

http://www.ansible.com/blog/2014/01/15/ssh-connection-upgrades-coming-in-ansible-1-5

Change-Id: I9b5999b69c9ac3cfff12469b964031ca565eb812
This commit is contained in:
Tim Kuhlman 2014-12-19 09:39:45 -07:00
parent 37bfa6d818
commit b08b63f2e8
2 changed files with 5 additions and 2 deletions

View File

@ -113,6 +113,9 @@ your local ansible configuration (~/.ansible.cfg or a personal ansible.cfg in th
remote_user = vagrant
host_key_checking = False
[ssh_connection]
pipelining = True # Speeds up connections but only if requiretty is not enabled for sudo
## Running behind a Web Proxy
If you are behind a proxy you can install the `vagrant-proxyconf` pluging to have Vagrant honor standard proxy-related environment variables and set the
VM to use them also.

4
Vagrantfile vendored
View File

@ -37,7 +37,7 @@ Vagrant.configure(VAGRANTFILE_API_VERSION) do |config|
ansible.playbook = "devstack.yml"
ansible.inventory_path = '.ansible_hosts'
ansible.host_key_checking = false
ansible.raw_arguments = '-T 30'
ansible.raw_arguments = ['-T 30', '-e pipelining=True']
end
end
@ -54,7 +54,7 @@ Vagrant.configure(VAGRANTFILE_API_VERSION) do |config|
ansible.playbook = "mini-mon.yml"
ansible.inventory_path = '.ansible_hosts'
ansible.host_key_checking = false
ansible.raw_arguments = '-T 30'
ansible.raw_arguments = ['-T 30', '-e pipelining=True']
end
end