summaryrefslogtreecommitdiffstats
path: root/bifrost/playbooks
diff options
context:
space:
mode:
authorMarkos Chandras <mchandras@suse.de>2016-10-21 10:36:09 +0100
committerTrevor Bramwell <tbramwell@linuxfoundation.org>2017-08-11 12:56:12 -0700
commit0c9e6abc1361107bd79af4f267a6c3efbdea42c6 (patch)
treeb529e4a3a394ed18bdb1f2478e5b8487894ade96 /bifrost/playbooks
parent08348ff3dbb7214a4b2209b98181442653a6681c (diff)
playbooks: Do not serialize ironic deployment
[This is similar to upstream https://review.openstack.org/389079] This somewhat reverts 0a82e3d8d29f85229e1ed29d90de47346bc1d9b1 ("Serialize localhost actions during final host deployment"). The only point where we want to serialize the steps is when accessing common files on the host. In the bifrost-deploy-nodes-dynamic role, all tasks are accessing files based on the 'inventory_hostname' variable, which means there is no conflict there and tasks on these role can run in parallel. This allows bifrost to provision machines in parallel during pxe boot which speeds up the entire operation. Change-Id: I64b1f2832c333c89e33e8f9d19f03e4d653d74b4 Signed-off-by: Markos Chandras <mchandras@suse.de>
Diffstat (limited to 'bifrost/playbooks')
-rw-r--r--bifrost/playbooks/test-bifrost-infracloud.yaml8
1 files changed, 4 insertions, 4 deletions
diff --git a/bifrost/playbooks/test-bifrost-infracloud.yaml b/bifrost/playbooks/test-bifrost-infracloud.yaml
index d650f105..a0bc2850 100644
--- a/bifrost/playbooks/test-bifrost-infracloud.yaml
+++ b/bifrost/playbooks/test-bifrost-infracloud.yaml
@@ -67,18 +67,18 @@
- role: ironic-enroll-dynamic
- { role: ironic-inspect-node, when: inspect_nodes | default('false') | bool == true }
- hosts: baremetal
- name: "Create configuration drive files"
+ name: "Create configuration drive files and deploy machines"
+ vars:
+ multinode_testing: "{{ inventory_dhcp | bool == true }}"
become: no
connection: local
roles:
- role: bifrost-configdrives-dynamic
+ - role: bifrost-deploy-nodes-dynamic
- hosts: baremetal
- vars:
- multinode_testing: "{{ inventory_dhcp | bool == true }}"
name: "Deploy machines."
become: no
connection: local
serial: 1
roles:
- - role: bifrost-deploy-nodes-dynamic
- role: bifrost-prepare-for-test-dynamic