Check for rbd as a default & optional glance back-end

Currently only the default back-end is checked. This patch
ensures that both the default and additional beck-ends are
checked.

Change-Id: I0bc50a03bc6ca6939bd842a197c383bd5ced7bd2
Closes-Bug: #1670556
This commit is contained in:
Jesse Pretorius 2017-03-07 16:48:08 +00:00
parent c2a721fa55
commit 8de5d4fcb9

View File

@ -73,7 +73,7 @@
openstack_service_venv_bin: "{{ glance_bin }}"
when:
- inventory_hostname in groups['glance_api']
- (glance_default_store | default('none') | lower == 'rbd')
- "{{ 'rbd' in [glance_default_store | default('none')] + glance_additional_stores | default([]) }}"
tags:
- ceph
- role: "openstack_openrc"