diff options
author | Daniel Dumitriu <daniel@dumdan.com> | 2016-06-03 02:05:43 -0400 |
---|---|---|
committer | Daniel Dumitriu <daniel@dumdan.com> | 2016-06-03 02:05:43 -0400 |
commit | 5894cbe387834315ea212a4ab9406b37ab5ed2dc (patch) | |
tree | 653e72a021e67861a7488cb8ed5c28f982a504b3 /playbooks/libvirt | |
parent | c298b5a489aa858882c2f9e116afeda3ffa2efd3 (diff) | |
download | openshift-5894cbe387834315ea212a4ab9406b37ab5ed2dc.tar.gz openshift-5894cbe387834315ea212a4ab9406b37ab5ed2dc.tar.bz2 openshift-5894cbe387834315ea212a4ab9406b37ab5ed2dc.tar.xz openshift-5894cbe387834315ea212a4ab9406b37ab5ed2dc.zip |
Hardcoded values in "launch_instances" - isue # 1970
Diffstat (limited to 'playbooks/libvirt')
-rw-r--r-- | playbooks/libvirt/openshift-cluster/tasks/launch_instances.yml | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/playbooks/libvirt/openshift-cluster/tasks/launch_instances.yml b/playbooks/libvirt/openshift-cluster/tasks/launch_instances.yml index 7231f255a..833586ffa 100644 --- a/playbooks/libvirt/openshift-cluster/tasks/launch_instances.yml +++ b/playbooks/libvirt/openshift-cluster/tasks/launch_instances.yml @@ -83,7 +83,7 @@ with_items: instances - name: Wait for the VMs to get an IP - shell: 'virsh -c {{ libvirt_uri }} net-dhcp-leases openshift-ansible | egrep -c ''{{ instances | join("|") }}''' + shell: 'virsh -c {{ libvirt_uri }} net-dhcp-leases {{ libvirt_network }} | egrep -c ''{{ instances | join("|") }}''' register: nb_allocated_ips until: nb_allocated_ips.stdout == '{{ instances | length }}' retries: 60 @@ -91,7 +91,7 @@ when: instances | length != 0 - name: Collect IP addresses of the VMs - shell: 'virsh -c {{ libvirt_uri }} net-dhcp-leases openshift-ansible | awk ''$6 == "{{ item }}" {gsub(/\/.*/, "", $5); print $5}''' + shell: 'virsh -c {{ libvirt_uri }} net-dhcp-leases {{ libvirt_network }} | awk ''$6 == "{{ item }}" {gsub(/\/.*/, "", $5); print $5}''' register: scratch_ip with_items: instances |