Merge "Only pause in VMs when performing multinode testing"

This commit is contained in:
Jenkins 2016-03-14 17:17:22 +00:00 committed by Gerrit Code Review
commit d104858599
3 changed files with 3 additions and 0 deletions

View File

@ -1,3 +1,4 @@
---
node_ssh_pause: 10
wait_timeout: 900
multinode_testing: false

View File

@ -27,6 +27,7 @@
when: ipv4_address is defined
- name: "Pause before asking for keyscan, to avoid races"
pause: minutes=2
when: multinode_testing | bool == true
- name: "Add testvm hosts from SSH known_hosts file."
shell: ssh-keyscan "{{ ipv4_address }}" >> "{{ ansible_env.HOME }}/.ssh/known_hosts"
when: ipv4_address is defined

View File

@ -73,6 +73,7 @@
- hosts: baremetal
vars:
inventory_dhcp_static_ip: "{{ inventory_dhcp_static_ip | bool }}"
multinode_testing: true
name: "Creat configuration drive files and deploy machines."
become: no
connection: local