'watchdog_interval': 120,
}
- def __init__(self):
- super(TeuthologyConfig, self).__init__(self.yaml_path)
+ def __init__(self, yaml_path=None):
+ super(TeuthologyConfig, self).__init__(yaml_path or self.yaml_path)
class JobConfig(YamlConfig):
pass
-config = TeuthologyConfig()
+system_config_path = '/etc/teuthology.yaml'
+if not os.path.exists(TeuthologyConfig.yaml_path) and \
+ os.path.exists(system_config_path):
+ config = TeuthologyConfig(yaml_path=system_config_path)
+else:
+ config = TeuthologyConfig()