Browse Source

Install senlin dashboard into horizon image

Change-Id: I27ac67f42ad04ac5cf6d18b6f56506949aa4887c
Closes-Bug: #1646023
tags/4.0.0.0b2
jianyi 2 years ago
parent
commit
05ba070f86
2 changed files with 17 additions and 0 deletions
  1. 13
    0
      docker/horizon/extend_start.sh
  2. 4
    0
      kolla/common/config.py

+ 13
- 0
docker/horizon/extend_start.sh View File

@@ -73,6 +73,18 @@ function config_sahara_dashboard {
73 73
     done
74 74
 }
75 75
 
76
+function config_senlin_dashboard {
77
+    for file in ${SITE_PACKAGES}/senlin_dashboard/enabled/_*[^__].py; do
78
+        config_dashboard "${ENABLE_SENLIN}" \
79
+            "${SITE_PACKAGES}/senlin_dashboard/enabled/${file##*/}" \
80
+            "${SITE_PACKAGES}/openstack_dashboard/local/enabled/${file##*/}"
81
+    done
82
+
83
+    config_dashboard "${ENABLE_SENLIN}" \
84
+        "${SITE_PACKAGES}/senlin_dashboard/conf/senlin_policy.json" \
85
+        "${SITE_PACKAGES}/openstack_dashboard/conf/senlin_policy.json"
86
+}
87
+
76 88
 function config_trove_dashboard {
77 89
     for file in ${SITE_PACKAGES}/trove_dashboard/enabled/_*[^__].py; do
78 90
         config_dashboard "${ENABLE_TROVE}" \
@@ -103,6 +115,7 @@ config_manila_ui
103 115
 config_neutron_lbaas
104 116
 config_sahara_dashboard
105 117
 config_searchlight_ui
118
+config_senlin_dashboard
106 119
 config_trove_dashboard
107 120
 
108 121
 # NOTE(pbourke): httpd will not clean up after itself in some cases which

+ 4
- 0
kolla/common/config.py View File

@@ -226,6 +226,10 @@ SOURCES = {
226 226
         'type': 'url',
227 227
         'location': ('http://tarballs.openstack.org/searchlight-ui/'
228 228
                      'searchlight-ui-master.tar.gz')},
229
+    'horizon-plugin-senlin-dashboard': {
230
+        'type': 'url',
231
+        'location': ('http://tarballs.openstack.org/senlin-dashboard/'
232
+                     'senlin-dashboard-master.tar.gz')},
229 233
     'horizon-plugin-trove-dashboard': {
230 234
         'type': 'url',
231 235
         'location': ('http://tarballs.openstack.org/trove-dashboard/'

Loading…
Cancel
Save