Matteo Scandolo | d2044a4 | 2017-08-07 16:08:28 -0700 | [diff] [blame] | 1 | |
| 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 Scandolo | 5687972 | 2017-05-17 21:39:54 -0700 | [diff] [blame] | 17 | DEFAULT_VALUES = { |
Matteo Scandolo | 6bc017c | 2017-05-25 18:37:42 -0700 | [diff] [blame] | 18 | 'xos_dir': '/opt/xos', |
Sapan Bhatia | 06de76b | 2017-08-22 16:53:50 -0400 | [diff] [blame] | 19 | |
| 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 | |
Sapan Bhatia | 2eee7c7 | 2017-11-02 23:18:12 -0400 | [diff] [blame] | 26 | 'blueprints': {}, |
Matteo Scandolo | 5687972 | 2017-05-17 21:39:54 -0700 | [diff] [blame] | 27 | 'logging': { |
Sapan Bhatia | 36a7169 | 2017-08-25 21:28:18 -0400 | [diff] [blame] | 28 | 'version': 1, |
| 29 | 'handlers': { |
| 30 | 'console': { |
| 31 | 'class': 'logging.StreamHandler', |
| 32 | }, |
| 33 | 'file': { |
| 34 | 'class': 'logging.handlers.RotatingFileHandler', |
| 35 | 'filename': '/var/log/xos.log', |
| 36 | 'maxBytes': 10485760, |
| 37 | 'backupCount': 5 |
| 38 | } |
| 39 | }, |
| 40 | 'loggers': { |
| 41 | '': { |
| 42 | 'handlers': ['console', 'file'], |
| 43 | 'level': 'DEBUG' |
| 44 | } |
| 45 | } |
Matteo Scandolo | 1879ce7 | 2017-05-30 15:45:26 -0700 | [diff] [blame] | 46 | }, |
| 47 | 'accessor': { |
| 48 | 'endpoint': 'xos-core.cord.lab:50051', |
Scott Baker | aa084c8 | 2017-06-21 09:42:50 -0700 | [diff] [blame] | 49 | 'kind': 'grpcapi', |
Matteo Scandolo | 1879ce7 | 2017-05-30 15:45:26 -0700 | [diff] [blame] | 50 | }, |
| 51 | 'keep_temp_files': False, |
| 52 | 'enable_watchers': False, |
| 53 | 'dependency_graph': '/opt/xos/model-deps', |
| 54 | 'error_map_path': '/opt/xos/error_map.txt', |
| 55 | 'feefie': { |
| 56 | 'client_user': 'pl' |
| 57 | }, |
| 58 | 'proxy_ssh': { |
Sapan Bhatia | 36a7169 | 2017-08-25 21:28:18 -0400 | [diff] [blame] | 59 | 'enabled': True, |
| 60 | 'key': '/opt/cord_profile/node_key', |
| 61 | 'user': 'root' |
Matteo Scandolo | 1879ce7 | 2017-05-30 15:45:26 -0700 | [diff] [blame] | 62 | }, |
| 63 | 'node_key': '/opt/cord_profile/node_key', |
| 64 | 'config_dir': '/etc/xos/sync', |
| 65 | 'backoff_disabled': True |
Scott Baker | aa084c8 | 2017-06-21 09:42:50 -0700 | [diff] [blame] | 66 | } |