From 5af8849f951a13cfb8ea0577341ed3596ea2b3b3 Mon Sep 17 00:00:00 2001 From: Alexey Deryugin Date: Wed, 8 Apr 2015 16:25:13 +0300 Subject: [PATCH] [devstack] Install Murano as plugin for Horizon Change-Id: I7b76fdb64d3c0654e4c134dc5980ffddd9cc6912 Closes-Bug: #1441221 --- contrib/devstack/lib/murano-dashboard | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/contrib/devstack/lib/murano-dashboard b/contrib/devstack/lib/murano-dashboard index 014ec0a7..122c16f1 100644 --- a/contrib/devstack/lib/murano-dashboard +++ b/contrib/devstack/lib/murano-dashboard @@ -29,7 +29,6 @@ HORIZON_LOCAL_CONFIG=${HORIZON_LOCAL_CONFIG:-$HORIZON_DIR/openstack_dashboard/lo # Set up default repos MURANO_DASHBOARD_REPO=${MURANO_DASHBOARD_REPO:-${GIT_BASE}/stackforge/murano-dashboard.git} MURANO_DASHBOARD_BRANCH=${MURANO_DASHBOARD_BRANCH:-master} -MURANO_DASHBOARD_DIR=$DEST/murano-dashboard # Set up default directories MURANO_DASHBOARD_DIR=$DEST/murano-dashboard @@ -95,8 +94,6 @@ DATABASES = { } } SESSION_ENGINE = 'django.contrib.sessions.backends.db' -HORIZON_CONFIG['dashboards'] += ('murano',) -INSTALLED_APPS += ('muranodashboard','floppyforms',) MIDDLEWARE_CLASSES += ('muranodashboard.middleware.ExceptionMiddleware',) #------------------------------------------------------------------------------- #MURANO_CONFIG_SECTION_END @@ -105,6 +102,9 @@ EOF # Insert changes into dashboard config before the line matching the pattern insert_config_block "$HORIZON_CONFIG" "$horizon_config_part" "from openstack_dashboard import policy" + + # Install Murano as plugin for Horizon + ln -s $MURANO_DASHBOARD_DIR/muranodashboard/local/_50_murano.py $HORIZON_DIR/openstack_dashboard/local/enabled/ } @@ -146,6 +146,7 @@ function install_murano_dashboard() { function cleanup_murano_dashboard() { echo_summary "Cleanup Murano Dashboard" remove_config_block "$HORIZON_CONFIG" "MURANO_CONFIG_SECTION" + rm $HORIZON_DIR/openstack_dashboard/local/enabled/_50_murano.py }