modfied to use the default internal endpoint.
[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         "": *oam-space
11         public: *public-space
12         admin: *admin-space
13         internal: *internal-space
14         shared-db: *internal-space
15 {% endif %}
16       options:
17         openstack-origin: *openstack-origin
18 {% if os.git_repo.origin_git %}
19         openstack-origin-git: "{{ os.git_repo.branch }}"
20 {% endif %}
21         region: *openstack-region
22         block-device: None
23         glance-api-version: 2
24         use-internal-endpoints: True
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 {% if os.beta.public_api %}
38         os-public-hostname: api.{{ opnfv.domain }}
39 {% endif %}
40       to:
41 {% if opnfv.storage_dict.scaleio is defined %}
42         - "nodes/0"
43 {% else %}
44 {% for unit_id in to_select() %}
45         - "lxd:nodes/{{ unit_id }}"
46 {% endfor %}
47 {% endif %}