OpenStack kilo版(7) 部署dashboard

安装dashboard

root@controller:~# apt-get install openstack-dashboard 

配置

/etc/openstack-dashboard/local_settings.py

#配置dashboard使用控制节点上的OpenStack服务
OPENSTACK_HOST = "controller"
OPENSTACK_KEYSTONE_URL = "http://%s:5000/v3" % OPENSTACK_HOST
#允许任何主机访问dashboard
ALLOWED_HOSTS = ['*']
#配置memcached会话存储服务,注意把其他的会话存储服务都注释掉
CACHES = {
    'default': {
    'BACKEND': 'django.core.cache.backends.memcached.MemcachedCache',
    'LOCATION': '127.0.0.1:11211',
    }
}
#配置在DashBoard中创建的用户默认所使用的角色,建议使用user角色
OPENSTACK_KEYSTONE_DEFAULT_ROLE = "user"

重启nvcproxy

root@controller:~# /etc/init.d/nova-novncproxy restart

配置apache:/etc/apache2/sites-enabled/000-default.conf

<VirtualHost *:80>
        ServerName openstack.xxxx.com
        ServerAdmin webmaster@localhost
        DocumentRoot /var/www/html
        SetEnvIf User-Agent ".*MSIE.*" nokeepalive ssl-unclean-shutdown
        ErrorLog ${APACHE_LOG_DIR}/error.log
        CustomLog ${APACHE_LOG_DIR}/access.log combined
</VirtualHost>

root@controller:~# > /var/www/html/index.htm

root@controller:~# service apache2 restart
 * Restarting web server apache2                                                                                                     [ OK ] 
posted @ 2019-08-27 10:15  wshenJin  阅读(160)  评论(0编辑  收藏  举报