12b6acc679db8d15f9c3352d7790c515bca61678
[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       constraints: *ceph-access-constr
10       bindings:
11         "": *oam-space
12         public: *public-space
13         admin: *admin-space
14         internal: *internal-space
15         shared-db: *internal-space
16 {% endif %}
17       options:
18         openstack-origin: *openstack-origin
19 {% if os.git_repo.origin_git %}
20         openstack-origin-git: "{{ os.git_repo.branch }}"
21 {% endif %}
22         region: *openstack-region
23         block-device: None
24         glance-api-version: 2
25 {% if os.network.ipv6 %}
26         prefer-ipv6: {{ os.network.ipv6 }}
27 {% endif %}
28 {% if os.api.worker_multiplier %}
29         worker-multiplier: *worker-multiplier
30 {% endif %}
31 {% if opnfv.storage_dict.ceph is defined %}
32         ceph-osd-replication-count: {{ unit_ceph_qty() }}
33 {% endif %}
34 {% if os.ha.mode == 'ha' %}
35         vip: {{ opnfv.vip.cinder }}
36 {% endif %}
37       to:
38 {% if opnfv.storage_dict.scaleio is defined %}
39         - "nodes/0"
40 {% else %}
41 {% for unit_id in to_select() %}
42         - "lxd:nodes/{{ unit_id }}"
43 {% endfor %}
44 {% endif %}