forked from persiaAziz-zz/sap-hana-1
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathvariables.tf
193 lines (153 loc) · 4.17 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
variable "ansible_playbook_path" {
description = "Path from this module to the playbook"
default = "../../ansible/ha_pair_playbook.yml"
}
variable "az_region" {}
variable "az_resource_group" {
description = "Which Azure resource group to deploy the HANA setup into. i.e. <myResourceGroup>"
}
variable "db_num" {
description = "which node is currently being created"
}
variable "email_shine" {
description = "e-mail address for SHINE user"
default = "[email protected]"
}
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 "private_ip_address_db0" {
default = "10.0.0.6"
}
variable "private_ip_address_db1" {
default = "10.0.0.7"
}
variable "private_ip_address_iscsi" {
default = "10.0.0.17"
}
variable "private_ip_address_lb_frontend" {
default = "10.0.0.13"
}
variable "public_ip_allocation_type" {
description = "Defines whether the IP address is static or dynamic. Options are Static or Dynamic."
default = "Dynamic"
}
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_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_sap_sapcar" {
type = "string"
description = "The url that points to the SAPCAR bits"
}
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 "useHana2" {
description = "A boolean that will choose between HANA 1.0 and 2.0"
default = false
}
variable "vm_size" {
default = "Standard_E8s_v3"
}
variable "vm_user" {
description = "The username of your HANA database VM."
}
variable "azure_service_principal_id" {
description = "Service principal Id"
default = ""
}
variable "azure_service_principal_pw" {
description = "Service principal password"
default = ""
}
locals {
# 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",
]
}