Merge "Allow empty compute group when ironic is in use"
This commit is contained in:
commit
89d5a24ad1
@ -12,9 +12,14 @@
|
|||||||
register: container_facts
|
register: container_facts
|
||||||
|
|
||||||
- name: Checking available compute nodes in inventory
|
- name: Checking available compute nodes in inventory
|
||||||
|
vars:
|
||||||
|
nova_compute_ironic: "{{ nova_services['nova-compute-ironic'] }}"
|
||||||
fail:
|
fail:
|
||||||
msg: "At least 1 compute node required in inventory"
|
msg: >
|
||||||
when: groups['compute'] | length < 1
|
At least 1 compute node required in inventory when ironic is disabled.
|
||||||
|
when:
|
||||||
|
- groups['compute'] | length < 1
|
||||||
|
- not nova_compute_ironic.enabled | bool
|
||||||
|
|
||||||
- name: Checking free port for Nova API
|
- name: Checking free port for Nova API
|
||||||
vars:
|
vars:
|
||||||
|
Loading…
Reference in New Issue
Block a user