[controller1]yum install openstack-dashboard -y
[controller1]vim /etc/openstack-dashboard/local_settings #找到对应
OPENSTACK_HOST = "192.168.41.111"
OPENSTACK_KEYSTONE_URL = "http://%s:5000/v3" % OPENSTACK_HOST #启用Identity API版本3
ALLOWED_HOSTS = ['*']
#在caches下面配置memcached会话存储服务
SESSION_ENGINE = 'django.contrib.sessions.backends.cache'
CACHES = {
'default': {
'BACKEND': 'django.core.cache.backends.memcached.MemcachedCache',
'LOCATION': 'openstack-vip.magedu.net:11211',
}
}
OPENSTACK_KEYSTONE_MULTIDOMAIN_SUPPORT=True #启动对域的支持
#配置Api版本
OPENSTACK_API_VERSIONS = {
"identity": 3,
"image": 2,
"volume": 3,
}
OPENSTACK_KEYSTONE_DEFAULT_DOMAIN = "Default"
OPENSTACK_KEYSTONE_DEFAULT_ROLE = "user"
#如果选择网络选项1,请禁用对第3层网络服务的支持:
OPENSTACK_NEUTRON_NETWORK = {
'enable_router': False,
'enable_quotas': False,
'enable_ipv6': False,
'enable_distributed_router': False,
'enable_ha_router': False,
'enable_fip_topology_check': False,
TIME_ZONE = "Asia/Shanghai"
[controller1] vim /etc/httpd/conf.d/openstack-dashboard.conf
WSGIApplicationGroup %{GLOBAL} #加上
[controller1] systemctl restart httpd.service memcached.service
openstack-vip.magedu.net/dashboard 登录账号密码admin admin
恭喜你安装成功!!!