欢迎您访问程序员文章站本站旨在为大家提供分享程序员计算机编程知识!
您现在的位置是: 首页  >  科技

openstack高可用(pike版本)之horizon

程序员文章站 2022-06-27 22:49:02
安装rpm包 # yum -y install openstack-dashboard 修改配置文件 /etc/openstack-dashboard/local_settings...

安装rpm包

# yum  -y install openstack-dashboard

修改配置文件 /etc/openstack-dashboard/local_settings

ALLOWED_HOSTS = ['*', 'localhost']
OPENSTACK_API_VERSIONS = {
#    "data-processing": 1.1,
    "identity": 3,
    "volume": 2,
    "compute": 2,
}


OPENSTACK_KEYSTONE_MULTIDOMAIN_SUPPORT = True
OPENSTACK_KEYSTONE_DEFAULT_DOMAIN = 'Default'
CACHES = {
    'default': {
        'BACKEND': 'django.core.cache.backends.memcached.MemcachedCache',
        'LOCATION': '172.16.100.60:11211',
    },
}

OPENSTACK_HOST = "172.16.100.50"
OPENSTACK_KEYSTONE_URL = "https://%s:5000/v3" % OPENSTACK_HOST
OPENSTACK_KEYSTONE_DEFAULT_ROLE = "user"

重启服务

# systemctl restart httpd memcached

登录web

https://172.16.8.50/dashboard

admin/Changeme_123

demo/Changeme_123