-
Notifications
You must be signed in to change notification settings - Fork 4
Expand file tree
/
Copy pathstructured-command-profile.json
More file actions
41 lines (41 loc) · 1.04 KB
/
Copy pathstructured-command-profile.json
File metadata and controls
41 lines (41 loc) · 1.04 KB
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
{
"version": 1,
"path": "ops/system",
"description": "Predeclared Linux system operations",
"commands": [
{
"name": "system-info",
"description": "Read kernel and architecture information",
"executable": "/usr/bin/uname",
"argv": ["-a"],
"effect": "read",
"delivery": "both"
},
{
"name": "disk-usage",
"description": "Read disk usage for a selected mount",
"executable": "/usr/bin/df",
"argv": [
"-h",
{
"input": "mount",
"description": "Approved mount path",
"choices": ["/", "/var/lib/docker"],
"required": true
}
],
"effect": "read",
"timeoutMs": 10000,
"maxOutputBytes": 262144
},
{
"name": "restart-home-assistant",
"description": "Restart the predeclared Home Assistant service",
"executable": "/usr/bin/systemctl",
"argv": ["restart", "home-assistant.service"],
"effect": "destructive",
"confirm": true,
"timeoutMs": 30000
}
]
}