c57260c63278e3ad2d4b2febf525e09fbe8a3cb4
[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         shared-db: internal-api
8 {% if opnfv.spaces_dict.data is defined %}
9         admin: admin-api
10 {% else %}
11         admin: internal-api
12 {% endif %}
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         region: {{ os.region }}
22 {% if os.beta.public_api %}
23         use-internal-endpoints: true
24 {% endif %}
25 {% if os.network.ipv6 %}
26         prefer-ipv6: {{ os.network.ipv6 }}
27 {% endif %}
28 {% if opnfv.storage_dict.ceph is defined %}
29         ceph-osd-replication-count: {{ unit_ceph_qty() }}
30 {% endif %}
31 {% if os.api.worker_multiplier %}
32         worker-multiplier: {{ os.api.worker_multiplier }}
33 {% endif %}
34 {% if os.ha.mode == 'ha' %}
35         vip: {{ opnfv.vip.glance }}
36 {% endif %}
37 {% if os.beta.public_api %}
38         os-public-hostname: api.{{ opnfv.domain }}
39 {% endif %}
40       to:
41 {% for unit_id in to_select() %}
42         - "lxd:nodes/{{ unit_id }}"
43 {% endfor %}