modfiied for JUJU 2.1-rc1 changes.
[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         website: internal-api
8 {% if os.ha.mode == 'ha' %}
9         cluster: internal-api
10 {% endif %}
11 {% endif %}
12       options:
13         openstack-origin: "cloud:{{ ubuntu.release }}-{{ os.release }}"
14         secret: admin
15         webroot: /
16 {% if os.network.ipv6 %}
17         prefer-ipv6: {{ os.network.ipv6 }}
18 {% endif %}
19 {% if os.ha.mode == 'ha' %}
20         vip: {{ opnfv.vip.dashboard }}
21 {% endif %}
22 {% if os.beta.public_api %}
23         endpoint-type: internalURL
24 {% endif %}
25       to:
26 {% for unit_id in to_select() %}
27         - "lxd:nodes/{{ unit_id }}"
28 {% endfor %}