问题导读
1.如何配置dashboard权限?
2.如何重新加载配置?
3.如何验证是否成功?
安装dashboard组件
[mw_shl_code=bash,true]apt-get install openstack-dashboard[/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.配置dashboard访问
[mw_shl_code=bash,true]ALLOWED_HOSTS = '*'[/mw_shl_code]
c.配置memcached session存储服务
[mw_shl_code=bash,true]CACHES = {
'default': {
'BACKEND': 'django.core.cache.backends.memcached.MemcachedCache',
'LOCATION': '127.0.0.1:11211',
}
}[/mw_shl_code]
d.配置user作为默认角色
[mw_shl_code=bash,true]OPENSTACK_KEYSTONE_DEFAULT_ROLE = "user"[/mw_shl_code]
e.配置time zone:
[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]
或则
[mw_shl_code=bash,true]http://10.0.0.11/horizon[/mw_shl_code]
|
|