本帖最后由 pig2 于 2015-8-10 11:42 编辑
问题导读
1.什么时候可以安装配置dasboard?
2.如何配置dasboard?
3.如何让配置生效?
安装配置dashboard 组件
安装
[mw_shl_code=bash,true]apt-get install openstack-dashboard -y[/mw_shl_code]
配置dashboard
编辑文件/etc/openstack-dashboard/local_settings.py,完成下面内容
a.在控制节点,配置dashboard 使用OpenStack服务
[mw_shl_code=bash,true]OPENSTACK_HOST = "controller"[/mw_shl_code]
b.允许访问dasboard
[mw_shl_code=bash,true]ALLOWED_HOSTS = '*'[/mw_shl_code]
c.配置缓存会话存储服务:
[mw_shl_code=bash,true]CACHES = {
'default': {
'BACKEND': 'django.core.cache.backends.memcached.MemcachedCache',
'LOCATION': '127.0.0.1:11211',
}
}[/mw_shl_code]
注意:注释掉其它r session存储服务
d.为user配置user 默认角色
[mw_shl_code=bash,true]OPENSTACK_KEYSTONE_DEFAULT_ROLE = "user"[/mw_shl_code]
e.配置时区
[mw_shl_code=bash,true]TIME_ZONE = "UTC"[/mw_shl_code]
完成安装,重新加载配置
[mw_shl_code=bash,true]service apache2 reload[/mw_shl_code]
输入网址:
[mw_shl_code=bash,true]http://controller/horizon[/mw_shl_code]
|