summaryrefslogtreecommitdiffstats
path: root/ci/config_tpl/juju2/bundle_tpl/openstack-dashboard.yaml
diff options
context:
space:
mode:
Diffstat (limited to 'ci/config_tpl/juju2/bundle_tpl/openstack-dashboard.yaml')
-rw-r--r--ci/config_tpl/juju2/bundle_tpl/openstack-dashboard.yaml16
1 files changed, 16 insertions, 0 deletions
diff --git a/ci/config_tpl/juju2/bundle_tpl/openstack-dashboard.yaml b/ci/config_tpl/juju2/bundle_tpl/openstack-dashboard.yaml
index aef9260b..28ad55c4 100644
--- a/ci/config_tpl/juju2/bundle_tpl/openstack-dashboard.yaml
+++ b/ci/config_tpl/juju2/bundle_tpl/openstack-dashboard.yaml
@@ -1,6 +1,22 @@
openstack-dashboard:
charm: "./{{ ubuntu.release }}/openstack-dashboard"
num_units: {{ unit_qty() }}
+{% if os.service.bindings %}
+ bindings:
+ shared-db: internal-api
+ internal: internal-api
+{% if opnfv.spaces_dict.public is defined %}
+ public: public-api
+{% if opnfv.spaces_dict.data is defined %}
+ admin: admin-api
+{% else %}
+ admin: internal-api
+{% endif %}
+{% else %}
+ admin: internal-api
+ public: internal-api
+{% endif %}
+{% endif %}
options:
openstack-origin: "cloud:{{ ubuntu.release }}-{{ os.release }}"
secret: admin