added ssl support based on default.
[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       constraints: *oam-space-constr
6       bindings:
7         "": *public-space
8         shared-db: *internal-space
9 {% endif %}
10       options:
11         openstack-origin: *openstack-origin
12 {% if os.git_repo.origin_git %}
13         openstack-origin-git: "{{ os.git_repo.branch }}"
14 {% endif %}
15         secret: admin
16         webroot: /
17         neutron-network-lb: True
18         neutron-network-firewall: False
19         cinder-backup: False
20         password-retrieve: True
21 {% if os.network.ipv6 %}
22         prefer-ipv6: {{ os.network.ipv6 }}
23 {% endif %}
24 {% if os.ha.mode == 'ha' %}
25         vip: *dashboard-vip
26 {% endif %}
27 {% if os.api.ssl %}
28         ssl_ca: *ssl_ca
29         ssl_cert: *ssl_cert
30         ssl_key: *ssl_key
31         os-public-hostname: *hostname_dashboard_public
32         os-internal-hostname: *hostname_dashboard_public
33         os-admin-hostname: *hostname_dashboard_public
34 {% endif %}
35       to:
36 {% for unit_id in to_select() %}
37         - "lxd:nodes/{{ unit_id }}"
38 {% endfor %}