tripleo-quickstart-extras/playbooks/ovb-create-stack.yml
Ronelle Landy 4d0f6329df Parameterize OVB stack flavors
Running quickstart with OVB  needs to work with multiple host
clouds where different flavor sets are available.

This review:
* Adds variables to the flavor specifications so that they can be
  overwritten by config files per host cloud environment
* Adds functionality to clean up stacks and keypairs
  from the host cloud environment
* Includes cloning the Openstack Virtual Baremetal repo
  within the ovb-manage-stack role
* Deletes the clouds.yaml file so it is not available,
  with the tenant password exposed for longer than
  necessary to create or delete the stack
* Changes the default key location to use
  the user's default key on the undercloud

Change-Id: I5f0f7327a2509ef889b80a35024478b13df2c2a9
2017-05-16 10:47:20 -04:00

49 lines
1.1 KiB
YAML

---
# Add the virthost to the in-memory inventory. The inventory is not
# written out to disk unless you call the `tripleo-inventory` role.
- name: Add the virthost to the inventory
hosts: localhost
tasks:
- name: Add virthost
add_host:
name: "virthost"
groups: "virthost"
ansible_host: "{{ virthost }}"
- name: Create the OVB stack
hosts: localhost
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 }