44 lines
1.0 KiB
Python
44 lines
1.0 KiB
Python
# Server Specific Configurations
|
|
server = {
|
|
'port': '6382',
|
|
'host': '0.0.0.0'
|
|
}
|
|
|
|
# Pecan Application Configurations
|
|
app = {
|
|
'root': 'ironic.api.controllers.root.RootController',
|
|
'modules': ['ironic.api'],
|
|
'static_root': '%(confdir)s/public',
|
|
'template_path': '%(confdir)s/ironic/api/templates',
|
|
'debug': False,
|
|
'enable_acl': False,
|
|
}
|
|
|
|
logging = {
|
|
'loggers': {
|
|
'root': {'level': 'INFO', 'handlers': ['console']},
|
|
'ironic': {'level': 'DEBUG', 'handlers': ['console']},
|
|
'wsme': {'level': 'DEBUG', 'handlers': ['console']}
|
|
},
|
|
'handlers': {
|
|
'console': {
|
|
'level': 'DEBUG',
|
|
'class': 'logging.StreamHandler',
|
|
'formatter': 'simple'
|
|
}
|
|
},
|
|
'formatters': {
|
|
'simple': {
|
|
'format': ('%(asctime)s %(levelname)-5.5s [%(name)s]'
|
|
'[%(threadName)s] %(message)s')
|
|
}
|
|
},
|
|
}
|
|
|
|
# Custom Configurations must be in Python dictionary format::
|
|
#
|
|
# foo = {'bar':'baz'}
|
|
#
|
|
# All configurations are accessible at::
|
|
# pecan.conf
|