第十五章 horizon组件安装
1、在控制节点上安装horizon组件
apt -y install openstack-dashboard
cp /etc/openstack-dashboard/local_settings.py /etc/openstack-dashboard/local_settings.py.bak # 备份官方
# 配置文件
vi /etc/openstack-dashboard/local_settings.py
# 修改如下
# line 40 uncomment and add own hostname
ALLOWED_HOSTS = ['controller1', 'localhost' ]
# line 66: uncomment and change like follows
OPENSTACK_API_VERSIONS = {
# "data-processing": 1.1,
"identity": 3,
"image": 2,
"volume": 3,
"compute": 2,
}
# line 77: uncomment and change
OPENSTACK_KEYSTONE_MULTIDOMAIN_SUPPORT = True
# line 99: uncomment
OPENSTACK_KEYSTONE_DEFAULT_DOMAIN = 'Default'
# line 170: change to your own Memcache server
CACHES = {
'default': {
'BACKEND': 'django.core.cache.backends.memcached.MemcachedCache',
'LOCATION': '192.168.222.29:11211',
},
}
# line203: change to your own Host
OPENSTACK_HOST = "192.168.222.29"
OPENSTACK_KEYSTONE_URL = "http://%s:5000/v3" % OPENSTACK_HOST
OPENSTACK_KEYSTONE_DEFAULT_ROLE = "member"
systemctl restart apache2 memcached
2、登入web页面
http://192.168.222.29/horizon/
# default,admin,adminpassword to login