1. Configure Dashboard
Apt Install Openstack-dashboard
vim/etc/openstack-dashboard/local_settings.py
----------------------------------------------------------------------------------------------------------- --------------
#-*-Coding:utf-8-*-
Import OS
From django.utils.translation import Ugettext_lazy as _
From horizon.utils import Secret_key
From openstack_dashboard.settings import Horizon_config
DEBUG = False
WEBROOT = '/'
Openstack_keystone_multidomain_support = True
Openstack_api_versions = {
"Identity": 3,
"Image": 2,
"Volume": 2,
}
Openstack_keystone_default_domain = ' DEFAULT '
Local_path = Os.path.dirname (Os.path.abspath (__file__))
Secret_key = Secret_key.generate_or_read_from_file ('/var/lib/openstack-dashboard/secret_key ')
CACHES = {
' Default ': {
' Backend ': ' Django.core.cache.backends.memcached.MemcachedCache ',
' Location ': ' controller_ip:11211 ',
},
}
Email_backend = ' Django.core.mail.backends.console.EmailBackend '
Openstack_host = "Controller_ip"
Openstack_keystone_url = "http://%s:5000/v2.0"% openstack_host
Openstack_keystone_default_role = "User"
Openstack_keystone_backend = {
' Name ': ' Native ',
' Can_edit_user ': True,
' Can_edit_group ': True,
' Can_edit_project ': True,
' Can_edit_domain ': True,
' Can_edit_role ': True,
}
Openstack_hypervisor_features = {
' Can_set_mount_point ': False,
' Can_set_password ': False,
' Requires_keypair ': False,
' Enable_quotas ': True
}
Openstack_cinder_features = {
' Enable_backup ': False,
}
Openstack_neutron_network = {
' Enable_router ': True,
' Enable_quotas ': True,
' Enable_ipv6 ': True,
' Enable_distributed_router ': False,
' Enable_ha_router ': False,
' Enable_fip_topology_check ': True,
' Physical_networks ': [],
}
Openstack_heat_stack = {
' Enable_user_pass ': True,
}
Image_custom_property_titles = {
"Architecture": _ ("Architecture"),
"Kernel_id": _ ("Kernel id"),
"Ramdisk_id": _ ("RAMDisk id"),
"Image_state": _ ("Euca2ools state"),
"Project_id": _ ("Project ID"),
"Image_type": _ ("Image Type"),
}
Image_reserved_custom_properties = []
Api_result_limit = 1000
Api_result_page_size = 20
Swift_file_transfer_chunk_size = 512 * 1024
Instance_log_length = 35
Dropdown_max_items = 30
Time_zone = "Asia/shanghai"
Rest_api_required_settings = [' Openstack_hypervisor_features ',
' Launch_instance_defaults ',
' Openstack_image_formats ',
' Openstack_keystone_default_domain ',
' Create_image_defaults ']
Default_theme = ' Ubuntu '
webroot= '/horizon/'
allowed_hosts = ' * '
Session_engine = ' Django.contrib.sessions.backends.Cache'
Compress_offline = True
Allowed_private_subnet_cidr = {' IPv4 ': [], ' IPv6 ': []}
--------------------------------------------------------------------------------------------------------------- ----------
Cat/etc/openstack-dashboard/local_settings.py|grep-v "#" |grep-v ^$
Service Apache2 Reload