Fix some bugs when testing opensds ansible
[stor4nfv.git] / src / ceph / src / brag / server / config.py
1 # Server Specific Configurations
2 server = {
3     'port': '8080',
4     'host': '0.0.0.0'
5 }
6
7 # Pecan Application Configurations
8 app = {
9     'root': 'ceph_brag.controllers.root.RootController',
10     'modules': ['ceph_brag'],
11     'debug': True,
12     'errors': {
13         404: '/error/404',
14         '__force_dict__': True
15     }
16 }
17
18 logging = {
19     'loggers': {
20         'root': {'level': 'INFO', 'handlers': ['console']},
21         'ceph_brag': {'level': 'DEBUG', 'handlers': ['console']},
22         'py.warnings': {'handlers': ['console']},
23         '__force_dict__': True
24     },
25     'handlers': {
26         'console': {
27             'level': 'DEBUG',
28             'class': 'logging.StreamHandler',
29             'formatter': 'simple'
30         }
31     },
32     'formatters': {
33         'simple': {
34             'format': ('%(asctime)s %(levelname)-5.5s [%(name)s]'
35                        '[%(threadName)s] %(message)s')
36         }
37     }
38 }
39
40 sqlalchemy = {
41     'url'           : 'sqlite:////tmp/test.db',
42     'echo'          : False,
43     'encoding'      : 'utf-8'
44 }
45
46
47 # Custom Configurations must be in Python dictionary format::
48 #
49 # foo = {'bar':'baz'}
50 #
51 # All configurations are accessible at::
52 # pecan.conf