
This commit provides the following uuid management: (1) Remove uuid record from database after the uuid owned by a Ranger service (cms, fms, ims) resource is deleted. (2) Remove stale uuid record from database when such record is inadvertently created during unsuccessful Ranger service resource creation. (3) Add authentication for uuidgen service delete uuid API. Change-Id: Ifebd68851ff6c0996e7b19d331f4dd99682bd7d2
28 lines
660 B
Python
Executable File
28 lines
660 B
Python
Executable File
from orm import base_config as config
|
|
|
|
|
|
# Server Specific Configurations
|
|
server = {
|
|
'port': config.uuid['port'],
|
|
'host': config.orm_host,
|
|
'name': 'uuid'
|
|
}
|
|
# Pecan Application Configurations
|
|
app = {
|
|
'root': 'orm.services.id_generator.uuidgen.controllers.root.RootController',
|
|
'modules': ['orm.services.id_generator.uuidgen'],
|
|
'debug': config.pecan_debug,
|
|
}
|
|
|
|
app_module = app['modules'][0]
|
|
logging = config.get_log_config(config.uuid['log'], server['name'], app_module)
|
|
|
|
verify = config.ssl_verify
|
|
|
|
# DB configurations
|
|
database = {
|
|
'connection_string': config.db_connect
|
|
}
|
|
|
|
authentication = config.server_request_auth(server['name'])
|