diff options
Diffstat (limited to 'clusterman/config.py')
| -rw-r--r-- | clusterman/config.py | 14 |
1 files changed, 10 insertions, 4 deletions
diff --git a/clusterman/config.py b/clusterman/config.py index b70dc16..9a5c52d 100644 --- a/clusterman/config.py +++ b/clusterman/config.py @@ -19,14 +19,20 @@ class Config: }, "plugins": { "ls": "ls -al" }, "timeout": 0.5, - "ssh_key_path": "" + "ssh": { + "key_path": "", + "user": "root" + } } SCHEMA_CONFIG = { "type": "object", "properties": { "timeout": {"type": "number"}, "plugins": {"type": "object"}, - "ssh_key_path": {"type": "string"}, + "ssh": {"type": "object", "properties":{ + "key_path": {"type": "string"}, + "user": {"type": "string"} + }}, "cluster": {"type": "object", "properties":{ "ip4_from": {"type": "string"}, "ip4_to": {"type": "string"}, @@ -37,8 +43,8 @@ class Config: "required":[ "timeout", "plugins", - "ssh_key_path", - "cluster" + "cluster", + "ssh" ] } |
