-
Notifications
You must be signed in to change notification settings - Fork 12
/
Copy pathschema.yaml
executable file
·277 lines (243 loc) · 7.24 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
## 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 six-node deployment of a Redis cluster on Oracle Cloud Infrastructure Compute instances"
stackDescription: "Deploy six-node deployment of a Redis cluster on Oracle Cloud Infrastructure Compute instances to take advantage of in-memory data structure store that is used as a database, cache, and message broker."
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
- show_advanced
- title: Networking Optional Configuration
visible:
and:
- show_advanced
variables:
- VCN-CIDR
- Subnet-CIDR
- redis-prefix
- title: Redis/Sentinel Optional Configuration
visible:
and:
- show_advanced
variables:
- redis_version
- redis_port1
- redis_port2
- sentinel_port
- title: Compute Optional Configuration
visible:
and:
- show_advanced
variables:
- ssh_public_key
- instance_shape
- instance_flex_shape_ocpus
- instance_flex_shape_memory
- instance_os
- linux_os_version
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: "Choose compartment where you want to create the solution resources"
region:
type: oci:identity:region:name
required: true
visibile: true
title: "Region"
description: "Choose 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"
description: "Choose availability Domain to be chosen for deploy of Redis compute instances."
dependsOn:
compartmentId: ${compartment_ocid}
# 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])$"
title: "VCN CIDR"
description: "Choose VCN's CIDR block where Redis compute instances will be deployed."
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])$"
title: "Subnet CIDR"
description: "Choose Public Subnet's CIDR where Redis compute instances will be deployed."
redis-prefix:
type: string
required: false
default: "redis"
title: "Redis prefix"
description: "Name the prefix for all OCI resources (compute, VCN, subnet) that will be created."
redis_version:
type: enum
required: false
default: "5.0.7"
title: "Redis version"
description: "Choose Redis version to be deployed."
enum:
- "5.0.7"
redis_port1:
type: number
required: false
minimum: 0
maximum: 65535
multipleOf: 1
default: 6379
title: "Redis client port"
description: "Choose Redis normal client communication port (we recommend default 6379)."
redis_port2:
type: number
required: false
minimum: 0
maximum: 65535
multipleOf: 1
default: 16379
title: "Redis cluster bus port"
description: "Choose Redis cluster bus port must be reachable from all the other cluster nodes. (we recommend default 16379)."
sentinel_port:
type: number
required: false
minimum: 0
maximum: 65535
multipleOf: 1
default: 26379
title: "Redis Sentinel port"
description: "Choose Redis Sentinel port. (we recommend default 26379)."
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_shape:
type: oci:core:instanceshape:name
required: false
default: "VM.Standard.E3.Flex"
title: "Instance shape for Redis compute instances"
description: "Choose the shape of the VM used for Redis compute instances."
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
default: "Oracle Linux"
title: "Operating System"
description: "Choose Operating system for Redis compute instances."
enum:
- "Oracle Linux"
linux_os_version:
type: enum
required: false
default: "7.9"
title: "OS version"
description: "Choose Operating system version for Redis compute instances."
enum:
- "7.9"
- "7.8"
release:
type: string
required: false
visible: false
title: "Reference Architecture Release (OCI Architecture Center)"
outputs:
redis1_public_ip_address:
title: "Redis1 Server Public IP"
displayText: "Redis1 Server Public IP"
type: copyableString
visible: true
redis2_public_ip_address:
title: "Redis2 Server Public IP"
displayText: "Redis2 Server Public IP"
type: copyableString
visible: true
redis3_public_ip_address:
title: "Redis3 Server Public IP"
displayText: "Redis3 Server Public IP"
type: copyableString
visible: true
redis4_public_ip_address:
title: "Redis4 Server Public IP"
displayText: "Redis4 Server Public IP"
type: copyableString
visible: true
redis5_public_ip_address:
title: "Redis5 Server Public IP"
displayText: "Redis5 Server Public IP"
type: copyableString
visible: true
redis6_public_ip_address:
title: "Redis6 Server Public IP"
displayText: "Redis6 Server Public IP"
type: copyableString
visible: true
redis_password:
title: "Redis auth password"
displayText: "Redis auth password"
type: copyableString
visible: true
generated_ssh_private_key:
title: "Generated SSH Private Key"
displayText: "Generated SSH Private Key"
type: string
visible: true