modfiied to corner the concerns of Orange labs.
[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-api
7         admin: internal-api
8         shared-db: internal-api
9 {% if opnfv.spaces_dict.public is defined %}
10         public: public-api
11 {% else %}
12         public: internal-api
13 {% endif %}
14 {% endif %}
15       options:
16         openstack-origin: "cloud:{{ ubuntu.release }}-{{ os.release }}"
17         region: {{ os.region }}
18 {% if os.beta.public_api %}
19         use-internal-endpoints: true
20 {% endif %}
21 {% if os.network.ipv6 %}
22         prefer-ipv6: {{ os.network.ipv6 }}
23 {% endif %}
24 {% if opnfv.storage_dict.ceph is defined %}
25         ceph-osd-replication-count: {{ unit_ceph_qty() }}
26 {% endif %}
27 {% if os.api.worker_multiplier %}
28         worker-multiplier: {{ os.api.worker_multiplier }}
29 {% endif %}
30 {% if os.ha.mode == 'ha' %}
31         vip: {{ opnfv.vip.glance }}
32 {% endif %}
33 {% if os.beta.public_api %}
34         os-public-hostname: api.{{ opnfv.domain }}
35 {% endif %}
36       to:
37 {% for unit_id in to_select() %}
38         - "lxd:nodes/{{ unit_id }}"
39 {% endfor %}