Changeset View
Changeset View
Standalone View
Standalone View
scap/config.py
Show First 20 Lines • Show All 73 Lines • ▼ Show 20 Lines | DEFAULT_CONFIG = { | ||||
'nrpe_dir': (str, '/etc/nagios/nrpe.d'), | 'nrpe_dir': (str, '/etc/nagios/nrpe.d'), | ||||
'require_valid_service': (bool, False), | 'require_valid_service': (bool, False), | ||||
'scap3_mediawiki': (bool, False), | 'scap3_mediawiki': (bool, False), | ||||
'service_timeout': (float, 120.0), | 'service_timeout': (float, 120.0), | ||||
'tags_to_keep': (int, 20), | 'tags_to_keep': (int, 20), | ||||
'perform_checks': (bool, True), | 'perform_checks': (bool, True), | ||||
'patch_path': (str, None), | 'patch_path': (str, None), | ||||
'conftool_config': (str, None), | 'conftool_config': (str, None), | ||||
'conftool_schema': (str, '/etc/conftool/schema.yaml'), | |||||
'cache_revs': (int, 5), | 'cache_revs': (int, 5), | ||||
} | } | ||||
def load(cfg_file=None, environment=None, overrides=None): | def load(cfg_file=None, environment=None, overrides=None): | ||||
""" | """ | ||||
Load configuration. | Load configuration. | ||||
▲ Show 20 Lines • Show All 117 Lines • Show Last 20 Lines |
Content licensed under Creative Commons Attribution-ShareAlike 3.0 (CC-BY-SA) unless otherwise noted; code licensed under GNU General Public License (GPL) or other open source licenses. By using this site, you agree to the Terms of Use, Privacy Policy, and Code of Conduct. · Wikimedia Foundation · Privacy Policy · Code of Conduct · Terms of Use · Disclaimer · CC-BY-SA · GPL