bf3fb04c82acdeb7b3451514496ed479851949d9
[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         openstack-origin: "cloud:{{ ubuntu.release }}-{{ os.release }}"
10         region: {{ os.region }}
11 {% if os.api.worker_multiplier %}
12         worker-multiplier: {{ os.api.worker_multiplier }}
13 {% endif %}
14 {% if opnfv.storage_dict.ceph is defined %}
15         ceph-osd-replication-count: {{ unit_ceph_qty() }}
16 {% endif %}
17 {% if os.ha.mode == 'ha' %}
18         vip: {{ opnfv.vip.cinder }}
19 {% endif %}
20 {% if os.beta.public_api %}
21         os-public-hostname: api.{{ opnfv.domain }}
22 {% endif %}
23         block-device: None
24         glance-api-version: 2
25       to:
26 {% if opnfv.storage_dict.scaleio is defined %}
27         - "nodes=0"
28 {% else %}
29 {% for unit_id in to_select() %}
30         - "lxc:nodes={{ unit_id }}"
31 {% endfor %}
32 {% endif %}