Background: I use private.py a lot in my devstack for my private configurations. But issues are raised when I need to change/override a setting that is defined in devstack_docker.py file. Since that file's contents are loaded after private.py, my private.py is useless against the settings in devstack_docker.py. Description: Now that the devstack is dockerized, I think it makes more sense to import the private.py in the devstack_docker.py files i.e. at the end of configuration files hierarchy.
34 lines
1.0 KiB
Python
34 lines
1.0 KiB
Python
""" Overrides for Docker-based devstack. """
|
|
|
|
from .devstack import * # pylint: disable=wildcard-import, unused-wildcard-import
|
|
|
|
# Docker does not support the syslog socket at /dev/log. Rely on the console.
|
|
LOGGING['handlers']['local'] = LOGGING['handlers']['tracking'] = {
|
|
'class': 'logging.NullHandler',
|
|
}
|
|
|
|
LOGGING['loggers']['tracking']['handlers'] = ['console']
|
|
|
|
LMS_BASE = 'localhost:18000'
|
|
CMS_BASE = 'localhost:18010'
|
|
LMS_ROOT_URL = 'http://{}'.format(LMS_BASE)
|
|
|
|
FEATURES.update({
|
|
'ENABLE_COURSEWARE_INDEX': False,
|
|
'ENABLE_LIBRARY_INDEX': False,
|
|
'ENABLE_DISCUSSION_SERVICE': True,
|
|
})
|
|
|
|
CREDENTIALS_SERVICE_USERNAME = 'credentials_worker'
|
|
|
|
JWT_AUTH.update({
|
|
'JWT_ISSUER': '{}/oauth2'.format(LMS_ROOT_URL),
|
|
'JWT_SECRET_KEY': 'lms-secret',
|
|
'JWT_AUDIENCE': 'lms-key',
|
|
})
|
|
|
|
###############################################################################
|
|
# See if the developer has any local overrides.
|
|
if os.path.isfile(join(dirname(abspath(__file__)), 'private.py')):
|
|
from .private import * # pylint: disable=import-error,wildcard-import
|