move to master branch of charm for few bug fixes.
[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 {% if os.service.bindings %}
9       bindings:
10         internal: internal-api
11 {% if opnfv.spaces_dict.data is defined %}
12         admin: admin-api
13 {% else %}
14         admin: internal-api
15 {% endif %}
16 {% if opnfv.spaces_dict.public is defined %}
17         public: public-api
18 {% else %}
19         public: internal-api
20 {% endif %}
21 {% endif %}
22       options:
23         openstack-origin: "cloud:{{ ubuntu.release }}-{{ os.release }}"
24         region: {{ os.region }}
25         block-device: None
26         glance-api-version: 2
27 {% if os.beta.public_api %}
28         use-internal-endpoints: true
29 {% endif %}
30 {% if os.network.ipv6 %}
31         prefer-ipv6: {{ os.network.ipv6 }}
32 {% endif %}
33 {% if os.api.worker_multiplier %}
34         worker-multiplier: {{ os.api.worker_multiplier }}
35 {% endif %}
36 {% if opnfv.storage_dict.ceph is defined %}
37         ceph-osd-replication-count: {{ unit_ceph_qty() }}
38 {% endif %}
39 {% if os.ha.mode == 'ha' %}
40         vip: {{ opnfv.vip.cinder }}
41 {% endif %}
42 {% if os.beta.public_api %}
43         os-public-hostname: api.{{ opnfv.domain }}
44 {% endif %}
45       to:
46 {% if opnfv.storage_dict.scaleio is defined %}
47         - "nodes/0"
48 {% else %}
49 {% for unit_id in to_select() %}
50         - "lxd:nodes/{{ unit_id }}"
51 {% endfor %}
52 {% endif %}