summaryrefslogtreecommitdiff
path: root/clusterman/config.py
diff options
context:
space:
mode:
Diffstat (limited to 'clusterman/config.py')
-rw-r--r--clusterman/config.py12
1 files changed, 10 insertions, 2 deletions
diff --git a/clusterman/config.py b/clusterman/config.py
index 94294be..58dbdbc 100644
--- a/clusterman/config.py
+++ b/clusterman/config.py
@@ -15,19 +15,27 @@ class Config:
"ip4_ignore": ["10.0.0.5", "10.0.0.1"],
},
"plugins": { "ls": "ls -al" },
- "timeout": 0.5
+ "timeout": 0.5,
+ "ssh_key_path": ""
}
SCHEMA_CONFIG = {
"type": "object",
"properties": {
"timeout": {"type": "number"},
"plugins": {"type": "object"},
+ "ssh_key_path": {"type": "string"},
"cluster": {"type": "object", "properties":{
"ip4_from": {"type": "string"},
"ip4_to": {"type": "string"},
"ip4_ignore": {"type": "array", "items":{"type": "string"}}
}}
- }
+ },
+ "required":[
+ "timeout",
+ "plugins",
+ "ssh_key_path",
+ "cluster"
+ ]
}
def __init__(self):