aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorcaoyuan <cao.yuan@99cloud.net>2016-12-04 22:58:18 +0800
committercaoyuan <cao.yuan@99cloud.net>2016-12-06 23:21:15 +0800
commit0d487152af77e648c4e74ef029e52a199a02446b (patch)
tree4d29dbc7e8de68a86b72a435ff385df90dc252d6
parent2e266efaaae3884bc8501245e25f11566103c0ca (diff)
downloadkolla-0d487152af77e648c4e74ef029e52a199a02446b.tar.gz
kolla-0d487152af77e648c4e74ef029e52a199a02446b.zip
Install watcher dashboard into horizon image
Change-Id: Ief5898f6bf1caa3a7fe6b2a96be2bdb79e402f28 Closes-Bug: #1647162
-rw-r--r--docker/horizon/Dockerfile.j21
-rw-r--r--docker/horizon/extend_start.sh13
-rw-r--r--kolla/common/config.py4
3 files changed, 17 insertions, 1 deletions
diff --git a/docker/horizon/Dockerfile.j2 b/docker/horizon/Dockerfile.j2
index 8baf048d1..b92bbab2f 100644
--- a/docker/horizon/Dockerfile.j2
+++ b/docker/horizon/Dockerfile.j2
@@ -19,7 +19,6 @@ MAINTAINER {{ maintainer }}
'openstack-sahara-ui',
'openstack-trove-ui',
'openstack-zaqar-ui'
-
] %}
{{ macros.install_packages(horizon_packages | customizable("packages")) }}
diff --git a/docker/horizon/extend_start.sh b/docker/horizon/extend_start.sh
index 050eb289a..3e3ea898e 100644
--- a/docker/horizon/extend_start.sh
+++ b/docker/horizon/extend_start.sh
@@ -125,6 +125,18 @@ function config_searchlight_ui {
"${SITE_PACKAGES}/openstack_dashboard/conf/searchlight_policy.json"
}
+function config_watcher_dashboard {
+ for file in ${SITE_PACKAGES}/watcher_dashboard/enabled/_*[^__].py; do
+ config_dashboard "${ENABLE_WATCHER}" \
+ "${SITE_PACKAGES}/watcher_dashboard/enabled/${file##*/}" \
+ "${SITE_PACKAGES}/openstack_dashboard/local/enabled/${file##*/}"
+ done
+
+ config_dashboard "${ENABLE_WATCHER}" \
+ "${SITE_PACKAGES}/watcher_dashboard/conf/watcher_policy.json" \
+ "${SITE_PACKAGES}/openstack_dashboard/conf/watcher_policy.json"
+}
+
function config_zaqar_dashboard {
for file in ${SITE_PACKAGES}/zaqar_dashboard/enabled/_*[^__].py; do
config_dashboard "${ENABLE_ZAQAR}" \
@@ -143,6 +155,7 @@ config_sahara_dashboard
config_searchlight_ui
config_senlin_dashboard
config_trove_dashboard
+config_watcher_dashboard
config_zaqar_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 934cf1b4e..35f9899ad 100644
--- a/kolla/common/config.py
+++ b/kolla/common/config.py
@@ -242,6 +242,10 @@ SOURCES = {
'type': 'url',
'location': ('http://tarballs.openstack.org/trove-dashboard/'
'trove-dashboard-master.tar.gz')},
+ 'horizon-plugin-watcher-dashboard': {
+ 'type': 'url',
+ 'location': ('http://tarballs.openstack.org/watcher-dashboard/'
+ 'watcher-dashboard-master.tar.gz')},
'horizon-plugin-zaqar-ui': {
'type': 'url',
'location': ('http://tarballs.openstack.org/zaqar-ui/'