当前位置: 首页 > 工具软件 > Horizon > 使用案例 >

Horizon部署

景麒
2023-12-01

Horizon部署比较简单,不需要借助数据库,只需在控制节点上安装配置dashboard即可

安装horizon服务包
	yum -y install openstack-dashboard
修改配置文件
	vim /etc/openstack-dashboard/local_settings
	我列出需要修改的项
	OPENSTACK_HOST = "controller1"
	ALLOWED_HOSTS = ['horizon.example.com', 'localhost', '*']
	SESSION_ENGINE = 'django.contrib.sessions.backends.cache'
	CACHES = {
	    'default': {
	        'BACKEND': 'django.core.cache.backends.memcached.MemcachedCache',
	        'LOCATION': 'controller1: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'
重启httpd和memcached服务
	systemctl restart httpd memcached
 类似资料: