cmodfiied to add juju 2.0 support.
[joid.git] / ci / config_tpl / juju2 / bundle_tpl / cinder.yaml
1     cinder:
2       charm: "./{{ 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         block-device: None
12         glance-api-version: 2
13 {% if os.beta.public_api %}
14         use-internal-endpoints: true
15 {% endif %}
16 {% if os.network.ipv6 %}
17         prefer-ipv6: {{ os.network.ipv6 }}
18 {% endif %}
19 {% if os.api.worker_multiplier %}
20         worker-multiplier: {{ os.api.worker_multiplier }}
21 {% endif %}
22 {% if opnfv.storage_dict.ceph is defined %}
23         ceph-osd-replication-count: {{ unit_ceph_qty() }}
24 {% endif %}
25 {% if os.ha.mode == 'ha' %}
26         vip: {{ opnfv.vip.cinder }}
27 {% endif %}
28 {% if os.beta.public_api %}
29         os-public-hostname: api.{{ opnfv.domain }}
30 {% endif %}
31       to:
32 {% if opnfv.storage_dict.scaleio is defined %}
33         - "nodes/0"
34 {% else %}
35 {% for unit_id in to_select() %}
36         - "lxd:nodes/{{ unit_id }}"
37 {% endfor %}
38 {% endif %}