-
Notifications
You must be signed in to change notification settings - Fork 1
/
variables.tf
266 lines (239 loc) · 8.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
263
264
265
266
variable "vsphere_datacenter" {
type = string
description = "Name of the datacenter in vSphere interface"
}
variable "vsphere_compute_cluster" {
type = string
description = <<EOH
Name of the vSphere cluster
Example: Cluster1
EOH
}
variable "sap_application_server_datastore" {
type = string
description = "Name of the datastore to store SAP Application Servers virtual machines"
}
variable "sap_application_servers" {
type = list(any)
description = <<EOH
List of SAP Application Servers virtual machines wanted with these parameters (mandatory, even if empty).
Example:
[
{
"name" = "sidscs",
"model" = "",
"cpus" = "4",
"cpus_per_socket" = "4",
"memory" = "4096",
"custom_disks" = false,
"disks" = [],
"networks" = ["VLAN20"],
"guest_id" = "sles15_64Guest",
"vsphere_content_library" = "",
"template" = "",
"iso_datastore" = "",
"iso_path" = "",
"vapp_options" = {}
},
{
"name" = "sidpas",
"model" = "M",
"cpus" = "",
"cpus_per_socket" = 4,
"memory" = "",
"custom_disks" = true,
"disks" = [
{ "id" : 0, "label" : "disk0", "size" : "128", "thin_provisioned" : true, "eagerly_scrub": false, "datastore_name" : "vsanDatastore", "datastore_policy" : "vSAN Default Storage Policy" },
{ "id" : 1, "label" : "disk1", "size" : "128", "thin_provisioned" : true, "eagerly_scrub": false, "datastore_name" : "vsanDatastore", "datastore_policy" : "vSAN Default Storage Policy" },
{ "id" : 2, "label" : "disk2", "size" : "64", "thin_provisioned" : true, "eagerly_scrub": false, "datastore_name" : "vsanDatastore", "datastore_policy" : "vSAN Default Storage Policy" }
],
"networks" = ["VLAN20"],
"guest_id" = "sles15_64Guest",
"vsphere_content_library" = "",
"template" = "",
"iso_datastore" = "",
"iso_path" = "",
"vapp_options" = {}
}
]
EOH
}
variable "sap_application_server_folder" {
type = string
default = ""
description = "Name of the folder to store the SAP Application Server virtual machines"
}
variable "sap_application_server_anti_affinity_rule_enable" {
type = bool
default = false
description = "Avoid running SAP Application Servers virtual machines on the same ESXi host"
}
variable "sap_application_server_anti_affinity_rule_name" {
type = string
default = "sap-application-server-anti-affinity-rule"
description = "Name for the anti-affinity rule"
}
variable "sap_application_server_anti_affinity_rule_mandatory" {
type = bool
default = false
description = "When this value is true, prevents any virtual machine operations that may violate this rule"
}
variable "sap_application_server_hardware_version" {
type = number
default = 19
description = <<EOH
Hardware compatibility between SAP Application Server virtual machines and ESXi host. By default, the newest version.
More information available on [VMware](https://kb.vmware.com/s/article/2007240)
EOH
}
variable "sap_application_server_wait_for_guest_net_timeout" {
type = number
default = 0
description = "The amount of time, in minutes, to wait for an available guest IP address on the SAP Application Server virtual machine."
}
variable "sap_application_server_wait_for_guest_ip_timeout" {
type = number
default = 0
description = "The amount of time, in minutes, to wait for an available guest IP address on the SAP Application Server virtual machine."
}
variable "sap_application_server_hosts_distribution" {
type = list(any)
default = []
description = <<EOH
Allow to set which SAP Application Server virtual machines have to run on a specific ESXi host.
When mandatory is true, prevents any virtual machine operations that may violate this rule.
Example:
[
{
"group_name" = "scs-ts1",
"hosts" = ["192.168.2.1", "192.168.2.2"],
"sap_application_servers" = ["sidscs"],
"mandatory" = true
},
{
"group_name" = "pas-ts1",
"hosts" = ["192.168.2.2"],
"sap_application_servers" = ["sidpas"],
"mandatory" = false
}
]
EOH
}
variable "sap_hana_database_datastore" {
type = string
description = "Name of the datastore to store SAP HANA databases virtual machines"
}
variable "sap_hana_databases" {
type = list(any)
description = <<EOH
List of SAP HANA databases virtual machines wanted with these parameters (mandatory, even if empty).
Example:
[
{
"name" = "sidhana1",
"model" = "M",
"cpus" = "",
"cpus_per_socket" = "48",
"memory" = "",
"custom_disks" = false,
"scsi_controller_count" = "",
"disks" = [],
"networks" = ["VLAN20"],
"guest_id" = "sles15_64Guest",
"vsphere_content_library" = "",
"template" = "",
"iso_datastore" = "",
"iso_path" = "",
"vapp_options" = {}
},
{
"name" = "sidhana2",
"model" = "S",
"cpus" = "",
"cpus_per_socket" = "24",
"memory" = "",
"custom_disks" = false,
"scsi_controller_count" = "",
"disks" = [],
"networks" = ["VLAN20"],
"guest_id" = "sles15_64Guest",
"vsphere_content_library" = "",
"template" = "",
"iso_datastore" = "",
"iso_path" = "",
"vapp_options" = {}
}
]
EOH
}
variable "sap_hana_database_folder" {
type = string
default = ""
description = "Name of the folder to store the SAP HANA database virtual machines"
}
variable "sap_hana_database_anti_affinity_rule_enable" {
type = bool
default = false
description = "Avoid running SAP HANA databases virtual machines on the same ESXi host"
}
variable "sap_hana_database_anti_affinity_rule_name" {
type = string
default = "sap-hana-database-anti-affinity-rule"
description = "Name for the anti-affinity rule"
}
variable "sap_hana_database_anti_affinity_rule_mandatory" {
type = bool
default = false
description = "When this value is true, prevents any virtual machine operations that may violate this rule"
}
variable "sap_hana_database_hardware_version" {
type = number
default = 19
description = <<EOH
Hardware compatibility between SAP HANA database virtual machines and ESXi host. By default, the newest version.
More information available on [VMware](https://kb.vmware.com/s/article/2007240)
EOH
}
variable "sap_hana_database_wait_for_guest_net_timeout" {
type = number
default = 0
description = "The amount of time, in minutes, to wait for an available guest IP address on the SAP HANA database virtual machine."
}
variable "sap_hana_database_wait_for_guest_ip_timeout" {
type = number
default = 0
description = "The amount of time, in minutes, to wait for an available guest IP address on the SAP HANA database virtual machine."
}
variable "sap_hana_database_hosts_distribution" {
type = list(any)
default = []
description = <<EOH
Allow to set which SAP HANA database virtual machines have to run on a specific ESXi host.
When mandatory is true, prevents any virtual machine operations that may violate this rule.
Example:
[
{
"group_name" = "hana-primary-ts1",
"hosts" = ["192.168.2.1", "192.168.2.2"],
"sap_hana_databases" = ["sidhana1"],
"mandatory" = true
},
{
"group_name" = "hana-secondary-ts1",
"hosts" = ["192.168.2.2", "192.168.2.3"],
"sap_hana_databases" = ["sidhana2"],
"mandatory" = false
}
]
EOH
}
variable "sap_hana_database_thick_datastore_policy" {
type = string
default = ""
description = "This Storage Policy must be a Thick provisioning"
}
variable "sap_hana_database_thin_datastore_policy" {
type = string
default = ""
description = "This Storage Policy must be a Thin provisioning"
}