OpenStack安裝流程(juno版)- 添加dashboard(horizon)

OpenStack dashboard的組件是horizon,是一個讓雲管理員和用戶操做和管理OpenStack資源和服務的Web交互界面。python

安裝和配置

安裝dashboard組件

安裝所需包:
# apt-get install openstack-dashboard apache2 libapache2-mod-wsgi memcached python-memcacheweb

配置dashboard

編輯# vi /etc/openstack-dashboard/local_settings.py文件:apache

設置dashboard來使用controller節點上的OpenStack服務:
<pre>OPENSTACK_HOST = "controller"</pre>django

容許全部主機訪問dashboard:
<pre>ALLOWED_HOSTS = ['*']</pre>瀏覽器

設定memcached session storage服務:
<pre>CACHES = {session

'default': {
    'BACKEND': 'django.core.cache.backends.memcached.MemcachedCache',
    'LOCATION': '127.0.0.1:11211',
}

}</pre>
註釋掉其餘session storage的設定。memcached

設定時區:
<pre>TIME_ZONE = "TIME_ZONE"</pre>
將TIME_ZONE替換爲合適的時區。rest

完成安裝

重啓web服務和session storage服務:
# service apache2 restart
# service memcached restartcode

驗證操做

  1. 經過瀏覽器訪問dashboard:http://controller/horizon
  2. 使用admindemo身份登陸。
相關文章
相關標籤/搜索