-
Notifications
You must be signed in to change notification settings - Fork 51
/
Copy pathvariables.tf
275 lines (274 loc) · 8.99 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
# Variables
variable "projectPrefix" {
type = string
default = "demo"
description = "This value is inserted at the beginning of each Azure object (alpha-numeric, no special character)"
}
variable "location" {
type = string
default = "westus2"
description = "Azure Location of the deployment"
}
variable "vnet_rg" {
type = string
default = null
description = "Resource group name for existing VNET"
}
variable "vnet_name" {
type = string
default = null
description = "Name of existing VNET"
}
variable "availability_zone" {
type = number
description = "Azure Availability Zone for BIG-IP 1"
default = 1
}
variable "availability_zone2" {
type = number
description = "Azure Availability Zone for BIG-IP 2"
default = 2
}
variable "mgmtSubnet" {
type = string
default = null
description = "Name of management subnet"
}
variable "extSubnet" {
type = string
default = null
description = "Name of external subnet"
}
variable "intSubnet" {
type = string
default = null
description = "Name of internal subnet"
}
variable "mgmtNsg" {
type = string
default = null
description = "Name of management network security group"
}
variable "extNsg" {
type = string
default = null
description = "Name of external network security group"
}
variable "intNsg" {
type = string
default = null
description = "Name of internal network security group"
}
variable "cfe_managed_route" {
type = string
default = "0.0.0.0/0"
description = "A UDR route can used for testing managed-route failover. Enter address prefix like x.x.x.x/x"
}
variable "instance_type" {
type = string
default = "Standard_DS4_v2"
description = "Azure instance type to be used for the BIG-IP VE"
}
variable "image_name" {
type = string
default = "f5-big-best-plus-hourly-25mbps"
description = "F5 SKU (image) to deploy. Note: The disk size of the VM will be determined based on the option you select. **Important**: If intending to provision multiple modules, ensure the appropriate value is selected, such as ****AllTwoBootLocations or AllOneBootLocation****."
}
variable "product" {
type = string
default = "f5-big-ip-best"
description = "Azure BIG-IP VE Offer"
}
variable "bigip_version" {
type = string
default = "16.1.303000"
description = "BIG-IP Version"
}
variable "f5_username" {
type = string
default = "azureuser"
description = "User name for the BIG-IP"
}
variable "f5_password" {
type = string
default = "Default12345!"
description = "BIG-IP Password or Key Vault secret name (value should be Key Vault secret name when az_key_vault_authentication = true, ex. my-bigip-secret)"
}
variable "az_keyvault_authentication" {
type = bool
default = false
description = "Whether to use key vault to pass authentication"
}
variable "keyvault_rg" {
type = string
default = ""
description = "The name of the resource group in which the Azure Key Vault exists"
}
variable "keyvault_name" {
type = string
default = null
description = "Name of Key Vault"
}
variable "keyvault_secret" {
type = string
default = null
description = "Name of Key Vault secret with BIG-IP password"
}
variable "user_identity" {
type = string
default = null
description = "The ID of the managed user identity to assign to the BIG-IP instance"
}
variable "ssh_key" {
type = string
description = "public key used for authentication in /path/file format (e.g. /.ssh/id_rsa.pub)"
}
variable "license1" {
type = string
default = ""
description = "The license token for the 1st F5 BIG-IP VE (BYOL)"
}
variable "license2" {
type = string
default = ""
description = "The license token for the 2nd F5 BIG-IP VE (BYOL)"
}
variable "dns_server" {
type = string
default = "8.8.8.8"
description = "Leave the default DNS server the BIG-IP uses, or replace the default DNS server with the one you want to use"
}
variable "dns_suffix" {
type = string
default = "example.com"
description = "DNS suffix for your domain in the GCP project"
}
variable "ntp_server" {
type = string
default = "0.us.pool.ntp.org"
description = "Leave the default NTP server the BIG-IP uses, or replace the default NTP server with the one you want to use"
}
variable "timezone" {
type = string
default = "UTC"
description = "If you would like to change the time zone the BIG-IP uses, enter the time zone you want to use. This is based on the tz database found in /usr/share/zoneinfo (see the full list [here](https://github.com/F5Networks/f5-azure-arm-templates/blob/master/azure-timezone-list.md)). Example values: UTC, US/Pacific, US/Eastern, Europe/London or Asia/Singapore."
}
variable "DO_URL" {
type = string
default = "https://github.com/F5Networks/f5-declarative-onboarding/releases/download/v1.36.1/f5-declarative-onboarding-1.36.1-1.noarch.rpm"
description = "URL to download the BIG-IP Declarative Onboarding module"
}
variable "AS3_URL" {
type = string
default = "https://github.com/F5Networks/f5-appsvcs-extension/releases/download/v3.43.0/f5-appsvcs-3.43.0-2.noarch.rpm"
description = "URL to download the BIG-IP Application Service Extension 3 (AS3) module"
}
variable "TS_URL" {
type = string
default = "https://github.com/F5Networks/f5-telemetry-streaming/releases/download/v1.32.0/f5-telemetry-1.32.0-2.noarch.rpm"
description = "URL to download the BIG-IP Telemetry Streaming module"
}
variable "FAST_URL" {
type = string
default = "https://github.com/F5Networks/f5-appsvcs-templates/releases/download/v1.24.0/f5-appsvcs-templates-1.24.0-1.noarch.rpm"
description = "URL to download the BIG-IP FAST module"
}
variable "CFE_URL" {
description = "URL to download the BIG-IP Cloud Failover Extension module"
type = string
default = "https://github.com/F5Networks/f5-cloud-failover-extension/releases/download/v1.14.0/f5-cloud-failover-1.14.0-0.noarch.rpm"
}
variable "INIT_URL" {
type = string
default = "https://cdn.f5.com/product/cloudsolutions/f5-bigip-runtime-init/v1.6.0/dist/f5-bigip-runtime-init-1.6.0-1.gz.run"
description = "URL to download the BIG-IP runtime init"
}
variable "libs_dir" {
type = string
default = "/config/cloud/azure/node_modules"
description = "Directory on the BIG-IP to download the A&O Toolchain into"
}
variable "bigIqHost" {
type = string
default = ""
description = "This is the BIG-IQ License Manager host name or IP address"
}
variable "bigIqUsername" {
type = string
default = "azureuser"
description = "Admin name for BIG-IQ"
}
variable "bigIqPassword" {
type = string
default = "Default12345!"
description = "Admin Password for BIG-IQ"
}
variable "bigIqLicenseType" {
type = string
default = "licensePool"
description = "BIG-IQ license type"
}
variable "bigIqLicensePool" {
type = string
default = ""
description = "BIG-IQ license pool name"
}
variable "bigIqSkuKeyword1" {
type = string
default = "key1"
description = "BIG-IQ license SKU keyword 1"
}
variable "bigIqSkuKeyword2" {
type = string
default = "key2"
description = "BIG-IQ license SKU keyword 2"
}
variable "bigIqUnitOfMeasure" {
type = string
default = "hourly"
description = "BIG-IQ license unit of measure"
}
variable "bigIqHypervisor" {
type = string
default = "azure"
description = "BIG-IQ hypervisor"
}
variable "resourceOwner" {
type = string
default = null
description = "This is a tag used for object creation. Example is last name."
}
variable "f5_cloud_failover_label" {
type = string
default = "myFailover"
description = "This is a tag used for F5 Cloud Failover extension. Must match value of 'f5_cloud_failover_label' in externalnic_failover_tags and internalnic_failover_tags."
}
variable "externalnic_failover_tags" {
description = "key:value tags to apply to external nic resources built by the module"
type = any
default = {
f5_cloud_failover_label = "myFailover"
f5_cloud_failover_nic_map = "external"
}
}
variable "internalnic_failover_tags" {
description = "key:value tags to apply to external nic resources built by the module"
type = any
default = {
f5_cloud_failover_label = "myFailover"
f5_cloud_failover_nic_map = "internal"
}
}
variable "cfe_secondary_vip_disable" {
type = bool
description = "Disable Externnal Public IP Association to instance based on this flag (Usecase CFE Scenario)"
default = false
}
variable "vm_name" {
description = "Name of 1st BIG-IP. If empty, default is 'bigip1' string + prefix + random_id"
default = ""
}
variable "vm2_name" {
description = "Name of 2nd BIG-IP. If empty, default is 'bigip2' string + prefix + random_id"
default = ""
}