Separate Murano Dashboard config
Currently Murano Dashboard keeps all configuration values in file local_settings.py. It's a bit awkward, especially when it's required to update some of the variables automatically.
In order to simplify installation and automated configuration for Murano Dashboard it is proposed to separate values from local_settings.py.
The idea is the following: create separate python file with single class, called, say MuranoDashboard
For example:
* murano_
-------
import os
class MuranoDashboard
def __init__(self, config_file):
# Set default values
# Try to parse external config file
def _parse_
# Try to open and parse config_file file.
pass
def session_
return self.session_engine
def murano_
return "{0}://
def alter_databases
if self.backend_
# Alter d['default']
return
# Use sqlite3 by default
'NAME' = os.path.
}
def horizon_
def installed_
return t + ('muranodashboard', 'floppyforms',)
def middleware_
return t + ('muranodashboa
-------
* local_settings.py
-------
import murano_
mdc = MuranoDashboard
MURANO_API_URL = mdc.murano_
SESSION_ENGINE = mdc.session_
HORIZON_CONFIG = mdc.horizon_
INSTALLED_APPS = mdc.installed_
MIDDLEWARE_CLASSES = mdc.middleware_
mdc.alter_
-------
* /etc/murano/
-------
[DEFAULT]
murano_api_proto = http
murano_api_host = 127.0.0.1
murano_api_port = 8082
backend_db_type = 'sqlite3'
-------
Blueprint information
- Status:
- Complete
- Approver:
- None
- Priority:
- Low
- Drafter:
- Dmitry Teselkin
- Direction:
- Approved
- Assignee:
- Ekaterina Chernova
- Definition:
- Pending Approval
- Series goal:
- Accepted for juno
- Implementation:
- Implemented
- Milestone target:
- None
- Started by
- ruhe
- Completed by
- ruhe
Related branches
Related bugs
Sprints
Whiteboard
Gerrit topic: https:/
Addressed by: https:/
Introduces script for updating horizon config