这篇文章给大家分享的是有关OpenStack Murano Dashboard如何安装的内容。小编觉得挺实用的,因此分享给大家做个参考,一起跟随小编过来看看吧。
##前提
-
murano
服务已经安装好 -
openstack dashboard
已经安装 -
系统: ubuntu14.04
##安装
-
下载Dashboard
$ cd ~/murano $ git clone git://git.openstack.org/openstack/murano-dashboard
-
切换到
stable/kilo
分支cd murano-dashboard git checkout -t origin/stable/kilo
-
安装依赖
pip install -r requirements.txt
-
安装Murano Dashboard到系统中
python setup.py install
-
在Openstack Dashboard中启用Murano Dashboard
复制模板:
cp muranodashboard/local/_50_murano.py /usr/share/openstack-dashboard/openstack_dashboard/local/enabled/
注释掉
ADD_JS_FILES
那几行:# vim /usr/share/openstack-dashboard/openstack_dashboard/local/enabled/_50_murano.py from muranodashboard import exceptions # The name of the dashboard to be added to HORIZON['dashboards']. Required. DASHBOARD = 'murano' # If set to True, this dashboard will not be added to the settings. DISABLED = False ADD_INSTALLED_APPS = [ 'muranodashboard', ] ADD_EXCEPTIONS = { 'recoverable': exceptions.RECOVERABLE, 'not_found': exceptions.NOT_FOUND, 'unauthorized': exceptions.UNAUTHORIZED, } #ADD_JS_FILES = [ # 'muranodashboard/js/murano.service.js' #]
-
链接static目录
ps: 修改
/opt/murano/murano-dashboard/muranodashboard/static/muranodashboard/
为自己的路径ln -s /opt/murano/murano-dashboard/muranodashboard/static/muranodashboard/ /usr/share/openstack-dashboard/openstack_dashboard/static/muranodashboard
-
在
local_setttings.py
添加下面内容# vim /etc/openstack-dashboard/local_settings.py MURANO_API_URL = 'http://localhost:8082'
-
重启OpenStack Dashboard
感谢各位的阅读!关于“OpenStack Murano Dashboard如何安装”这篇文章就分享到这里了,希望以上内容可以对大家有一定的帮助,让大家可以学到更多知识,如果觉得文章不错,可以把它分享出去让更多的人看到吧!