modified to accomodate the scaleio bundles and charms.
[joid.git] / ci / config_tpl / bundle_tpl / cinder.yaml
1     cinder:
2       charm: "local:{{ ubuntu.release }}/cinder"
3 {% if opnfv.storage_dict.scaleio is defined %}
4       num_units: 1
5 {% else %}
6       num_units: {{ unit_qty() }}
7 {% endif %}
8       options:
9 {% if os.ha.mode == 'ha' %}
10         vip: {{ opnfv.vip.cinder }}
11 {% endif %}
12 {% if os.beta.public_api %}
13         os-public-hostname: api.{{ opnfv.domain }}
14 {% endif %}
15         block-device: None
16         glance-api-version: 2
17       to:
18 {% if opnfv.storage_dict.scaleio is defined %}
19         - "nodes=0"
20 {% else %}
21 {% for unit_id in to_select() %}
22         - "lxc:nodes={{ unit_id }}"
23 {% endfor %}
24 {% endif %}