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