Skip to main content

OpenStack Identity Multi-Regions Switch

Project description

宝德云多区域切换库 (http://console.plcloud.com)

依赖

  1. django_openstack_auth >= 1.1.4

配置方法

  1. 修改openstack_dashboard/urls.py文件, 替换auth url

- url(r'^auth/', include('openstack_auth.urls'))
+ url(r'^auth/', include('openstack_auth.multi_regions.urls'))
  1. 修改openstack_dashboard/settings.py文件, 添加multi_regions app

INSTALLED_APPS = (
    '''
    'openstack_auth.multi_regions',
    '''
)
  1. 配置local_settings.py, 添加MULTI_REGIONS

from openstack_auth.multi_regions import i18n as mt_i18n
'''
MULTI_REGIONS = [
    ('http://10.0.0.1:5000/v2.0', 'beijing', 'BeiJing-1(PEK-1)'),
    ('http://172.16.0.1:5000/v2.0', 'shenzhen', 'ShenZhen-1(SZX-1)'),
    ('http://192.168.100.1:5000/v2.0', 'lab-test', 'Lab-Test-1(Lab-1)'),
]
MULTI_REGIONS = mt_i18n(MULTI_REGIONS)
OPENSTACK_KEYSTONE_URL = MULTI_REGIONS[0][0]

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

File details

Details for the file django_openstack_auth.multi_regions-1.2.0.tar.gz.

File metadata

File hashes

Hashes for django_openstack_auth.multi_regions-1.2.0.tar.gz
Algorithm Hash digest
SHA256 05297d12ecc9480222899548ba3fd5b338e981d9d3d8d2ba09c72c93c17ab84b
MD5 5cd56f6d44c96fafc0253a302a099c22
BLAKE2b-256 104fdc5641265caee02a62df1ad900a37fd6b7c87f25c7b26bb7541f245d0aaa

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page