From 2614dd697c16497cc3aa04e8052fd06b618c40a6 Mon Sep 17 00:00:00 2001 From: liyingjun Date: Fri, 2 Dec 2016 14:56:47 +0800 Subject: Install searchlight-ui to horizon Change-Id: Ie65c374dd319e38fe50fc3dca15c64d07edc8e1a Closes-bug: #1646690 --- docker/horizon/extend_start.sh | 17 +++++++++++++++++ kolla/common/config.py | 4 ++++ 2 files changed, 21 insertions(+) diff --git a/docker/horizon/extend_start.sh b/docker/horizon/extend_start.sh index 9bebdf94c..6e1f82b1b 100644 --- a/docker/horizon/extend_start.sh +++ b/docker/horizon/extend_start.sh @@ -81,11 +81,28 @@ function config_trove_dashboard { done } +function config_searchlight_ui { + for file in ${SITE_PACKAGES}/searchlight_ui/enabled/_*[^__].py; do + config_dashboard "${ENABLE_SEARCHLIGHT}" \ + "${SITE_PACKAGES}/searchlight_ui/enabled/${file##*/}" \ + "${SITE_PACKAGES}/openstack_dashboard/local/enabled/${file##*/}" + done + + config_dashboard "${ENABLE_SEARCHLIGHT}" \ + "${SITE_PACKAGES}searchlight_ui/local_settings.d/_1001_search_settings.py" \ + "${SITE_PACKAGES}/openstack_dashboard/local/local_settings.d/_1001_search_settings.py" + + config_dashboard "${ENABLE_SEARCHLIGHT}" \ + "${SITE_PACKAGES}searchlight_ui/conf/searchlight_policy.json" \ + "${SITE_PACKAGES}/openstack_dashboard/conf/searchlight_policy.json" +} + config_cloudkitty_dashboard config_ironic_dashboard config_manila_ui config_neutron_lbaas config_sahara_dashboard +config_searchlight_ui config_trove_dashboard # NOTE(pbourke): httpd will not clean up after itself in some cases which diff --git a/kolla/common/config.py b/kolla/common/config.py index 487e24a17..aa663c48b 100644 --- a/kolla/common/config.py +++ b/kolla/common/config.py @@ -222,6 +222,10 @@ SOURCES = { 'type': 'url', 'location': ('http://tarballs.openstack.org/sahara-dashboard/' 'sahara-dashboard-master.tar.gz')}, + 'horizon-plugin-searchlight-ui': { + 'type': 'url', + 'location': ('http://tarballs.openstack.org/searchlight-ui/' + 'searchlight-ui-master.tar.gz')}, 'horizon-plugin-trove-dashboard': { 'type': 'url', 'location': ('http://tarballs.openstack.org/trove-dashboard/' -- cgit v1.2.3