This repository has been archived by the owner on May 9, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 6
/
schema.yaml
executable file
·253 lines (226 loc) · 6.18 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
## Copyright © 2020, 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 typical three-node deployment of CockroachDB on Oracle Cloud Infrastructure Compute instances"
stackDescription: "Deploy typical three-node deployment of CockroachDB on Oracle Cloud Infrastructure Compute instances."
schemaVersion: 1.1.0
version: "20190404"
locale: "en"
variableGroups:
- title: General Configuration
visible: false
variables:
- tenancy_ocid
- region
- release
- title: Required Configuration
visible: true
variables:
- compartment_ocid
- availablity_domain_name
- instance_count
- show_advanced
- title: Networking Optional Configuration
visible:
and:
- show_advanced
variables:
- VCN-CIDR
- Subnet-CIDR
- title: Compute Optional Configuration
visible:
and:
- show_advanced
variables:
- ssh_public_key
- instance_name
- instance_shape
- instance_flex_shape_ocpus
- instance_flex_shape_memory
- instance_os
- linux_os_version
- title: Load Balancer Optional Configuration
visible:
and:
- show_advanced
variables:
- lb_shape
- flex_lb_min_shape
- flex_lb_max_shape
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"
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."
availablity_domain_name:
type: oci:identity:availabilitydomain:name
required: true
visibile: true
title: "Availability Domain to be chosen"
description: "Choose Availability Domain where your infrastructure will be deployed."
dependsOn:
regionName: ${region}
compartmentId: ${compartment_ocid}
instance_count:
type: number
required: false
minimum: 1
maximum: 128
multipleOf: 1
default: 3
title: "Cockroach DB nodes count"
description: "Number of Cockroach DB nodes"
# Optional Configuration
VCN-CIDR:
type: string
required: false
default: "10.0.0.0/16"
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])$"
description: "VCN CIDR block where you want to create the solution resources."
Subnet-CIDR:
type: string
required: false
default: "10.0.2.0/24"
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])$"
description: "Subnet's CIDR block where you want to place your CockroachDB nodes."
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
instance_name:
type: string
required: false
default: "cockroach"
title: "CockroachDB node name"
description: "Choose the name for CockroachDB node."
instance_shape:
type: oci:core:instanceshape:name
required: false
default: "VM.Standard.E3.Flex"
description: "Shape of the VM used for CockroachDB nodes."
dependsOn:
compartmentId: ${compartment_ocid}
instance_flex_shape_ocpus:
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:
- instance_shape
- "VM.Standard.E3.Flex"
- eq:
- instance_shape
- "VM.Standard.E4.Flex"
instance_flex_shape_memory:
type: number
required: false
minimum: 1
maximum: 128
multipleOf: 1
default: 10
title: "Flex Shape Memory (GB)"
description: "Choose number GB for Flex Shape Memory."
visible:
and:
- or:
- eq:
- instance_shape
- "VM.Standard.E3.Flex"
- eq:
- instance_shape
- "VM.Standard.E4.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."
default: "7.9"
enum:
- "7.9"
lb_shape:
type: enum
title: "Load Balancer Shape"
description: "Load Balancer 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: "100"
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"
outputs:
loadbalancer_public_url:
title: "LoadBalancer URL"
displayText: "LoadBalancer URL"
type: copyableString
visible: true
generated_ssh_private_key:
title: "Generated SSH Private Key"
displayText: "Generated SSH Private Key"
type: string
visible: true