blob: 61829ba50f27eb7bca6678fe1a46aa621e5bb8e6 [file] [log] [blame]
Matteo Scandolod2044a42017-08-07 16:08:28 -07001
2# Copyright 2017-present Open Networking Foundation
3#
4# Licensed under the Apache License, Version 2.0 (the "License");
5# you may not use this file except in compliance with the License.
6# You may obtain a copy of the License at
7#
8# http://www.apache.org/licenses/LICENSE-2.0
9#
10# Unless required by applicable law or agreed to in writing, software
11# distributed under the License is distributed on an "AS IS" BASIS,
12# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13# See the License for the specific language governing permissions and
14# limitations under the License.
15
16
Matteo Scandolo56879722017-05-17 21:39:54 -070017DEFAULT_VALUES = {
Matteo Scandolo6bc017c2017-05-25 18:37:42 -070018 'xos_dir': '/opt/xos',
Sapan Bhatia06de76b2017-08-22 16:53:50 -040019
20 # The configuration below inherits from the standard config of the Python logging module
21 # See: https://docs.python.org/2/library/logging.config.html
22 # multistructlog supports this config in all of its generality
23 # So for instance, you can add new handlers. Note that all handlers will
24 # receive logs simultaneously.
25
Matteo Scandolo56879722017-05-17 21:39:54 -070026 'logging': {
Sapan Bhatia36a71692017-08-25 21:28:18 -040027 'version': 1,
28 'handlers': {
29 'console': {
30 'class': 'logging.StreamHandler',
31 },
32 'file': {
33 'class': 'logging.handlers.RotatingFileHandler',
34 'filename': '/var/log/xos.log',
35 'maxBytes': 10485760,
36 'backupCount': 5
37 }
38 },
39 'loggers': {
40 '': {
41 'handlers': ['console', 'file'],
42 'level': 'DEBUG'
43 }
44 }
Matteo Scandolo1879ce72017-05-30 15:45:26 -070045 },
46 'accessor': {
47 'endpoint': 'xos-core.cord.lab:50051',
Scott Bakeraa084c82017-06-21 09:42:50 -070048 'kind': 'grpcapi',
Matteo Scandolo1879ce72017-05-30 15:45:26 -070049 },
50 'keep_temp_files': False,
51 'enable_watchers': False,
52 'dependency_graph': '/opt/xos/model-deps',
53 'error_map_path': '/opt/xos/error_map.txt',
54 'feefie': {
55 'client_user': 'pl'
56 },
57 'proxy_ssh': {
Sapan Bhatia36a71692017-08-25 21:28:18 -040058 'enabled': True,
59 'key': '/opt/cord_profile/node_key',
60 'user': 'root'
Matteo Scandolo1879ce72017-05-30 15:45:26 -070061 },
62 'node_key': '/opt/cord_profile/node_key',
63 'config_dir': '/etc/xos/sync',
64 'backoff_disabled': True
Scott Bakeraa084c82017-06-21 09:42:50 -070065}