Merge "Allow empty compute group when ironic is in use"

This commit is contained in:
Zuul 2017-12-29 08:20:19 +00:00 committed by Gerrit Code Review
commit 89d5a24ad1

View File

@ -12,9 +12,14 @@
register: container_facts
- name: Checking available compute nodes in inventory
vars:
nova_compute_ironic: "{{ nova_services['nova-compute-ironic'] }}"
fail:
msg: "At least 1 compute node required in inventory"
when: groups['compute'] | length < 1
msg: >
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
vars: