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