1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49
| #安装软件包 yum install openstack-dashboard -y
#修改配置文件 /etc/openstack-dashboard/local_settings vi /etc/openstack-dashboard/local_settings
OPENSTACK_HOST = "controller" #参数指定了OpenStack服务所在主机的名称或IP地址 ALLOWED_HOSTS = ['*'] #参数指定了OpenStack服务所在主机的名称或IP地址,这里表示允许所有 SESSION_ENGINE = 'django.contrib.sessions.backends.cache' CACHES = { 'default': { 'BACKEND': 'django.core.cache.backends.memcached.MemcachedCache', # 'LOCATION': 'controller:11211', } #指定了使用缓存来存储用户会话信息的方式,这里使用的是Memcached } OPENSTACK_KEYSTONE_URL = "http://%s:5000/v3" % OPENSTACK_HOST #参数指定了Keystone认证服务的访问地址 OPENSTACK_KEYSTONE_MULTIDOMAIN_SUPPORT = True #新增,表示支持多域模式 OPENSTACK_API_VERSIONS = { "identity": 3, "image": 2, "volume": 2, } #新增,指定api版本信息 OPENSTACK_KEYSTONE_DEFAULT_DOMAIN = 'Default' #新增,参数指定了默认域名 OPENSTACK_KEYSTONE_DEFAULT_ROLE = 'user' #新增 ,参数指定了默认角色,这里为user OPENSTACK_NEUTRON_NETWORK = { 'enable_auto_allocated_network': False, 'enable_distributed_router': False, 'enable_fip_topology_check': True, 'enable_ha_router': False, 'enable_lb': False, 'enable_firewall': False, 'enable_vpn': False, 'enable_ipv6': True, 'enable_fip_topology_check': False, # TODO(amotoki): Drop OPENSTACK_NEUTRON_NETWORK completely from here. # enable_quotas has the different default value here. 'enable_quotas': False, 'enable_rbac_policy': True, 'enable_router': False, 'default_dns_nameservers': [], 'supported_provider_types': ['*'], 'segmentation_id_range': {}, 'extra_provider_types': {}, 'supported_vnic_types': ['*'], 'physical_networks': [],
} TIME_ZONE = "Asia/Shanghai" #新增,参数用于指定时区,这里设置为"Asia/Shanghai",以符合中国标准时间 WEBROOT = '/dashboard' #新增,用于指定OpenStack仪表盘的访问路径,这里设置为/dashboard
|