diff options
| author | Loic Guegan <loic.guegan@mailbox.org> | 2023-10-27 13:23:06 +0200 |
|---|---|---|
| committer | Loic Guegan <loic.guegan@mailbox.org> | 2023-10-27 13:23:06 +0200 |
| commit | a65e22fc31d123f3fc195139bfc79d4edd488400 (patch) | |
| tree | 2979d4686faed71b67b6a29511465edc26284643 /clusterman/config.py | |
| parent | 719cc32a70cc1ab6cd5cfdab48b0279053d757d7 (diff) | |
Minor changes
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" ] } |
