forked from oracle-quickstart/oci-httpd
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathvariables.tf
262 lines (211 loc) · 6 KB
/
variables.tf
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
###############################################
# Required variables
###############################################
variable "region" {
description = "Region where Compartment OCID resides."
default = ""
}
variable "compartment_ocid" {
description = "Compartment OCID when VCN will be created."
default = ""
}
variable "vcn_cidr" {
description = "Define CIDR for the vcn"
default = ""
}
variable "num_http_server" {
description = "Number of HTTP server to be deployed"
default = 3
}
variable "bastion_ad" {
default = ""
}
variable "bastion_subnet_id" {
description = "Subnet on which bastion will be created"
default = ""
}
variable "bastion_hostname" {
description = "Display Name for Bastion"
default = ""
}
variable "bastion_user" {
description = "Login user name for Bastion"
default = "opc"
}
variable "bastion_public_key_file" {
description = "Public key file for bastion login"
default = ""
}
variable "bastion_private_key_file" {
description = "Private key file for bastion login"
default = ""
}
variable "bastion_image_id" {
description = "The OCID of an image for bastion to use."
default = ""
}
variable "bastion_shape" {
description = "Instance shape to use for bastion instances"
default = ""
}
variable "ssh_public_key_file" {
description = "Public SSH keys for the default user on the instance."
default = ""
}
variable "ssh_private_key_file" {
description = "Private SSH keys file path to login into the instance."
default = ""
}
variable "instance_ad1" {
description = "Availability domain for instance1."
default = ""
}
variable "instance_ad2" {
description = "Availability domain for instance2."
default = ""
}
variable "instance_ad3" {
description = "Availability domain for instance3."
default = ""
}
variable "instance_image_id" {
description = "The OCID of an image for slave instance to use."
default = ""
}
variable "instance_shape" {
description = "Instance shape to use for apache instances"
default = ""
}
variable "instance_subnet1_id" {
description = "Subnet1 prefix on which instances will be created"
default = ""
}
variable "instance_subnet2_id" {
description = "Subnet2 prefix on which instances will be created"
default = ""
}
variable "instance_subnet3_id" {
description = "Subnet3 prefix on which instances will be created"
default = ""
}
variable "instance_name" {
description = "Name prefix for instances"
default = ""
}
variable "instance_scripts" {
description = "Scripts to run on instances"
default = ""
}
variable "http_port" {
description = "http port for instances"
default = "80"
}
variable "enable_https" {
description = "Mention true/false to enable/disable https in the apache server respectively"
default = "true"
}
variable "https_port" {
description = "https port for instances"
default = "443"
}
variable "enable_lb_https" {
description = "Mention true/false to enable/disable https in the load balancer"
default = "false"
}
variable "apache_server_ca_certificate" {
description = "Mention ca_certificate for configuring backend apache server"
default = ""
}
variable "apache_server_public_certificate" {
description = "Mention public_certificate for configuring backend apache server"
default = ""
}
variable "apache_server_private_key" {
description = "Mention private_key for configuring backend apache server"
default = ""
}
variable "cn_name" {
description = "CN Name for the tls certificate configuration, e.g) www.example.com"
default = ""
}
variable "server_cnname" {
description = "Server CN Name for the tls certificate configuration when create_selfsigned_cert=true"
default = ""
}
variable "create_selfsigned_cert" {
description = "Mention true if self signed certificate to be created"
default = "false"
}
variable "host_address" {
description = "Host address for the http configuration, e.g) www.example.com"
default = ""
}
variable "loadbalancer_ca_certificate" {
description = "CA Certificate for loadbalancer"
default = ""
}
variable "loadbalancer_public_certificate" {
description = "Public Certificate for loadbalancer"
default = ""
}
variable "loadbalancer_private_key" {
description = "Private Key for loadbalancer"
default = ""
}
variable "loadbalancer_name" {
description = "Display Name for loadbalancer"
default = ""
}
variable "loadbalancer_shape" {
description = "Display Name for loadbalancer"
default = ""
}
variable "primary_loadbalancer_ad" {
description = "Availability Domain for primary loadbalancer"
default = ""
}
variable "primary_loadbalancer_subnet" {
description = "Subnet on which primary loadbalancer will be created"
default = ""
}
variable "primary_loadbalancer_name" {
description = "Display Name for primary loadbalancer"
default = ""
}
variable "standby_loadbalancer_ad" {
description = "Availability Domain for standby loadbalancer"
default = ""
}
variable "standby_loadbalancer_subnet" {
description = "Subnet on which standby loadbalancer will be created"
default = ""
}
variable "standby_loadbalancer_name" {
description = "Display Name for standby loadbalancer"
default = ""
}
variable "loadbalancer_instance_shape" {
description = "Instance shape for loadbalancer instances"
default = ""
}
variable "loadbalancer_instance_image_id" {
description = "The OCID of an image for loadbalancer instance to use."
default = ""
}
variable "lb_hostname1" {
description = "Hostname for loadbalancer instance1 to use in backendset"
default = ""
}
variable "lb_hostname2" {
description = "Hostname for loadbalancer instance2 to use in backendset"
default = ""
}
variable "lb_hostname3" {
description = "Hostname for loadbalancer instance3 to use in backendset"
default = ""
}
variable "subnet_ids" {
type = "list"
description = "Subnet IDs for the load balancer"
default = []
}