modified to setup contraints on single bindin space charms.
[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         use-internal-endpoints: True
26 {% if os.network.ipv6 %}
27         prefer-ipv6: {{ os.network.ipv6 }}
28 {% endif %}
29 {% if os.api.worker_multiplier %}
30         worker-multiplier: *worker-multiplier
31 {% endif %}
32 {% if opnfv.storage_dict.ceph is defined %}
33         ceph-osd-replication-count: {{ unit_ceph_qty() }}
34 {% endif %}
35 {% if os.ha.mode == 'ha' %}
36         vip: {{ opnfv.vip.cinder }}
37 {% endif %}
38 {% if os.beta.public_api %}
39         os-public-hostname: api.{{ opnfv.domain }}
40 {% endif %}
41       to:
42 {% if opnfv.storage_dict.scaleio is defined %}
43         - "nodes/0"
44 {% else %}
45 {% for unit_id in to_select() %}
46         - "lxd:nodes/{{ unit_id }}"
47 {% endfor %}
48 {% endif %}