modified to made an option to support spaces as per JUJU 2.0
[joid.git] / ci / config_tpl / juju2 / bundle_tpl / glance.yaml
1     glance:
2       charm: "./{{ ubuntu.release }}/glance"
3       num_units: {{ unit_qty() }}
4 {% if os.service.bindings %}
5       bindings:
6         internal: internal
7 {% if opnfv.spaces_dict.data is defined %}
8         admin: admin
9 {% else %}
10         admin: internal
11 {% endif %}
12 {% if opnfv.spaces_dict.public is defined %}
13         public: public
14 {% else %}
15         public: internal
16 {% endif %}
17 {% endif %}
18       options:
19         openstack-origin: "cloud:{{ ubuntu.release }}-{{ os.release }}"
20         region: {{ os.region }}
21 {% if os.beta.public_api %}
22         use-internal-endpoints: true
23 {% endif %}
24 {% if os.network.ipv6 %}
25         prefer-ipv6: {{ os.network.ipv6 }}
26 {% endif %}
27 {% if opnfv.storage_dict.ceph is defined %}
28         ceph-osd-replication-count: {{ unit_ceph_qty() }}
29 {% endif %}
30 {% if os.api.worker_multiplier %}
31         worker-multiplier: {{ os.api.worker_multiplier }}
32 {% endif %}
33 {% if os.ha.mode == 'ha' %}
34         vip: {{ opnfv.vip.glance }}
35 {% endif %}
36 {% if os.beta.public_api %}
37         os-public-hostname: api.{{ opnfv.domain }}
38 {% endif %}
39       to:
40 {% for unit_id in to_select() %}
41         - "lxd:nodes/{{ unit_id }}"
42 {% endfor %}