e765bc30009fa9a8152e7a3147ce28e9e136ce67
[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       constraints: *ceph-access-constr
6       bindings:
7         "": *oam-space
8         public: *public-space
9         admin: *admin-space
10         internal: *internal-space
11         shared-db: *internal-space
12 {% endif %}
13       options:
14         openstack-origin: *openstack-origin
15         worker-multiplier: *worker-multiplier
16         region: *openstack-region
17 {% if os.git_repo.origin_git %}
18         openstack-origin-git: "{{ os.git_repo.branch }}"
19 {% endif %}
20 {% if os.network.ipv6 %}
21         prefer-ipv6: {{ os.network.ipv6 }}
22 {% endif %}
23 {% if opnfv.storage_dict.ceph is defined %}
24         ceph-osd-replication-count: {{ unit_ceph_qty() }}
25 {% endif %}
26 {% if os.ha.mode == 'ha' %}
27         vip: {{ opnfv.vip.glance }}
28 {% endif %}
29       to:
30 {% for unit_id in to_select() %}
31         - "lxd:nodes/{{ unit_id }}"
32 {% endfor %}