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