f7aee3010aae47fa87c7835f85718c09b079dd52
[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: *cinder-vip
36 {% endif %}
37 {% if os.api.ssl %}
38         ssl_ca: *ssl_ca
39         ssl_cert: *ssl_cert
40         ssl_key: *ssl_key
41         os-public-hostname: *hostname_cinder_public
42         os-internal-hostname: *hostname_cinder_public
43         os-admin-hostname: *hostname_cinder_public
44 {% endif %}
45       to:
46 {% if opnfv.storage_dict.scaleio is defined %}
47         - "nodes/0"
48 {% else %}
49 {% for unit_id in to_select() %}
50         - "lxd:nodes/{{ unit_id }}"
51 {% endfor %}
52 {% endif %}