-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathschema.inventory.json
55 lines (55 loc) · 1.49 KB
/
schema.inventory.json
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
{
"$schema": "http://json-schema.org/draft-07/schema#",
"title": "Storm Inventory Schema",
"type": "object",
"properties": {
"servers": {
"type": "array",
"description": "List of server configurations.",
"items": {
"type": "object",
"properties": {
"name": {
"type": "string",
"description": "A unique name for the server."
},
"host": {
"type": "string",
"description": "The hostname or IP address of the server."
},
"port": {
"type": "integer",
"description": "The SSH port for the server.",
"default": 22
},
"user": {
"type": "string",
"description": "The username to use for SSH."
},
"ssh-pass": {
"type": "string",
"description": "The SSH password for the user."
},
"sudo-pass": {
"type": "string",
"description": "The sudo password for the user."
},
"private-ssh-key": {
"type": "string",
"description": "Path to the private SSH key file. This takes priority over password authentication."
}
},
"required": ["name", "host", "user"],
"oneOf": [
{
"required": ["ssh-pass"]
},
{
"required": ["private-ssh-key"]
}
]
}
}
},
"required": ["servers"]
}