-
Notifications
You must be signed in to change notification settings - Fork 142
/
Copy pathvariables.tf
276 lines (218 loc) · 6.25 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
variable "allow_ips" {
description = "The ip addresses that will be allowed by the nsg"
default = ["0.0.0.0/0"]
}
variable "ansible_playbook_path" {
description = "Path from this module to the playbook"
default = "../../ansible/ha_pair_playbook.yml"
}
variable "az_domain_name" {
description = "Prefix to be used in the domain name"
}
variable "az_region" {
}
variable "az_resource_group" {
description = "Which Azure resource group to deploy the HANA setup into. i.e. <myResourceGroup>"
}
variable "bastion_username_windows" {
description = "The username for the bastion host"
default = "bastion_user"
}
variable "email_shine" {
description = "e-mail address for SHINE user"
default = "[email protected]"
}
variable "existing_nsg_name" {
description = "The name of the pre-existing nsg that you would like to use"
default = ""
}
variable "existing_nsg_rg" {
description = "The name of the pre-existing resource group that you would like to use"
default = ""
}
variable "install_cockpit" {
description = "Flag that determines whether to install Cockpit on the host"
default = false
}
variable "install_shine" {
description = "Flag that determines whether to install SHINE on the host"
default = false
}
variable "install_xsa" {
description = "Flag that determines whether to install XSA on the host"
default = false
}
variable "install_webide" {
description = "Flag that determines whether to install WebIDE on the host"
default = false
}
variable "private_ip_address_hdb0" {
default = "10.0.0.6"
}
variable "private_ip_address_hdb1" {
default = "10.0.0.7"
}
variable "private_ip_address_iscsi" {
default = "10.0.0.17"
}
variable "private_ip_address_linux_bastion" {
default = "10.0.0.5"
}
variable "private_ip_address_lb_frontend" {
default = "10.0.0.13"
}
variable "private_ip_address_windows_bastion" {
description = "The desired private IP address of this NIC. If it isn't specified, a dynamic IP will be allocated."
default = "10.0.0.4"
}
variable "public_ip_allocation_type" {
description = "Defines whether the IP address is static or dynamic. Options are Static or Dynamic."
default = "Dynamic"
}
variable "pw_bastion_windows" {
description = "The password for the bastion host. Must be replaced if you plan on having a Windows bastion host"
default = ""
}
variable "pw_db_system" {
description = "Password for the database user SYSTEM"
}
variable "pw_hacluster" {
type = string
description = "Password for the HA cluster nodes"
}
variable "pw_os_sapadm" {
description = "Password for the SAP admin, which is an OS user"
}
variable "pw_os_sidadm" {
description = "Password for this specific sidadm, which is an OS user"
}
variable "pwd_db_shine" {
description = "Password for SHINE user"
default = ""
}
variable "pwd_db_tenant" {
description = "Password for SYSTEM user (tenant DB)"
default = ""
}
variable "pwd_db_xsaadmin" {
description = "Password for XSAADMIN user"
default = ""
}
variable "sap_instancenum" {
description = "The SAP instance number which is in range 00-99"
}
variable "sap_sid" {
default = "PV1"
}
variable "sshkey_path_private" {
description = "The path on the local machine to where the private key is"
}
variable "sshkey_path_public" {
description = "The path on the local machine to where the public key is"
}
variable "storage_disk_sizes_gb" {
description = "List disk sizes in GB for all disks this VM will need"
default = [512, 512, 512]
}
variable "url_cockpit" {
description = "URL for HANA Cockpit"
default = ""
}
variable "url_di_core" {
description = "URL for DI Core"
default = ""
}
variable "url_hana_studio_windows" {
description = "URL for the Windows version of HANA Studio to install on the bastion host"
default = ""
}
variable "url_hana_studio_linux" {
description = "URL for the Linux version of HANA Studio to install on the bastion host"
default = ""
}
variable "url_portal_services" {
description = "URL for Portal Services"
default = ""
}
variable "url_sap_hdbserver" {
type = string
description = "The url that points to the HDB server 122.17 bits"
}
variable "url_sapcar_windows" {
description = "URL for SAPCAR for Windows to run on the bastion host"
default = ""
}
variable "url_sap_sapcar_linux" {
description = "URL for SAPCAR for Linux to run on the bastion host"
default = ""
}
variable "url_sapui5" {
description = "URL for SAPUI5"
default = ""
}
variable "url_shine_xsa" {
description = "URL for SHINE XSA"
default = ""
}
variable "url_xs_services" {
description = "URL for XS Services"
default = ""
}
variable "url_xsa_runtime" {
description = "URL for XSA runtime"
default = ""
}
variable "url_xsa_hrtt" {
description = "URL for HRTT"
default = ""
}
variable "url_xsa_webide" {
description = "URL for WebIDE"
default = ""
}
variable "url_xsa_mta" {
description = "URL for MTA ext"
default = ""
}
variable "use_existing_nsg" {
default = false
}
variable "useHana2" {
description = "A boolean that will choose between HANA 1.0 and 2.0"
default = false
}
variable "hana1_db_mode" {
description = "The database mode to use if deploying HANA 1. The acceptable values are: single_container, multiple_containers"
default = "multiple_containers"
}
variable "vm_size" {
default = "Standard_E8s_v3"
}
variable "vm_user" {
description = "The username of your HANA database VM."
}
variable "windows_bastion" {
description = "Whether or not you want a windows bastion host"
default = false
}
variable "linux_bastion" {
description = "Whether or not you want a linux bastion host"
default = false
}
locals {
# name of the linux vm
linux_vm_name = "${var.az_domain_name}-linux-bastion"
# These are the load balancing ports specifically for HANA1 pacemaker. DO NOT ALTER
hana1_lb_ports = [
"3${var.sap_instancenum}15",
"3${var.sap_instancenum}17",
]
# These are the load balancing ports specifically for HANA2 pacemaker. DO NOT ALTER
hana2_lb_ports = [
"3${var.sap_instancenum}13",
"3${var.sap_instancenum}14",
"3${var.sap_instancenum}40",
"3${var.sap_instancenum}41",
"3${var.sap_instancenum}42",
]
}