This repository has been archived by the owner on May 16, 2024. It is now read-only.
generated from oracle-devrel/repo-template
-
Notifications
You must be signed in to change notification settings - Fork 9
/
schema.yaml
508 lines (452 loc) · 13.9 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
## Copyright (c) 2022 Oracle and/or its affiliates.
## All rights reserved. The Universal Permissive License (UPL), Version 1.0 as shown at http://oss.oracle.com/licenses/upl
title: "Create Apache Tomcat on Arm-based Ampere A1 compute connected to an autonomous database in Oracle Cloud Infrastructure,"
stackDescription: "Deploy Apache Tomcat on Arm-based Ampere A1 compute connected to an autonomous database in Oracle Cloud Infrastructure."
schemaVersion: 1.1.0
version: "20190404"
locale: "en"
variableGroups:
- title: General Configuration
visible: false
variables:
- tenancy_ocid
- region
- release
- oracle_instant_client_version
- oracle_instant_client_version_short
- availability_domain_number
- title: Required Configuration
visible: true
variables:
- compartment_ocid
- availability_domain_name
- atp_password
- atp_private_endpoint
- numberOfNodes
- tomcat_version
- free_tier
- use_bastion_service
- show_advanced
- title: Load Balancer Configuration
visible:
and:
- show_advanced
variables:
- lb_shape
- flex_lb_min_shape
- flex_lb_max_shape
- title: Compute Instances Configuration
visible:
and:
- show_advanced
variables:
- ssh_public_key
- InstanceShape
- InstanceFlexShapeOCPUS
- InstanceFlexShapeMemory
- instance_os
- linux_os_version
- title: Networking Optional Configuration
visible:
and:
- show_advanced
variables:
- tomcat_atp_vcn_cidr_block
- tomcat_atp_vcn_display_name
- tomcat_atp_vcn_subnet_lb_cidr_block
- tomcat_atp_vcn_subnet_lb_display_name
- tomcat_atp_vcn_subnet_bastion_cidr_block
- tomcat_atp_vcn_subnet_bastion_display_name
- tomcat_atp_vcn_subnet_fss_cidr_block
- tomcat_atp_vcn_subnet_fss_display_name
- tomcat_atp_vcn_subnet_app_cidr_block
- tomcat_atp_vcn_subnet_app_display_name
- tomcat_atp_vcn_subnet_db_cidr_block
- tomcat_atp_vcn_subnet_db_display_name
- title: ATP Optional Configuration
visible:
and:
- show_advanced
variables:
- atp_private_endpoint
- atp_cpu_core_count
- atp_data_storage_size_in_tbs
- atp_db_name
- atp_db_version
- atp_defined_tags_value
- atp_name
- atp_username
- atp_freeform_tags
- atp_license_model
- atp_tde_wallet_zip_file
- atp_private_endpoint_label
variables:
show_advanced:
type: boolean
title: "Show advanced options?"
description: "Shows advanced options."
visible: true
default: false
compartment_ocid:
type: oci:identity:compartment:id
required: true
visibile: true
title: Compartment
description: "Compartment where you want to create the solution resources"
availability_domain_name:
type: oci:identity:availabilitydomain:name
required: true
visibile: true
title: "Availability Domain to be chosen"
description: "Availability Domain to be chosen"
dependsOn:
compartmentId: ${compartment_ocid}
region:
type: oci:identity:region:name
required: true
visibile: true
title: Region
description: "Region where you want to deploy the resources defined by this stack."
free_tier:
type: boolean
visibile: true
default: false
required: false
title: "AlwaysFree/FreeTier"
description: "Check the box to deploy with Free Tier resources."
atp_password:
type: password
required: true
visibile: true
title: "ATP Database Password for ADMIN user."
description: "The password must start with a letter, and it can contain letters (uppercase, lowercase), numbers, and the symbols _ $ # ($ symbol cannot be the last character)."
minLength: 12
maxLength: 30
pattern: ^[A-Za-z][A-Za-z0-9_#\$]+[A-Za-z0-9_#]$
numberOfNodes:
type: number
required: false
minimum: 2
maximum: 128
multipleOf: 1
default: 2
title: "How many Tomcat Nodes?"
description: "Choose number of Tomcat Nodes to be deployed."
tomcat_version:
type: enum
title: "Tomcat Version"
description: "Choose Tomcat Version"
default: "9.0.45"
required: false
enum:
- "9.0.45"
- "8.5.65"
- "7.0.108"
use_bastion_service:
type: boolean
default: false
required: false
title: "Use OCI Bastion Service"
description: "Check the box to use OCI Bastion Service instead of Bastion Host VM."
visible: true
# Optional Configuration
ssh_public_key:
type: oci:core:ssh:publickey
title: "Public SSH Key"
description: "Choose public SSH Key to be uploaded into compute instances."
required: false
lb_shape:
type: enum
title: "LoadBalancer Shape"
description: "Choose LoadBalancer Shape"
default: "flexible"
required: false
enum:
- "flexible"
- "100Mbps"
- "10Mbps"
- "10Mbps-Micro"
- "400Mbps"
- "8000Mbps"
flex_lb_min_shape:
type: enum
required: false
default: "10"
title: "LB Flex Min Shape"
description: "Choose Minimum Shape for Flex Load Balancer."
enum:
- "10"
- "100"
- "1000"
- "400"
- "8000"
visible:
and:
- eq:
- lb_shape
- "flexible"
flex_lb_max_shape:
type: enum
required: false
default: "10"
title: "LB Flex Max Shape"
description: "Choose Maximum Shape for Flex Load Balancer."
enum:
- "10"
- "100"
- "1000"
- "400"
- "8000"
visible:
and:
- eq:
- lb_shape
- "flexible"
tomcat_atp_vcn_cidr_block:
type: string
required: false
pattern: "^(25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9]?[0-9]).(25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9]?[0-9]).(25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9]?[0-9]).(25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9]?[0-9])\\/(3[0-2]|[1-2]?[0-9])$"
title: "VCN CIDR Block"
description: "Choose CIDR block for your VCN."
tomcat_atp_vcn_display_name:
type: string
required: false
title: "VCN Display Name"
description: "Choose Display Name for your VCN."
default: "tomcat_atp_vcn"
tomcat_atp_vcn_subnet_lb_cidr_block:
type: string
required: false
pattern: "^(25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9]?[0-9]).(25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9]?[0-9]).(25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9]?[0-9]).(25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9]?[0-9])\\/(3[0-2]|[1-2]?[0-9])$"
title: "Load Balancer Public Subnet CIDR Block"
description: "Choose CIDR block for your Load Balancer Public Subnet."
tomcat_atp_vcn_subnet_lb_display_name:
type: string
required: false
title: "Load Balancer Public Subnet Display Name"
description: "Choose Display Name for your Load Balancer Public Subnet."
default: "tomcat_atp_vcn_subnet_lb"
tomcat_atp_vcn_subnet_fss_cidr_block:
type: string
required: false
pattern: "^(25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9]?[0-9]).(25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9]?[0-9]).(25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9]?[0-9]).(25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9]?[0-9])\\/(3[0-2]|[1-2]?[0-9])$"
title: "FSS Subnet CIDR Block"
description: "Choose CIDR block for your FSS Subnet."
tomcat_atp_vcn_subnet_fss_display_name:
type: string
required: false
title: "FSS Subnet Display Name"
description: "Choose Display Name for your FSS Subnet."
default: "tomcat_atp_vcn_subnet_fss"
tomcat_atp_vcn_subnet_bastion_cidr_block:
type: string
required: false
pattern: "^(25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9]?[0-9]).(25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9]?[0-9]).(25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9]?[0-9]).(25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9]?[0-9])\\/(3[0-2]|[1-2]?[0-9])$"
title: "Bastion Host Public Subnet CIDR Block"
description: "Choose CIDR block for your Bastion Host Public Subnet."
tomcat_atp_vcn_subnet_bastion_display_name:
type: string
required: false
title: "Bastion Host Public Subnet Display Name"
description: "Choose Display Name for your Bastion Host Public Subnet."
default: "tomcat_atp_vcn_subnet_bastion"
tomcat_atp_vcn_subnet_app_cidr_block:
type: string
required: false
pattern: "^(25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9]?[0-9]).(25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9]?[0-9]).(25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9]?[0-9]).(25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9]?[0-9])\\/(3[0-2]|[1-2]?[0-9])$"
title: "Tomcat Servers Public Subnet CIDR Block"
description: "Choose CIDR block for your Tomcat Servers Public Subnet."
tomcat_atp_vcn_subnet_app_display_name:
type: string
required: false
title: "Tomcat Servers Public Subnet Display Name"
description: "Choose Display Name for your Tomcat Servers Public Subnet."
default: "tomcat_atp_vcn_subnet_app"
tomcat_atp_vcn_subnet_db_cidr_block:
type: string
required: false
pattern: "^(25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9]?[0-9]).(25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9]?[0-9]).(25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9]?[0-9]).(25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9]?[0-9])\\/(3[0-2]|[1-2]?[0-9])$"
title: "ATP Private Subnet CIDR Block"
description: "Choose CIDR block for your ATP Private Subnet."
visible: atp_private_endpoint
tomcat_atp_vcn_subnet_db_display_name:
type: string
required: false
title: "ATP Private Subnet Display Name"
description: "Choose Display Name for your ATP Private Subnet."
default: "tomcat_atp_vcn_subnet_db"
visible: atp_private_endpoint
InstanceShape:
type: oci:core:instanceshape:name
required: false
title: "Instance Shape"
description: "A shape is a template that determines the number of CPUs, amount of memory, and other resources allocated to a newly created instance."
default: "VM.Standard.A1.Flex"
dependsOn:
compartmentId: ${compartment_ocid}
InstanceFlexShapeOCPUS:
type: number
required: false
minimum: 1
maximum: 128
multipleOf: 1
default: 1
title: "Flex Shape OCPUs"
description: "Choose number of OCPUs for Flex Shape."
visible:
and:
- or:
- eq:
- InstanceShape
- "VM.Standard.E3.Flex"
- eq:
- InstanceShape
- "VM.Standard.E4.Flex"
- eq:
- InstanceShape
- "VM.Standard.A1.Flex"
- eq:
- InstanceShape
- "VM.Optimized3.Flex"
InstanceFlexShapeMemory:
type: number
required: false
minimum: 1
maximum: 128
multipleOf: 1
default: 6
title: "Flex Shape Memory (GB)"
description: "Choose number GB for Flex Shape Memory."
visible:
and:
- or:
- eq:
- InstanceShape
- "VM.Standard.E3.Flex"
- eq:
- InstanceShape
- "VM.Standard.E4.Flex"
- eq:
- InstanceShape
- "VM.Standard.A1.Flex"
- eq:
- InstanceShape
- "VM.Optimized3.Flex"
instance_os:
type: enum
required: false
title: "Instance OS"
description: "An Operating System that determines the operating system for the instance."
default: "Oracle Linux"
enum:
- "Oracle Linux"
linux_os_version:
type: enum
required: false
title: "Instance OS version"
description: "An Operating System version that determines the operating system version for the instance."
enum:
- "9"
- "8"
atp_private_endpoint:
type: boolean
default: true
required: true
title: "ATP Database Private Endpoint"
description: "Check the box to deploy ATP Database with Private Endpoint."
visible:
and:
- eq:
- free_tier
- false
atp_cpu_core_count:
type: number
required: false
minimum: 1
maximum: 128
multipleOf: 1
default: 1
title: "ATP Database CPU Core Count"
description: "Choose how many CPU cores will be used for ATP Instance."
atp_data_storage_size_in_tbs:
type: number
required: false
minimum: 1
maximum: 128
multipleOf: 1
default: 1
title: "ATP Database Data Storage Size"
description: "Choose ATP Database Data Storage Size in terabytes."
atp_db_name:
type: string
required: false
title: "ATP Database DB Name"
description: "Choose ATP Database name."
atp_db_version:
type: enum
required: false
default: "19c"
title: "ATP Database Version"
description: "Choose ATP Database version."
enum:
- "19c"
atp_name:
type: string
required: false
title: "ATP Database Display Name"
description: "Choose ATP Database display name."
atp_username:
type: string
required: false
title: "ATP Database App Username"
description: "Choose ATP Database application's username."
atp_license_model:
type: enum
required: false
default: "LICENSE_INCLUDED"
title: "ATP Database License Model"
description: "Choose ATP Database license model."
enum:
- "LICENSE_INCLUDED"
- "BRING_YOUR_OWN_LICENSE"
atp_tde_wallet_zip_file:
type: string
required: false
visible: false
default: "tde_wallet_ATPdb1.zip"
description: "ATP Database TDE Wallet ZIP File"
atp_private_endpoint_label:
type: string
required: false
visible:
and:
- eq:
- ATP_private_endpoint
- true
- eq:
- free_tier
- false
default: "ATPPrivateEndpoint"
title: "ATP Database Private Endpoint Label"
description: "Choose ATP Database Private Endpoint label."
atp_freeform_tags:
type: string
required: false
title: "ATP Database Freeform Tags"
description: "Choose ATP Database Freeform Tags."
atp_defined_tags_value:
type: string
required: false
title: "ATP Database Defined Tags"
description: "Choose ATP Database Defined Tags."
outputs:
tomcat_home_URL:
title: "Tomcat Home URL"
displayText: "Tomcat Home URL"
type: copyableString
visible: true
tomcat_demo_app_URL:
title: "Tomcat Demo APP (todoapp) URL"
displayText: "Tomcat Demo APP (todoapp) URL"
type: copyableString
visible: true