-
Notifications
You must be signed in to change notification settings - Fork 4
/
Copy pathschema.yaml
568 lines (501 loc) · 13.6 KB
/
schema.yaml
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
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
title: Sample input variable schema
schemaVersion: 1.1.0
version: "20200110"
locale: "en"
groupings:
- title: "SSH Key"
variables:
- ${provide_ssh_key}
- title: "SSH Configuration"
variables:
- ${ssh_provided_key}
visible: ${provide_ssh_key}
- title: "Availabilty Domain"
variables:
- ${availability_domain}
- title: "VCN Options"
variables:
- ${VPC_CIDR}
- ${vcn_dns_label}
- ${useExistingVcn}
- ${hide_public_subnet}
- ${hide_private_subnet}
- title: "Custom VCN"
variables:
- ${myVcn}
visibility: ${useExistingVcn}
- title: "Airflow Options"
variables:
- ${master_instance_shape}
- ${airflow_options}
- ${enable_instance_principals}
- ${enable_security}
- ${executor}
- ${enable_fss}
- ${airflow_database}
- ${masterSubnet}
- title: "OCI MySQL"
variables:
- ${mysqladmin_username}
- ${mysqladmin_password}
- ${mysql_shape}
- ${oci_mysql_ip}
- ${enable_mysql_backups}
visible:
and:
- ${airflow_options}
- not:
- eq:
- ${airflow_database}
- "mysql-local"
- title: "Airflow Extra Packages"
variables:
- ${all}
- ${all_dbs}
- ${async}
- ${aws}
- ${azure}
- ${celery}
- ${cloudant}
- ${crypto}
- ${devel}
- ${devel_hadoop}
- ${druid}
- ${gcp}
- ${github_enterprise}
- ${google_auth}
- ${hashicorp}
- ${hdfs}
- ${hive}
- ${jdbc}
- ${kerberos}
- ${kubernetes}
- ${ldap}
- ${mssql}
- ${mysql}
- ${oracle}
- ${password}
- ${postgres}
- ${presto}
- ${qds}
- ${rabbitmq}
- ${redis}
- ${samba}
- ${slack}
- ${ssh}
- ${vertica}
visible: ${airflow_options}
- title: "Worker Node Options"
variables:
- ${worker_instance_shape}
- ${worker_node_count}
- ${enable_block_volumes}
- ${block_volumes_per_worker}
- ${data_blocksize_in_gbs}
- ${customize_block_volume_performance}
- ${block_volume_high_performance}
- ${block_volume_cost_savings}
- ${clusterSubnet}
visible:
and:
- ${airflow_options}
- not:
- eq:
- ${executor}
- "local"
- title: "Pre-Defined"
variables:
- ${region}
- ${compartment_ocid}
- ${tenancy_ocid}
- ${OELImageOCID}
- ${oci_service_gateway}
- ${AD}
- ${vpus_per_gb}
- ${vcn_cidr}
visible: false
variables:
useExistingVcn:
type: boolean
title: "Use Existing VCN"
description: "Click to use existing VCN, otherwise VCN and Subnets will be created"
required: true
myVcn:
type: oci:core:vcn:id
title: "Existing VCN"
description: "Select Existing VCN"
dependsOn:
compartmentId: ${compartment_ocid}
visible: ${useExistingVcn}
required: true
masterSubnet:
type: oci:core:subnet:id
title: "Airflow Master Subnet"
description: "Select Subnet - Ensure the Subnet is in the same Availability Domain selected above"
dependsOn:
compartmentId: ${compartment_ocid}
vcnId: ${myVcn}
hidePrivateSubnet: ${hide_private_subnet}
visible: ${useExistingVcn}
required: true
clusterSubnet:
type: oci:core:subnet:id
title: "Airflow Worker Subnet"
description: "Select Subnet - Ensure the Subnet is in the same Availability Domain selected above"
dependsOn:
compartmentId: ${compartment_ocid}
vcnId: ${myVcn}
hidePublicSubnet: ${hide_public_subnet}
visible: ${useExistingVcn}
required: true
hide_private_subnet:
type: boolean
title: "Deploy Airflow Master to Public Networks"
description: "If you wish to deploy to private networks and use VPN, un-check this"
default: true
visible: ${useExistingVcn}
hide_public_subnet:
type: boolean
title: "Deploy Airflow Workers to Private Network Only"
description: "This is highly suggested, disable at your own risk"
default: true
visible: ${useExistingVcn}
availability_domain:
type: oci:identity:availabilitydomain:name
title: "Availability Domain"
description: "Select AD"
dependsOn:
compartmentId: ${compartment_ocid}
required: true
master_instance_shape:
type: oci:core:instanceshape:name
title: "Shape of Airflow Master"
default: "VM.Standard2.4"
required: true
dependsOn:
compartmentId: ${compartment_ocid}
worker_instance_shape:
type: oci:core:instanceshape:name
title: "Shape of Worker Nodes"
default: "VM.Standard2.4"
required: true
dependsOn:
compartmentId: ${compartment_ocid}
worker_node_count:
type: integer
title: "Number of Worker Nodes"
description: "Select number of worker nodes"
default: 0
ssh_provided_key:
type: string
title: "SSH Public Key"
description: "Copy/Paste the contents of your SSH Public Key"
required: true
default: ""
data_blocksize_in_gbs:
type: integer
title: "Data Block Volume Size ( GB )"
description: "700 to 32,768 "
minimum: 700
maximum: 32768
required: true
visible: ${enable_block_volumes}
block_volumes_per_worker:
type: integer
title: "Number of Block Volumes for Data"
description: "0 to 29"
minimum: 0
maximum: 29
required: true
visible: ${enable_block_volumes}
customize_block_volume_performance:
type: boolean
title: "Custom Block Volume Performance"
description: "Click to customize Block Volume performance. Default profile is Balanced. When enabled, only select one sub-option."
default: false
visible: ${enable_block_volumes}
block_volume_high_performance:
type: boolean
title: "High Performance Block Volumes"
description: "Click to enable High Performance for Data Block Volumes. This comes at a higher cost per GB."
default: false
visible:
and:
- ${enable_block_volumes}
- ${customize_block_volume_performance}
block_volume_cost_savings:
type: boolean
title: "Lower Cost Block Volumes"
description: "Click to enable Lower Cost for Data Block Volumes. This lowers performance for cost savings per GB."
default: false
visible:
and:
- ${enable_block_volumes}
- ${customize_block_volume_performance}
VPC_CIDR:
type: string
title: "VPC CIDR for VCN"
description: "Customize VCN top level CIDR"
vcn_dns_label:
type: string
title: "VCN DNS Label"
description: "Set the VCN DNS label to be used when creating VCN. Default is 'airflowvcn' which sets the VCN domain to 'airflowvcn.oraclevcn.com'"
enable_block_volumes:
type: boolean
title: "Enable Block Volumes for Data"
description: "Check to enable Block Volumes for use with Data. This is optional for BM.Dense hosts, required for all others."
default: false
provide_ssh_key:
type: boolean
title: "Provide SSH Key"
description: "Un-Check to generate SSH key as part of deployment process. This is NOT recommended for persistent environments, you should provide your own key for any production deployment."
enable_fss:
type: boolean
title: "Enable FSS"
description: "Enable FSS, which will mount a shared NFS volume between cluster hosts in /opt/airflow/dags/ to ensure DAG files are in sync. This is required for a celery cluster, if you don't use FSS, you should use another method to keep these files in sync."
default: false
visible:
and:
- ${airflow_options}
- not:
- eq:
- ${executor}
- "local"
enable_security:
type: boolean
title: "Enable Airflow Security"
description: "Enable security for Airflow web UI. This requires use of Instance Principals, and values for AirflowLogin and AirflowPassword will need to be present as Vault Secrets to leverage this functionality at deployment time. See https://github.com/oracle-quickstart/oci-airflow#security"
default: false
visible: ${airflow_options}
executor:
type: enum
enum:
- "local"
- "celery"
title: "Airflow Executor"
default: "local"
description: "Select Airflow Executor. Using celery will create worker instances which will coordinate with the Airflow master to execute tasks. Use of celery will require you to pre-configure a Fernet key and other Airflow parameters in a Secrets Vault. See https://github.com/oracle-quickstart/oci-airflow#celery-for-parallelized-execution"
required: true
visible: ${airflow_options}
enable_instance_principals:
type: boolean
title: "Enable Instance Principals"
description: "Click to enable Instance Principals, which will create a dynamic group allowing all instances created with this stack to manage resources in the target compartment. This can be used instead of deploying API keys to each instance."
default: false
required: true
visible: ${airflow_options}
airflow_database:
type: enum
enum:
- "mysql-local"
- "mysql-oci"
title: "Airflow Metadata Database"
description: "Choose a database to use for Airflow Metadata. MySQL will download and install community edition to the Airflow Master for mysql-local. Alternatively mysql-oci will provision and use MySQL as a service - ensure when using this option the MySQL service is available in your target region."
default: "mysql-local"
required: "true"
visible: ${airflow_options}
mysql_shape:
type: enum
enum:
- "VM.Standard.E2.1"
- "VM.Standard.E2.2"
- "VM.Standard.E2.3"
- "VM.Standard.E2.4"
title: "OCI MySQL instance shape"
description: "Shape of the OCI MySQL intance"
default: "VM.Standard.E2.2"
visible:
and:
- ${airflow_options}
- not:
- eq:
- ${airflow_database}
- "mysql-local"
mysqladmin_username:
type: string
title: "OCI MySQL username"
description: "Enter a username for the MySQL database user"
default: "mysqladmin"
visible:
and:
- ${airflow_options}
- not:
- eq:
- ${airflow_database}
- "mysql-local"
mysqladmin_password:
type: password
title: "OCI MySQL password"
description: "The password for the administrative user. The password must be between 8 and 32 characters long, and must contain at least 1 numeric character, 1 lowercase character, 1 uppercase character, and 1 special (nonalphanumeric) character."
visible:
and:
- ${airflow_options}
- not:
- eq:
- ${airflow_database}
- "mysql-local"
oci_mysql_ip:
type: string
title: "OCI MySQL IP"
description: "Private IP Address for the OCI MySQL server. The default uses the default VCN configuration when creating a public subnet, if using a custom VCN or changing the VCN CIDR you will need to adjust this accordingly or it will fail."
visible:
and:
- ${airflow_options}
- not:
- eq:
- ${airflow_database}
- "mysql-local"
enable_mysql_backups:
type: boolean
title: "Enable MySQL backups"
description: "Enable MySQL backups for OCI MySQL database"
default: false
visible:
and:
- ${airflow_options}
- not:
- eq:
- ${airflow_database}
- "mysql-local"
airflow_options:
type: boolean
title: "Airflow Advanced Customization"
description: "Click to enable advanced customization of Airflow installation options, including which hooks are installed, and what executor to use."
default: false
required: true
all:
type: boolean
title: "all"
default: "false"
all_dbs:
type: boolean
title: "all_dbs"
default: "false"
async:
type: boolean
title: "async"
default: "false"
aws:
type: boolean
title: "aws"
default: "false"
azure:
type: boolean
title: "azure"
default: "false"
celery:
type: boolean
title: "celery"
default: "false"
cloudant:
type: boolean
title: "cloudant"
default: "false"
crypto:
type: boolean
title: "crypto"
default: "false"
devel:
type: boolean
title: "devel"
default: "false"
devel_hadoop:
type: boolean
title: "devel_hadoop"
default: "false"
druid:
type: boolean
title: "druid"
default: "false"
gcp:
type: boolean
title: "gcp"
default: "false"
github_enterprise:
type: boolean
title: "github_enterprise"
default: "false"
google_auth:
type: boolean
title: "google_auth"
default: "false"
hashicorp:
type: boolean
title: "hashicorp"
default: "false"
hdfs:
type: boolean
title: "hdfs"
default: "false"
hive:
type: boolean
title: "hive"
default: "false"
jdbc:
type: boolean
title: "jdbc"
default: "false"
kerberos:
type: boolean
title: "kerberos"
default: "false"
kubernetes:
type: boolean
title: "kubernetes"
default: "false"
ldap:
type: boolean
title: "ldap"
default: "false"
mssql:
type: boolean
title: "mssql"
default: "false"
mysql:
type: boolean
title: "mysql"
default: "true"
oracle:
type: boolean
title: "oracle"
default: "true"
password:
type: boolean
title: "password"
default: "false"
postgres:
type: boolean
title: "postgres"
default: "false"
presto:
type: boolean
title: "presto"
default: "false"
qds:
type: boolean
title: "qds"
default: "false"
rabbitmq:
type: boolean
title: "rabbitmq"
default: "false"
redis:
type: boolean
title: "redis"
default: "false"
samba:
type: boolean
title: "samba"
default: "false"
slack:
type: boolean
title: "slack"
default: "false"
ssh:
type: boolean
title: "ssh"
default: "true"
vertica:
type: boolean
title: "vertica"
default: "false"