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