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