溫馨提示×

溫馨提示×

您好,登錄后才能下訂單哦!

密碼登錄×
登錄注冊×
其他方式登錄
點擊 登錄注冊 即表示同意《億速云用戶服務條款》

OpenStack Murano Dashboard如何安裝

發(fā)布時間:2021-11-15 09:58:09 來源:億速云 閱讀:254 作者:小新 欄目:云計算

這篇文章給大家分享的是有關OpenStack Murano Dashboard如何安裝的內(nèi)容。小編覺得挺實用的,因此分享給大家做個參考,一起跟隨小編過來看看吧。

##前提

  • murano服務已經(jīng)安裝好

  • openstack dashboard已經(jīng)安裝

  • 系統(tǒng): ubuntu14.04

##安裝

  1. 下載Dashboard

    	$ cd ~/murano
    	$ git clone git://git.openstack.org/openstack/murano-dashboard


  2. 切換到stable/kilo分支

    	cd murano-dashboard
    	git checkout -t origin/stable/kilo


  3. 安裝依賴

    	pip install -r requirements.txt


  4. 安裝Murano Dashboard到系統(tǒng)中

    	python setup.py install


  5. 在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'
    	#]


  6. 鏈接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


  7. local_setttings.py添加下面內(nèi)容

    	# vim /etc/openstack-dashboard/local_settings.py
    
    	MURANO_API_URL = 'http://localhost:8082'


  8. 重啟OpenStack Dashboard

感謝各位的閱讀!關于“OpenStack Murano Dashboard如何安裝”這篇文章就分享到這里了,希望以上內(nèi)容可以對大家有一定的幫助,讓大家可以學到更多知識,如果覺得文章不錯,可以把它分享出去讓更多的人看到吧!

向AI問一下細節(jié)

免責聲明:本站發(fā)布的內(nèi)容(圖片、視頻和文字)以原創(chuàng)、轉(zhuǎn)載和分享為主,文章觀點不代表本網(wǎng)站立場,如果涉及侵權請聯(lián)系站長郵箱:is@yisu.com進行舉報,并提供相關證據(jù),一經(jīng)查實,將立刻刪除涉嫌侵權內(nèi)容。

AI