Split general OVB setup tasks from the the stack create

This is the first step in combining the upstream playbook used
for OVB jobs with this one. This should be a no-op change in terms
of what gets run, however the part that is split out is common to
the upstream jobs which create the stack via the testenv broker.

We can then iterate on adding in the testenv broker steps (guarded
by some option) in follow-up patches.

Change-Id: I7cad64e83ed0fbf791b26bdf0e381599d177de7b
This commit is contained in:
John Trowbridge 2017-10-12 16:31:46 -04:00
parent 0fb6cdbcf1
commit 5cc18e2bca
3 changed files with 35 additions and 32 deletions

View File

@ -2,7 +2,7 @@
- include: baremetal-prep-virthost.yml
when: undercloud_type == 'virtual' and environment_type is defined
- include: ovb-create-stack.yml
- include: ovb-setup.yml
when: undercloud_type == 'ovb'
- include: baremetal-quickstart-extras.yml

View File

@ -15,34 +15,3 @@
roles:
- { role: ovb-manage-stack, ovb_manage_stack_mode: 'create' }
- name: Setup the undercloud
hosts: undercloud
gather_facts: no
vars:
ansible_user: root
roles:
- undercloud-setup
- name: Inventory the undercloud instance
hosts: localhost
gather_facts: yes
roles:
- tripleo-inventory
- name: Fetch the overcloud images
hosts: undercloud
gather_facts: no
roles:
- fetch-images
- name: Build test packages using DLRN
hosts: undercloud
roles:
- {role: build-test-packages, when: build_test_packages|default(false)|bool }
- name: Install the built package on the undercloud
hosts: undercloud
gather_facts: no
roles:
- {role: install-built-repo, when: build_test_packages|default(false)|bool }

34
playbooks/ovb-setup.yml Normal file
View File

@ -0,0 +1,34 @@
---
- include: ovb-create-stack.yml
- name: Setup the undercloud
hosts: undercloud
gather_facts: no
vars:
ansible_user: root
roles:
- undercloud-setup
- name: Inventory the undercloud instance
hosts: localhost
gather_facts: yes
roles:
- tripleo-inventory
- name: Fetch the overcloud images
hosts: undercloud
gather_facts: no
roles:
- fetch-images
- name: Build test packages using DLRN
hosts: undercloud
roles:
- {role: build-test-packages, when: build_test_packages|default(false)|bool }
- name: Install the built package on the undercloud
hosts: undercloud
gather_facts: no
roles:
- {role: install-built-repo, when: build_test_packages|default(false)|bool }