
Adds basic functionality for oslo_config and oslo_log to Ranger uuidgen Change-Id: I041e4e2013fec83d3ff0b5befc581a455cb04ffe
29 lines
593 B
Python
Executable File
29 lines
593 B
Python
Executable File
from oslo_config import cfg
|
|
|
|
|
|
CONF = cfg.CONF
|
|
|
|
# Server Specific Configurations
|
|
server = {
|
|
'port': CONF.uuid.port,
|
|
'host': CONF.api.host
|
|
}
|
|
# Pecan Application Configurations
|
|
app = {
|
|
'root': 'orm.services.id_generator.uuidgen.controllers.root.RootController',
|
|
'modules': ['orm.services.id_generator.uuidgen'],
|
|
'debug': True,
|
|
}
|
|
|
|
verify = CONF.api.ssl_verify
|
|
|
|
database = {
|
|
'connection_string': CONF.database.connection + '/orm'
|
|
}
|
|
# Custom Configurations must be in Python dictionary format::
|
|
#
|
|
# foo = {'bar':'baz'}
|
|
#
|
|
# All configurations are accessible at::
|
|
# pecan.conf
|