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