Merge "Fix adding cloud-archive:newton issue in Ubuntu 16.04"
[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         internal: internal-api
11         admin: internal-api
12         shared-db: internal-api
13 {% if opnfv.spaces_dict.public is defined %}
14         public: public-api
15 {% else %}
16         public: internal-api
17 {% endif %}
18 {% endif %}
19       options:
20         openstack-origin: "cloud:{{ ubuntu.release }}-{{ os.release }}"
21 {% if os.git_repo.origin_git %}
22         openstack-origin-git: "{{ os.git_repo.branch }}"
23 {% endif %}
24         region: {{ os.region }}
25         block-device: None
26         glance-api-version: 2
27 {% if os.beta.public_api %}
28         use-internal-endpoints: true
29 {% endif %}
30 {% if os.network.ipv6 %}
31         prefer-ipv6: {{ os.network.ipv6 }}
32 {% endif %}
33 {% if os.api.worker_multiplier %}
34         worker-multiplier: {{ os.api.worker_multiplier }}
35 {% endif %}
36 {% if opnfv.storage_dict.ceph is defined %}
37         ceph-osd-replication-count: {{ unit_ceph_qty() }}
38 {% endif %}
39 {% if os.ha.mode == 'ha' %}
40         vip: {{ opnfv.vip.cinder }}
41 {% endif %}
42 {% if os.beta.public_api %}
43         os-public-hostname: api.{{ opnfv.domain }}
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 %}