Matteo Scandolo | d2044a4 | 2017-08-07 16:08:28 -0700 | [diff] [blame] | 1 | # 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 Scandolo | 5687972 | 2017-05-17 21:39:54 -0700 | [diff] [blame] | 15 | DEFAULT_VALUES = { |
Zack Williams | 045b63d | 2019-01-22 16:30:57 -0700 | [diff] [blame] | 16 | "xos_dir": "/opt/xos", |
Matteo Scandolo | 12651d7 | 2019-02-21 15:15:29 -0800 | [diff] [blame^] | 17 | "desired_state": "load", # synchronizers - default to "load" |
| 18 | # by default version in not set, |
| 19 | # we can't make it mandatory as we're reading multiple files in the synchronizers |
| 20 | "core_version": None, |
Sapan Bhatia | 06de76b | 2017-08-22 16:53:50 -0400 | [diff] [blame] | 21 | # The configuration below inherits from the standard config of the Python logging module |
| 22 | # See: https://docs.python.org/2/library/logging.config.html |
| 23 | # multistructlog supports this config in all of its generality |
| 24 | # So for instance, you can add new handlers. Note that all handlers will |
| 25 | # receive logs simultaneously. |
Zack Williams | 045b63d | 2019-01-22 16:30:57 -0700 | [diff] [blame] | 26 | "blueprints": {}, |
| 27 | "logging": { |
| 28 | "version": 1, |
| 29 | "handlers": { |
| 30 | "console": {"class": "logging.StreamHandler"}, |
| 31 | "file": { |
| 32 | "class": "logging.handlers.RotatingFileHandler", |
| 33 | "filename": "/var/log/xos.log", |
| 34 | "maxBytes": 10485760, |
| 35 | "backupCount": 5, |
Sapan Bhatia | 36a7169 | 2017-08-25 21:28:18 -0400 | [diff] [blame] | 36 | }, |
Sapan Bhatia | 36a7169 | 2017-08-25 21:28:18 -0400 | [diff] [blame] | 37 | }, |
Zack Williams | 045b63d | 2019-01-22 16:30:57 -0700 | [diff] [blame] | 38 | "loggers": {"": {"handlers": ["console", "file"], "level": "DEBUG"}}, |
Matteo Scandolo | 1879ce7 | 2017-05-30 15:45:26 -0700 | [diff] [blame] | 39 | }, |
Zack Williams | 045b63d | 2019-01-22 16:30:57 -0700 | [diff] [blame] | 40 | "accessor": {"endpoint": "xos-core.cord.lab:50051", "kind": "grpcapi"}, |
| 41 | "keep_temp_files": False, |
| 42 | "dependency_graph": None, |
| 43 | "error_map_path": "/opt/xos/error_map.txt", |
| 44 | "feefie": {"client_user": "pl"}, |
| 45 | "proxy_ssh": {"enabled": True, "key": "/opt/cord_profile/node_key", "user": "root"}, |
| 46 | "node_key": "/opt/cord_profile/node_key", |
| 47 | "config_dir": "/etc/xos/sync", |
| 48 | "backoff_disabled": True, |
| 49 | "kafka_bootstrap_servers": ["cord-kafka:9092"], |
Scott Baker | aa084c8 | 2017-06-21 09:42:50 -0700 | [diff] [blame] | 50 | } |