-
Notifications
You must be signed in to change notification settings - Fork 0
/
variables.tf
144 lines (129 loc) · 4.29 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
variable "vsphere_datacenter" {
type = string
description = "Name of the datacenter in vSphere interface"
}
variable "sap_hana_database_datastore" {
type = string
description = "Name of the datastore to store SAP HANA databases virtual machines"
}
variable "vsphere_compute_cluster" {
type = string
description = <<EOH
Name of the vSphere cluster
Example: Cluster1
EOH
}
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" = "hana1",
"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" = "hana2",
"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 machine 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",
"hosts" = ["192.168.2.1", "192.168.2.2"],
"sap_hana_databases" = ["hana1"],
"mandatory" = true
},
{
"group_name" = "hana-secondary",
"hosts" = ["192.168.2.2", "192.168.2.3"],
"sap_hana_databases" = ["hana2"],
"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"
}