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