Wednesday, April 4, 2018

07-openstack-dashboard-configuration

apt-get install apache2 memcached libapache2-mod-wsgi openstack-dashboard

apt-get install openstack-dashboard-apache


/etc/openstack-dashboard/local_settings.py


OPENSTACK_HOST = "controller"


ALLOWED_HOSTS = ['one.example.com', 'two.example.com']
or ['*']


SESSION_ENGINE = 'django.contrib.sessions.backends.cache'
CACHES = {
'default': {
'BACKEND': 'django.core.cache.backends.memcached.MemcachedCache',
'LOCATION': 'controller: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"


OPENSTACK_KEYSTONE_DEFAULT_ROLE = "user"


OPENSTACK_NEUTRON_NETWORK = {
...
'enable_router': False,
'enable_quotas': False,
'enable_ipv6': False,
'enable_distributed_router': False,
'enable_ha_router': False,
'enable_lb': False,
'enable_firewall': False,
'enable_vpn': False,
'enable_fip_topology_check': False,
}


TIME_ZONE = "TIME_ZONE"


# service apache2 reload


http://controller/horizon .
Openstack.conf


<VirtualHost *:80>


   ServerName www.example.com
   ServerAlias controller
   ServerAdmin webmaster@example.com


   DocumentRoot /usr/share/openstack-dashboard/openstack_dashboard/


   <Directory /usr/share/openstack-dashboard/openstack_dashboard/>
   Order allow,deny
   Allow from all
       Options All
       AllowOverride All
       Require all granted


</Directory>


   WSGIScriptAlias / /usr/share/openstack-dashboard/openstack_dashboard/wsgi/django.wsgi


<Directory /usr/share/openstack-dashboard/openstack_dashboard/wsgi/>
   Order allow,deny
   Allow from all
   </Directory>   


</VirtualHost>

No comments:

Post a Comment