From dcf530a6dec7ad0d2128a42d16a615f22c7b4e62 Mon Sep 17 00:00:00 2001 From: "Tang, Roy (rt7380)" Date: Mon, 19 Nov 2018 19:58:51 +0000 Subject: [PATCH] Add TaaS panel to Horizon dashboard This will enable the TaaS GUI to the horizon dashbboard. TaaS dashboard will need to be installed as part of the image, else it will not try to add the panel. Change-Id: I226d9d6e46f5b556a7baa88fcd06de8e571bcdff --- horizon/templates/bin/_horizon.sh.tpl | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/horizon/templates/bin/_horizon.sh.tpl b/horizon/templates/bin/_horizon.sh.tpl index 8ff4a3c16e..99956ecf14 100644 --- a/horizon/templates/bin/_horizon.sh.tpl +++ b/horizon/templates/bin/_horizon.sh.tpl @@ -46,6 +46,12 @@ function start () { /tmp/manage.py compress --force rm -rf /tmp/_tmp_.secret_key_store.lock /tmp/.secret_key_store + # Add TaaS dashboard panel if available + TAAS_PANEL="${SITE_PACKAGES_ROOT}/neutron_taas_dashboard/enabled/_90_project_tapservices_panel.py" + if [ -f ${TAAS_PANEL} ]; then + ln -s ${TAAS_PANEL} ${SITE_PACKAGES_ROOT}/openstack_dashboard/local/enabled/_90_project_tapservices_panel.py + fi + exec apache2 -DFOREGROUND }