This repository has been archived by the owner on Apr 20, 2023. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 9
/
schema.json
327 lines (327 loc) · 11 KB
/
schema.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
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
{
"repositoryDefinition": {
"type": "object",
"additionalProperties": false,
"manualrepositoryDiscovery" : true,
"properties": {
"name": {
"type": "string",
"prettyName": "Name",
"description": "Displayable Name for the MySQL Binary"
},
"version": {
"type": "string",
"prettyName": "Version",
"description": "The version of the MySQL DB binaries"
},
"installPath": {
"type": "string",
"prettyName": "Location",
"description": "This is the path to MySQL executables"
}
},
"nameField": "name",
"identityFields": ["installPath"]
},
"sourceConfigDefinition": {
"type": "object",
"ordering": ["dataDir","port","baseDir","dbName"],
"required": ["dataDir","port","baseDir","dbName"],
"additionalProperties": false,
"properties": {
"dataDir": {
"type": "string",
"prettyName": "Data Directory",
"description": "Full path of the MySQL DB data directory (include the data directory)"
},
"port": {
"type": "string",
"prettyName": "Port",
"description": "Port for the MySQL database"
},
"baseDir": {
"type": "string",
"prettyName": "Base Directory",
"description": "Path of the MySQL Installation, where binaries (/bin) is located "
},
"dbName": {
"type": "string",
"prettyName": "MySQL Instance Name",
"description": "Name of the MySQL Instance."
}
},
"nameField": "dbName",
"identityFields": ["dataDir","port"]
},
"virtualSourceDefinition": {
"type": "object",
"additionalProperties" : false,
"ordering": [
"vdbUser",
"vdbPass",
"baseDir",
"port",
"serverId",
"mPath",
"config_settings_prov"
],
"required": [
"vdbUser",
"vdbPass",
"baseDir",
"port",
"serverId",
"mPath"
],
"properties" : {
"vdbUser": {
"type": "string",
"prettyName": "DB User",
"description": "DB user for the virtual database",
"default": "delphixdb"
},
"vdbPass": {
"type": "string",
"format": "password",
"pattern" : "^[^\"\\'\\s]*$",
"prettyName": "DB Password",
"description": "DB user password for the virtual database. Double quote, single quote or space characters are not valid.",
"default": "Delphix@123"
},
"baseDir": {
"type": "string",
"prettyName": "BaseDir",
"description": "Path of the MySQL Installation, where binaries (./bin) exists",
"default": "/usr"
},
"port": {
"type": "string",
"prettyName": "VDB Port",
"description": "Port for the MySQL VDB",
"default": "3308"
},
"serverId": {
"type": "string",
"prettyName": "VDB Server ID",
"description": "Server ID for the MySQL VDB",
"default": "201"
},
"config_settings_prov" : {
"type" : "array",
"prettyName" : "my.cnf Config Settings",
"description" : "Custom Database-Level config settings",
"items": {
"type": "object",
"required": ["propertyName","value"],
"ordering": ["propertyName", "value"],
"properties": {
"propertyName" : {
"type" : "string",
"prettyName": "Property Name",
"pattern": "^$|^[_a-zA-Z0-9]*$",
"default": "",
"maxLength": 40
},
"value": {
"type": "string",
"prettyName": "Value",
"pattern": "^$|^[_a-zA-Z0-9]*$",
"default": "",
"maxLength": 40
}
}
}
},
"mPath": {
"type": "string",
"prettyName": "Mount Location",
"description": "Unique NFS Mount folder for Delphix",
"default": "/mnt/provision/mysql_vdb"
}
}
},
"linkedSourceDefinition": {
"type": "object",
"additionalProperties" : false,
"required": [
"dSourceType",
"serverId",
"stagingPort",
"mountPath"
],
"ordering" : [
"dSourceType",
"serverId",
"stagingPort",
"stagingPass",
"stagingBasedir",
"mountPath",
"sourceip",
"sourceUser",
"sourcePass",
"databaseList",
"backupPath",
"logSync",
"replicationUser",
"replicationPass"
],
"properties" : {
"dSourceType": {
"type": "string",
"prettyName": "dSource Type",
"description": "",
"enum": ["Manual Backup Ingestion", "Replication"],
"default": "Replication"
},
"backupPath": {
"type": "string",
"prettyName": "Full path (including filename) to MySQL backup.",
"description": "* Leave blank if Delphix is taking backups",
"default": ""
},
"sourceip": {
"type": "string",
"prettyName": "Source DB Host IP address",
"description": "* Required if using Replication Method",
"default": "10.0.1.20"
},
"mountPath": {
"type": "string",
"prettyName": "Mount Location on Staging Host",
"description": "Unique NFS mount directory on the Staging Host",
"default": "/mnt/provision/mysql_stage"
},
"sourceUser": {
"type": "string",
"prettyName": "Source DB UserName",
"description": "* Required if Delphix is taking backups",
"default": "delphixdb"
},
"sourcePass": {
"type": "string",
"format": "password",
"pattern" : "^[^\"\\'\\s]*$",
"prettyName": "Source Connection Password",
"description": "* Required if Delphix is taking backups. Double quote, single quote or space characters are not valid.",
"default": "Delphix@123"
},
"databaseList": {
"type": "string",
"prettyName": "Databases List",
"description": "If Delphix is taking the backup, list of databases to include (comma separated)",
"default": "ALL"
},
"logSync": {
"default": true,
"prettyName": "Log Sync",
"type": "boolean",
"description": "LogSync needs to be enabled if using Replication Method."
},
"replicationUser": {
"type": "string",
"prettyName": "Replication UserName",
"description": "* Required if using Replication Method with LogSync",
"default": "delphixdb"
},
"replicationPass": {
"type": "string",
"format": "password",
"pattern" : "^[^\"\\'\\s]*$",
"prettyName": "Replication User's Password",
"description": "* Required if using Replication Method with LogSync. Double quote, single quote or space characters are not valid.",
"default": "Delphix@123"
},
"stagingPass": {
"type": "string",
"format": "password",
"pattern" : "^[^\"\\'\\s]*$",
"prettyName": "Staging Initialization Password",
"description": "root user password to use while initializing Staging DB. Double quote, single quote or space characters are not valid.",
"default": "Delphix@123"
},
"serverId": {
"type": "string",
"prettyName": "Staging DB Server ID",
"description": "ServerID for the Stagine DB. Must be different from Source DB Server ID",
"default": "102"
},
"stagingPort": {
"type": "string",
"prettyName": "Staging DB Port",
"description": "Staging Database Port",
"default": "3308"
},
"stagingBasedir": {
"type": "string",
"prettyName": "MySQL Base Directory",
"description": "Base Directory of MySQL Installation (Location of /bin/mysql)",
"default": "/usr"
}
}
},
"snapshotDefinition": {
"type" : "object",
"additionalProperties" : false,
"properties" : {
"snapshotId": {
"type": "string",
"prettyName": "Snapshot ID",
"description": "A unique ID for this snapshot"
},
"snapHost": {
"type": "string",
"prettyName": "Snapshot Host",
"description": ""
},
"snapPort": {
"type": "string",
"prettyName": "Snapshot Port",
"description": ""
},
"snapDataDir": {
"type": "string",
"prettyName": "Snapshot --datadir",
"description": ""
},
"snapBaseDir": {
"type": "string",
"prettyName": "Snapshot --basedir",
"description": ""
},
"snapConn": {
"type": "string",
"prettyName": "Snapshot Connection String",
"description": ""
},
"snapPass": {
"type": "string",
"format": "password",
"prettyName": "Snapshot Connection Password",
"description": ""
},
"snapBackupPath": {
"type": "string",
"prettyName": "Snapshot Backup Path",
"description": ""
},
"snapTime": {
"type": "string",
"prettyName": "Snapshot Timestamp",
"description": "Time when the snapshot was taken."
}
}
},
"snapshotParametersDefinition": {
"type" : "object",
"additionalProperties" : false,
"required": ["resync"],
"properties" : {
"resync" : {
"type": "boolean",
"default": true,
"prettyName": "Resynchronize dSource",
"description": "Before taking a snapshot will refresh the staging database to update its data. Unselect this option if you wish to snapshot the staging database in its current state."
}
}
}
}