-
Notifications
You must be signed in to change notification settings - Fork 8
/
Copy pathvariables.tf
313 lines (237 loc) · 5.49 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
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
## Copyright © 2019, Oracle and/or its affiliates.
## All rights reserved. The Universal Permissive License (UPL), Version 1.0 https://oss.oracle.com/licenses/upl/#_How_should_I
variable "tenancy_ocid" {
}
variable "user_ocid" {
}
variable "fingerprint" {
}
variable "private_key_path" {
}
variable "region" {
}
variable "ssh_public_key" {
}
variable "ssh_private_key" {
}
variable "compartment_ocid" {
}
variable "AD" {
description = "Pick up the AD you want to deploy"
default = "1"
}
# VCN variables
variable "vcn_cidr" {
default = "10.0.0.0/16"
}
variable "vcn_name_label" {
description = "VCN display name"
default = "sap-vcn"
}
variable "vcn_dns_label" {
description = "VCN DNS label"
default = "sap"
}
# Bastion Public Subnets Variables
variable "bastion_subnet_cidr_block" {
default = "10.0.1.0/24"
}
variable "bastion_subnet_label" {
default = "bastion"
}
# SAP Web Dispatcher Public Subnet
variable "sap_web_subnet_cidr_block" {
default = "10.0.5.0/24"
}
variable "sap_web_subnet_label" {
default = "sapwebnet"
}
# SAP Router Private Subnet
variable "sap_route_subnet_cidr_block" {
default = "10.0.6.0/24"
}
variable "sap_route_subnet_label" {
default = "saprouternet"
}
# SAP Application Private Subnet
variable "sap_subnet_cidr_block" {
default = "10.0.2.0/24"
}
variable "sap_subnet_label" {
default = "sapnet"
}
# Database Private Subnet
variable "database_subnet_cidr_block" {
default = "10.0.3.0/24"
}
variable "database_subnet_label" {
default = "dbnet"
}
# FSS Private Subnet
variable "fss_subnet_cidr_block" {
default = "10.0.4.0/24"
}
variable "fss_subnet_label" {
default = "fssnet"
}
# Load Balancer Private Subnet
variable "lb_subnet_cidr_block" {
default = "10.0.7.0/24"
}
variable "lb_subnet_label" {
default = "lbsubnet"
}
# Load Balancer Shape
variable "lb_shape" {
default = "100Mbps"
}
variable "lb_display_name" {
default = "SAP_Load_Balancer"
}
variable "lb_backend_set_name" {
default = "web_dispatcher_backend"
}
variable "lb_backend_listener_name" {
default = "lb_listener_sap"
}
# OS Images
variable "instance_os" {
description = "Operating system for compute instances"
default = "Oracle Linux"
}
variable "linux_os_version" {
description = "Operating system version for all Linux instances"
default = "7.6"
}
variable "WinInstanceOS" {
description = "Operating system for compute instances"
default = "Windows"
}
variable "WinInstanceOSVersion" {
description = "Operating system version for all windows instances"
default = "Server 2012 R2 Standard"
}
# Bastion Linux Instance Variables
variable "bastion_linux_display_name" {
default = "Bastion-Linux"
}
variable "bastion_linux_hostname" {
default = "bastion-lnx"
}
variable "bastion_linux_instance_shape" {
default = "VM.Standard2.1"
}
variable "bastion_linux_boot_volume_size" {
description = "boot volume size in GB"
default = "50"
}
# SAP Router Instance Variables
variable "sap_router_display_name" {
default = "SAP-Router"
}
variable "sap_router_hostname" {
default = "sap-router"
}
variable "sap_router_instance_shape" {
default = "VM.Standard2.1"
}
variable "sap_router_boot_volume_size" {
description = "boot volume size in GB"
default = "300"
}
# SAP Web Dispatcher Variables
variable "sap_web_dis_display_name" {
default = "SAP-Web-Dispatcher"
}
variable "sap_web_dis_hostname" {
default = "sap-web-dis"
}
variable "sap_web_dis_instance_shape" {
default = "VM.Standard2.1"
}
variable "sap_web_dis_boot_volume_size" {
description = "boot volume size in GB"
default = "300"
}
# SAP Linux Instance Variables
variable "sap_linux_display_name" {
default = "SAP-Linux-App-Tier"
}
variable "sap_linux_hostname" {
default = "sap-lnx-app"
}
variable "sap_linux_instance_shape" {
default = "VM.Standard2.4"
}
variable "sap_linux_boot_volume_size" {
description = "boot volume size in GB"
default = "500"
}
# DB Linux Instance Variables
variable "db_linux_display_name" {
default = "DB-Linux-App-Tier"
}
variable "db_linux_hostname" {
default = "sapdb"
}
variable "db_linux_instance_shape" {
default = "VM.DenseIO2.8"
}
variable "db_linux_boot_volume_size" {
description = "boot volume size in GB"
default = "500"
}
# FSS Variables
variable "fss_sap_file_system_display_name" {
default = "sap_fss_mnt"
}
variable "fss_sap_software_file_system_display_name" {
default = "sap_fss_software"
}
variable "fss_sap_trans_file_system_display_name" {
default = "sap_fss_trans"
}
variable "fss_sap_mount_target_display_name" {
default = "sap_fss_mount_target"
}
variable "fss_sap_export_set_name" {
default = "export set for mount target"
}
variable "export_path_fss_sap_trans" {
default = "/trans"
}
variable "export_path_fss_sap" {
default = "/sapmnt"
}
variable "export_path_fss_sap_software" {
default = "/software"
}
variable "max_byte" {
default = 500843202333
}
variable "max_files" {
default = 223442
}
locals {
sap_fss_mount_target_ip_address = data.oci_core_private_ips.ip_sap_fss_mount_target.private_ips[0]["ip_address"]
}
# SAP App Block and Swap Volumes
variable "sap_app_block_display_name" {
default = "sap_app_bv"
}
variable "sap_app_bv_size" {
default = "150"
}
variable "sap_app_block_swap_display_name" {
default = "sap_app_swap_bv"
}
variable "sap_app_swap_bv_size" {
default = "96"
}
# SAP DB Block and Swap Volumes
variable "sap_db_block_swap_display_name" {
default = "sap_db_swap_bv"
}
variable "sap_swap_db_bv_size" {
default = "96"
}