modfiied to corner the concerns of Orange labs.
[joid.git] / ci / config_tpl / juju2 / bundle_tpl / openstack-dashboard.yaml
1     openstack-dashboard:
2       charm: "./{{ ubuntu.release }}/openstack-dashboard"
3       num_units: {{ unit_qty() }}
4 {% if os.service.bindings %}
5       bindings:
6         shared-db: internal-api
7 {% if opnfv.spaces_dict.public is defined %}
8         website: public-api
9 {% else %}
10         website: internal-api
11 {% endif %}
12 {% if os.ha.mode == 'ha' %}
13         cluster: internal-api
14 {% endif %}
15 {% endif %}
16       options:
17         openstack-origin: "cloud:{{ ubuntu.release }}-{{ os.release }}"
18         secret: admin
19         webroot: /
20 {% if os.network.ipv6 %}
21         prefer-ipv6: {{ os.network.ipv6 }}
22 {% endif %}
23 {% if os.ha.mode == 'ha' %}
24         vip: {{ opnfv.vip.dashboard }}
25 {% endif %}
26 {% if os.beta.public_api %}
27         endpoint-type: internalURL
28 {% endif %}
29       to:
30 {% for unit_id in to_select() %}
31         - "lxd:nodes/{{ unit_id }}"
32 {% endfor %}