adding bionic support.
[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       series: {{ ubuntu.release }}
18       options:
19         openstack-origin: *openstack-origin
20 {% if os.git_repo.origin_git %}
21         openstack-origin-git: "{{ os.git_repo.branch }}"
22 {% endif %}
23         region: *openstack-region
24         block-device: None
25         glance-api-version: 2
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: *cinder-vip
37 {% endif %}
38 {% if os.api.ssl %}
39         ssl_ca: *ssl_ca
40         ssl_cert: *ssl_cert
41         ssl_key: *ssl_key
42         os-public-hostname: *hostname_cinder_public
43         os-internal-hostname: *hostname_cinder_public
44         os-admin-hostname: *hostname_cinder_public
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 %}