This repository has been archived by the owner on Jul 22, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 7
/
Copy pathbasicMultiTargetRunbook.json
86 lines (86 loc) · 2.94 KB
/
basicMultiTargetRunbook.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
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
{
"name": "Check systems for enough free disc space",
"description": "Check systems for enough free disc space",
"steps": [
{
"number": 1,
"description": "\n<p dir=\"ltr\">Execute this automation:</p>\n\n<p dir=\"ltr\"><span class=\"span-grp rba-autom\" data-automationid=\"§§exportedAutomation_0_§§\" data-mappingid=\"1\" contenteditable=\"false\">Disc Space Check</span></p>\n\n<p dir=\"ltr\">It will fail on any system with less than the intended amount of free space.</p>\n"
}
],
"parameters": [
{
"name": "HOSTNAMES",
"description": "Target system where the script will be executed"
},
{
"name": "PATH",
"description": "File path on which to check the file system"
}
],
"tags": [
"disc",
"free",
"filesystem",
"linux"
],
"automationMappings": [
{
"mappingId": "1",
"parameterMappings": [
{
"automationParameterName": "target",
"parameterMappingType": "parameter",
"parameterValue": "HOSTNAMES"
},
{
"automationParameterName": "user",
"parameterMappingType": "userName",
"parameterValue": "root"
},
{
"automationParameterName": "$path",
"parameterMappingType": "parameter",
"parameterValue": "PATH"
},
{
"automationParameterName": "$freeSpace",
"parameterMappingType": "fixed",
"parameterValue": "512"
}
]
}
],
"automations": {
"§§exportedAutomation_0_§§": {
"name": "Disc Space Check",
"type": "SCRIPT",
"description": "Checks the remaining disc space of a file system against a freely choosable threshold (in MiB). Will fail if not enough space is available.",
"parameters": [
{
"name": "target",
"description": "Target system where the script will be executed"
},
{
"name": "user",
"description": "User ID that is used to run the script"
},
{
"name": "$path",
"description": "File path on which to check the file system"
},
{
"name": "$freeSpace",
"description": "Amount of free space in MiB required for this automation to not fail"
}
],
"fields": [
{
"name": "script_ssh",
"description": "script content",
"encoding": "base64",
"value": "IyEvYmluL2Jhc2gKCmZyZWVTcGFjZT1gZGYgLW0gJHBhdGggfCBncmVwIC12IC1lICdeRmlsZXN5c3RlbScgfCBhd2sgJ3sgcHJpbnQgJDQ7fSdgCgppZiB0ZXN0ICRmcmVlU3BhY2UgLWx0ICR0aHJlc2hvbGQKdGhlbgoJZWNobyAiVGhlcmUgaXMgbm90IGVub3VnaCBzcGFjZSBsZWZ0IG9uIHRoZSBkZXZpY2UgKCRmcmVlU3BhY2UpLiIKCWV4aXQgMQplbHNlCgllY2hvICJFdmVyeXRoaW5nIGlzIGdvb2QuIgpmaQ=="
}
]
}
}
}