Introduce DEFAULT_SERVICE_REGIONS

It should be together with related change in django-openstack-auth, if
specified it will change the default service region calculation: it
will be taken from this setting (on a per-endpont basis) instead of a
value stored in cookies.  This value is still checked for sanity,
i.e. it should be present in Keystone service catalog.

Change-Id: I7e36f766870793f3e8fc391a06f0ee49deaa7add
Related-Bug: #1506825
Closes-Bug: #1703390
This commit is contained in:
Timur Sufiev 2015-10-12 10:07:47 -07:00 committed by Jiří Suchomel
parent 2756c2ecc9
commit d8f95c64d6
2 changed files with 12 additions and 0 deletions

View File

@ -186,6 +186,13 @@ OPENSTACK_HOST = "127.0.0.1"
OPENSTACK_KEYSTONE_URL = "http://%s:5000/v2.0" % OPENSTACK_HOST
OPENSTACK_KEYSTONE_DEFAULT_ROLE = "_member_"
# For setting the default service region on a per-endpoint basis. Note that the
# default value for this setting is {}, and below is just an example of how it
# should be specified.
#DEFAULT_SERVICE_REGIONS = {
# OPENSTACK_KEYSTONE_URL: 'RegionOne'
#}
# Enables keystone web single-sign-on if set to True.
#WEBSSO_ENABLED = False

View File

@ -0,0 +1,5 @@
---
features:
- Added a new ``DEFAULT_SERVICE_REGIONS`` setting into local_settings.py.
If a value of this is specified, it will be the default region to use when
logging into the dashboard, instead of the value stored in cookies.