
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
74 lines
2.0 KiB
Python
Executable File
74 lines
2.0 KiB
Python
Executable File
# Server Specific Configurations
|
|
server = {
|
|
'port': '8080',
|
|
'host': '0.0.0.0'
|
|
}
|
|
|
|
logging = {
|
|
'root': {'level': 'INFO', 'handlers': ['console']},
|
|
'loggers': {
|
|
'uuidgen': {'level': 'DEBUG', 'handlers': ['console'],
|
|
'propagate': False},
|
|
'pecan': {'level': 'DEBUG', 'handlers': ['console'],
|
|
'propagate': False},
|
|
'py.warnings': {'handlers': ['console']},
|
|
'__force_dict__': True
|
|
},
|
|
'handlers': {
|
|
'console': {
|
|
'level': 'DEBUG',
|
|
'class': 'logging.StreamHandler',
|
|
'formatter': 'color'
|
|
}
|
|
},
|
|
'formatters': {
|
|
'simple': {
|
|
'format': ('%(asctime)s %(levelname)-5.5s [%(name)s]'
|
|
'[%(threadName)s] %(message)s')
|
|
},
|
|
'color': {
|
|
'()': 'pecan.log.ColorFormatter',
|
|
'format': ('%(asctime)s [%(padded_color_levelname)s] [%(name)s]'
|
|
'[%(threadName)s] %(message)s'),
|
|
'__force_dict__': True
|
|
}
|
|
}
|
|
}
|
|
# Pecan Application Configurations
|
|
app = {
|
|
'root': 'orm.services.id_generator.uuidgen.controllers.root.RootController',
|
|
'modules': ['orm.services.id_generator.uuidgen'],
|
|
'static_root': '%(confdir)s/../../public',
|
|
'template_path': '%(confdir)s/../templates',
|
|
'debug': True,
|
|
'errors': {
|
|
'404': '/error/404',
|
|
'__force_dict__': True
|
|
}
|
|
}
|
|
|
|
database = {
|
|
'connection_string': 'mysql://root:stack@localhost:3306/orm'
|
|
}
|
|
|
|
authentication = {
|
|
"enabled": False,
|
|
"mech_id": "admin",
|
|
"mech_pass": "xxxxx",
|
|
"rms_url": "http://127.0.0.1:8080",
|
|
"tenant_name": "admin",
|
|
"token_role": "admin",
|
|
"role_location": {"tenant": "admin"},
|
|
"keystone_version": "3",
|
|
"policy_file": "etc/policy.json",
|
|
"user_domain_name": "default",
|
|
"project_domain_name": "default"
|
|
}
|
|
|
|
# Custom Configurations must be in Python dictionary format::
|
|
#
|
|
# foo = {'bar':'baz'}
|
|
#
|
|
# All configurations are accessible at::
|
|
# pecan.conf
|