Merge "Fix adding cloud-archive:newton issue in Ubuntu 16.04"
[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 {% if os.git_repo.origin_git %}
19         openstack-origin-git: "{{ os.git_repo.branch }}"
20 {% endif %}
21         secret: admin
22         webroot: /
23 {% if os.network.ipv6 %}
24         prefer-ipv6: {{ os.network.ipv6 }}
25 {% endif %}
26 {% if os.ha.mode == 'ha' %}
27         vip: {{ opnfv.vip.dashboard }}
28 {% endif %}
29 {% if os.beta.public_api %}
30         endpoint-type: internalURL
31 {% endif %}
32       to:
33 {% for unit_id in to_select() %}
34         - "lxd:nodes/{{ unit_id }}"
35 {% endfor %}