Openstack 安裝部署指南翻譯系列 之 Horizon服務安裝(Dashboad)
1.1.1.1. Horizon服務安裝(Dashboad)
本節介紹如何在控制器節點上安裝和配置儀表板。
儀表板所需的唯一核心服務是身份服務。您可以使用儀表板與其他服務(如鏡像服務,計算和網絡)結合使用。您還可以在具有獨立服務(如對象存儲)的環境中使用儀表板。
註意:本節假定使用Apache HTTP服務器和Memcached服務正確安裝,配置和運行Identity服務。
1.1.1.1.1. 安裝和配置組件
# yum install openstack-dashboard
編輯 /etc/openstack-dashboard/local_settings 文件並完成以下操作:
配置儀表板以在controller節點上使用
OPENSTACK_HOST = "controller"
允許主機訪問儀表板:
ALLOWED_HOSTS = [‘one.example.com‘, ‘two.example.com‘]
註意:ALLOWED_HOSTS也可以[‘*‘]接受所有主機。這可能對開發工作有用,但可能不安全,不應在生產中使用。有關 詳細信息,請參閱 https://docs.djangoproject.com/en/dev/ref/settings/#allowed-hosts。
配置memcached會話存儲服務:
SESSION_ENGINE = ‘django.contrib.sessions.backends.cache‘
CACHES = {
‘default‘: {
‘BACKEND‘: ‘django.core.cache.backends.memcached.MemcachedCache‘,
‘LOCATION‘: ‘controller:11211‘,
}
}
註意:註釋任何其他會話存儲配置。
啟用Identity API版本3:
OPENSTACK_KEYSTONE_URL = "http://%s:5000/v3" % OPENSTACK_HOST
啟用對域的支持:
OPENSTACK_KEYSTONE_MULTIDOMAIN_SUPPORT = True
配置API版本:
OPENSTACK_API_VERSIONS = {
"identity": 3,
"image": 2,
"volume": 2,
}
配置Default為通過儀表板創建的用戶的默認域:
OPENSTACK_KEYSTONE_DEFAULT_DOMAIN = "Default"
配置user為通過儀表板創建的用戶的默認角色:
OPENSTACK_KEYSTONE_DEFAULT_ROLE = "user"
如果選擇網絡選項1,請禁用第3層網絡服務的支持:
OPENSTACK_NEUTRON_NETWORK = {
...
‘enable_router‘: False,
‘enable_quotas‘: False,
‘enable_distributed_router‘: False,
‘enable_ha_router‘: False,
‘enable_lb‘: False,
‘enable_firewall‘: False,
‘enable_vpn‘: False,
‘enable_fip_topology_check‘: False,
}
可選,配置時區:
TIME_ZONE = "TIME_ZONE"
用TIME_ZONE適當的時區標識符替換。有關詳細信息,請參閱時區列表。
1.1.1.1.2. 完成安裝
重新啟動Web服務器和會話存儲服務:
# systemctl restart httpd.service memcached.service
註意:該命令啟動每個服務,如果當前沒有運行。systemctl restart
1.1.1.1.3. Horizon插件
有許多有用的功能的Horizon插件。您可以通過安裝相應的Horizon插件來獲取儀表板支持。
1.1.1.1.3.1. 插件註冊表
註意:目前,Horizon插件對自己的兼容性負責。
Plugin | URL | Launchpad |
Astara Dashboard | https://github.com/openstack/astara-horizon | https://launchpad.net/astara |
App Catalog UI | https://github.com/openstack/app-catalog-ui | https://launchpad.net/app-catalog |
BGPVPN Dashboard | https://github.com/openstack/networking-bgpvpn | https://launchpad.net/bgpvpn |
Blazar Dashboard | https://github.com/openstack/blazar-dashboard | https://launchpad.net/blazar |
Cerberus Dashboard | https://github.com/openstack/cerberus-dashboard | https://launchpad.net/cerberus |
Cisco UI | http://github.com/openstack/horizon-cisco-ui | https://launchpad.net/horizon-cisco-ui |
Cloudkitty Dashboard | https://github.com/openstack/cloudkitty-dashboard | https://launchpad.net/cloudkitty |
Congress Dashboard | https://github.com/openstack/congress-dashboard | https://launchpad.net/congress |
Cue Dashboard | https://github.com/openstack/cue-dashboard | https://launchpad.net/cue-dashboard |
Designate Dashboard | https://github.com/openstack/designate-dashboard | https://launchpad.net/designate-dashboard |
Group Based Policy UI | https://github.com/openstack/group-based-policy-ui | https://launchpad.net/group-based-policy-ui |
Freezer Web UI | https://github.com/openstack/freezer-web-ui | https://launchpad.net/freezer |
Ironic UI | https://github.com/openstack/ironic-ui | https://launchpad.net/ironic-ui |
Karbor Dashboard | https://github.com/openstack/karbor-dashboard | https://launchpad.net/karbor-dashboard |
Magnum UI | http://github.com/openstack/magnum-ui | https://launchpad.net/magnum-ui |
Manila UI | http://github.com/openstack/manila-ui | https://launchpad.net/manila-ui |
Mistral Dashboard | https://github.com/openstack/mistral-dashboard | https://launchpad.net/mistral |
Monasca UI | https://github.com/openstack/monasca-ui | https://launchpad.net/monasca |
Murano Dashboard | http://github.com/openstack/murano-dashboard | http://launchpad.net/murano |
Neutron FWaaS Dashboard | https://github.com/openstack/neutron-fwaas-dashboard | https://launchpad.net/neutron-fwaas-dashboard |
Neutron LBaaS Dashboard | https://github.com/openstack/neutron-lbaas-dashboard | http://launchpad.net/octavia |
Neutron VPNaaS Dashboard | https://github.com/openstack/neutron-vpnaas-dashboard | https://launchpad.net/neutron-vpnaas-dashboard |
Octavia Dashboard | https://github.com/openstack/octavia-dashboard | https://launchpad.net/octavia |
Sahara Dashboard | https://github.com/openstack/sahara-dashboard | https://launchpad.net/sahara |
Searchlight UI | https://github.com/openstack/searchlight-ui | https://launchpad.net/searchlight |
Senlin Dashboard | https://github.com/openstack/senlin-dashboard | http://launchpad.net/senlin-dashboard |
Solum Dashboard | https://github.com/openstack/solum-dashboard | https://launchpad.net/solum |
Sticks Dashboard | https://github.com/openstack/sticks-dashboard | https://wiki.openstack.org/wiki/Sticks |
Tacker UI | https://github.com/openstack/tacker-horizon | https://launchpad.net/tacker |
TripleO UI | https://github.com/openstack/tripleo-ui/ | https://launchpad.net/tripleo |
Trove Dashboard | https://github.com/openstack/trove-dashboard | https://launchpad.net/trove-dashboard |
Vitrage Dashboard | http://github.com/openstack/vitrage-dashboard | https://launchpad.net/vitrage-dashboard |
Watcher Dashboard | http://github.com/openstack/watcher-dashboard | https://launchpad.net/watcher-dashboard |
Zaqar UI | http://github.com/openstack/zaqar-ui | https://launchpad.net/zaqar-ui |
Zun UI | https://github.com/openstack/zun-ui | https://launchpad.net/zun-ui |
本文出自 “yuweibing的技術博客” 博客,請務必保留此出處http://yuweibing.blog.51cto.com/3879355/1981182
Openstack 安裝部署指南翻譯系列 之 Horizon服務安裝(Dashboad)