952b53089b
The idea is to factor out a role for deploying Nova related services to cells. Since all deployments use cells, this role can be used in both regular deployments which have just cell0 and cell1, and deployments with many cells. Partially Implements: blueprint support-nova-cells Change-Id: Ib1f36ec0a773c384f2c1eac1843782a3e766045a
32 lines
778 B
YAML
32 lines
778 B
YAML
---
|
|
- include_tasks: register.yml
|
|
when: inventory_hostname in groups['nova-api']
|
|
|
|
- include_tasks: bootstrap_xenapi.yml
|
|
when:
|
|
- inventory_hostname in groups['compute']
|
|
- nova_compute_virt_type == "xenapi"
|
|
|
|
- include_tasks: clone.yml
|
|
when: nova_dev_mode | bool
|
|
|
|
- include_tasks: config.yml
|
|
|
|
- include_tasks: config-nova-fake.yml
|
|
when:
|
|
- enable_nova_fake | bool
|
|
- inventory_hostname in groups['compute']
|
|
|
|
- include_tasks: bootstrap.yml
|
|
when: inventory_hostname in groups['nova-api'] or
|
|
inventory_hostname in groups['compute']
|
|
|
|
- include_tasks: create_cells.yml
|
|
when: inventory_hostname in groups['nova-api']
|
|
|
|
- name: Flush handlers
|
|
meta: flush_handlers
|
|
|
|
- include_tasks: discover_computes.yml
|
|
when: inventory_hostname in groups['nova-api']
|