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