Openstack Queens 环境搭建(七)Horizon服务

35次阅读

共计 764 个字符,预计需要花费 2 分钟才能阅读完成。

Controller 节点:1、安装及配置:
# yum install openstack-dashboard

# vi /etc/openstack-dashboard/local_settings
OPENSTACK_HOST = “controller”
ALLOWED_HOSTS = [‘*’]
SESSION_ENGINE = ‘django.contrib.sessions.backends.cache’
CACHES = {
‘default’: {
‘BACKEND’: ‘django.core.cache.backends.memcached.MemcachedCache’,
‘LOCATION’: ‘controller:11211’,
}
}
OPENSTACK_KEYSTONE_URL = “http://%s:5000/v3” % OPENSTACK_HOST
OPENSTACK_KEYSTONE_MULTIDOMAIN_SUPPORT = True
OPENSTACK_API_VERSIONS = {
“identity”: 3,
“image”: 2,
“volume”: 2,
}
OPENSTACK_KEYSTONE_DEFAULT_DOMAIN = “Default”
OPENSTACK_KEYSTONE_DEFAULT_ROLE = “user”
TIME_ZONE = “Asia/Shanghai”

# vi /etc/httpd/conf.d/openstack-dashboard.conf 在文件开头添加
WSGIApplicationGroup %{GLOBAL}

2、完成安装:
# systemctl restart httpd.service memcached.service
使用 http://controller/dashboard 上的 Web 浏览器访问 Dashboard。

正文完
 0