-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathjp-sync-settings-schema.json
More file actions
70 lines (70 loc) · 2.25 KB
/
jp-sync-settings-schema.json
File metadata and controls
70 lines (70 loc) · 2.25 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
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
{
"$schema": "https://json-schema.org/draft/2020-12/schema",
"type": "array",
"items": {
"type": "object",
"oneOf": [
{
"properties": {
"watch": {
"type": "array",
"items": {
"type": "string"
},
"description": "An array of local directories to watch for syncing."
},
"cloud": {
"type": "object",
"properties": {
"serversEnvVar": {
"type": "string",
"description": "Add a comma separated list of servers to an environment variable e.g. SERVERS. To set this edit your /etc/environment file and add the line: SERVERS=<fqdn1>,<fqdn2>,..."
},
"username": {
"type": "string",
"description": "This is the username that will be used to access all servers in serversEnvVar. It is equivalent to rsync <username>@<fqdn>:<path> ..."
}
},
"required": ["serversEnvVar", "username"]
},
"postSyncShellCmd": {
"type": "string",
"description": "Enter a command line command to be executed after the rsync completes e.g.: service nginx restart"
}
},
"required": ["watch", "cloud"]
},
{
"properties": {
"watch": {
"type": "array",
"items": {
"type": "string"
}
},
"rsync": {
"type": "object",
"properties": {
"locations": {
"type": "array",
"items": {
"type": "string"
},
"description":"An array of rsync locations. The syntax of these is the same as that of an rsync destination i.e. fqdn1:path."
},
"params": {
"type": "array",
"items": {
"type": "string"
},
"description":"Include any rsync parameters you like. By default the -r option is included to recursively sync directories."
}
},
"required": ["locations"]
}
},
"required": ["watch", "rsync"]
}
]
}
}