d1136446fa946d2b5555ffbd7dbdb04ad95350e2
[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         "": *oam-space
7         public: *public-space
8         admin: *admin-space
9         internal: *internal-space
10         shared-db: *internal-space
11 {% endif %}
12       options:
13         openstack-origin: *openstack-origin
14         worker-multiplier: *worker-multiplier
15         region: *openstack-region
16 {% if os.beta.public_api %}
17         use-internal-endpoints: True
18 {% endif %}
19 {% if os.git_repo.origin_git %}
20         openstack-origin-git: "{{ os.git_repo.branch }}"
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.ha.mode == 'ha' %}
29         vip: {{ opnfv.vip.glance }}
30 {% endif %}
31 {% if os.beta.public_api %}
32         os-public-hostname: api.{{ opnfv.domain }}
33 {% endif %}
34       to:
35 {% for unit_id in to_select() %}
36         - "lxd:nodes/{{ unit_id }}"
37 {% endfor %}