
Cleanup Ranger logging logic and allow the following logging option: - logging to console only - logging to logfile only = logging to console AND logfile Also cleanup authentication logic as well. Change-Id: I8e422a1c9e44c4f58078d93d4f2a5a009df91ba1
37 lines
902 B
Python
37 lines
902 B
Python
"""config module."""
|
|
import orm.base_config as config
|
|
# Server Specific Configurations
|
|
server = {
|
|
'port': config.audit_server['port'],
|
|
'host': config.orm_host,
|
|
'name': 'audit'
|
|
}
|
|
|
|
# DB configurations
|
|
|
|
db_url = config.db_connect
|
|
|
|
database = {
|
|
'url': db_url.endswith('/orm') and db_url.replace("/orm", "/orm_audit") or (db_url + 'orm_audit'),
|
|
'echo_statements': False
|
|
}
|
|
|
|
# Pecan Application Configurations
|
|
app = {
|
|
'root': 'orm.services.audit_trail_manager.audit_server.controllers.root.RootController',
|
|
'modules': ['orm.services.audit_trail_manager.audit_server'],
|
|
'debug': True,
|
|
}
|
|
|
|
app_module = app['modules'][0]
|
|
logging = config.get_log_config(config.audit_server['log'], server['name'], app_module)
|
|
|
|
verify = config.ssl_verify
|
|
|
|
# Custom Configurations must be in Python dictionary format::
|
|
#
|
|
# foo = {'bar':'baz'}
|
|
#
|
|
# All configurations are accessible at::
|
|
# pecan.conf
|