-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathvariables.lz_f5.tf
283 lines (234 loc) · 9.14 KB
/
variables.lz_f5.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
276
277
278
279
280
281
282
283
##############################################################################
# #
# F5 BIG-IP Setup Variables #
# #
##############################################################################
##############################################################################
# Edge VPC Variables
##############################################################################
variable "add_edge_vpc" {
description = "Create an edge VPC network and resource group. Conflicts with `create_edge_network_on_management_vpc`."
type = bool
default = false
}
variable "create_edge_network_on_management_vpc" {
description = "Create edge network components on management VPC and in management resource group. Conflicts with `add_edge_vpc`."
type = bool
default = false
}
variable "provision_f5_vsi" {
description = "Create F5 VSI on edge VPC. To provision network without virtual server deployments, set to `false`."
type = bool
default = false
}
##############################################################################
##############################################################################
# Subnet Variables
##############################################################################
variable "f5_create_vpn_1_subnet_tier" {
description = "Create VPN-1 subnet tier."
type = bool
default = true
}
variable "f5_create_vpn_2_subnet_tier" {
description = "Create VPN-1 subnet tier."
type = bool
default = true
}
variable "f5_bastion_subnet_zones" {
description = "Create Bastion subnet tier for each zone in this list. Bastion subnets created cannot exceed number of zones in `var.zones`. These subnets are reserved for future bastion VSI deployment."
type = number
default = 1
validation {
error_message = "Bastion subnet zones can be 0, 1, 2, or 3."
condition = var.f5_bastion_subnet_zones >= 0 && var.f5_bastion_subnet_zones < 4
}
}
variable "vpn_firewall_type" {
description = "F5 deployment type if provisioning edge VPC. Can be `full-tunnel`, `waf`, or `vpn-and-waf`."
type = string
default = "full-tunnel"
validation {
error_message = "Bastion type must be `full-tunnel`, `waf`, or `vpn-and-waf`."
condition = contains(["full-tunnel", "waf", "vpn-and-waf"], var.vpn_firewall_type)
}
}
##############################################################################
##############################################################################
# VPE Services
##############################################################################
variable "f5_create_vpe_subnet_tier" {
description = "Create VPE subnet tier on edge VPC. Will be automatically disabled for edge deployments on the management network."
type = bool
default = true
}
##############################################################################
##############################################################################
# F5 Variables
##############################################################################
variable "workload_cidr_blocks" {
description = "List of workload CIDR blocks. This is used to create security group rules for the F5 management interface."
type = list(string)
default = []
}
variable "f5_image_name" {
description = "Image name for f5 deployments. Must be null or one of `f5-bigip-15-1-5-1-0-0-14-all-1slot`,`f5-bigip-15-1-5-1-0-0-14-ltm-1slot`, `f5-bigip-16-1-2-2-0-0-28-ltm-1slot`,`f5-bigip-16-1-2-2-0-0-28-all-1slot`]."
type = string
default = "f5-bigip-16-1-2-2-0-0-28-all-1slot"
validation {
error_message = "Invalid F5 image name. Must be of `f5-bigip-15-1-5-1-0-0-14-all-1slot`,`f5-bigip-15-1-5-1-0-0-14-ltm-1slot`, `f5-bigip-16-1-2-2-0-0-28-ltm-1slot`,`f5-bigip-16-1-2-2-0-0-28-all-1slot`]."
condition = contains(
[
"f5-bigip-15-1-5-1-0-0-14-all-1slot",
"f5-bigip-15-1-5-1-0-0-14-ltm-1slot",
"f5-bigip-16-1-2-2-0-0-28-ltm-1slot",
"f5-bigip-16-1-2-2-0-0-28-all-1slot"
], var.f5_image_name
)
}
}
variable "f5_instance_profile" {
description = "F5 vsi instance profile. Use the IBM Cloud CLI command `ibmcloud is instance-profiles` to see available image profiles."
type = string
default = "cx2-4x8"
}
variable "hostname" {
description = "The F5 BIG-IP hostname"
type = string
default = "f5-ve-01"
}
variable "domain" {
description = "The F5 BIG-IP domain name"
type = string
default = "local"
}
variable "default_route_interface" {
description = "The F5 BIG-IP interface name for the default route. Leave null to auto assign."
type = string
default = null
}
variable "tmos_admin_password" {
description = "admin account password for the F5 BIG-IP instance"
type = string
sensitive = true
default = "this1isanExample"
validation {
error_message = "Value for tmos_password must be at least 15 characters, contain one numeric, one uppercase, and one lowercase character."
condition = var.tmos_admin_password == null ? true : (
length(var.tmos_admin_password) >= 15
&& can(regex("[A-Z]", var.tmos_admin_password))
&& can(regex("[a-z]", var.tmos_admin_password))
&& can(regex("[0-9]", var.tmos_admin_password))
)
}
}
variable "license_type" {
description = "How to license, may be 'none','byol','regkeypool','utilitypool'"
type = string
default = "none"
validation {
error_message = "License type may be one of 'none','byol','regkeypool','utilitypool'."
condition = contains(["none", "byol", "regkeypool", "utilitypool"], var.license_type)
}
}
variable "byol_license_basekey" {
description = "Bring your own license registration key for the F5 BIG-IP instance"
type = string
default = null
}
variable "license_host" {
description = "BIGIQ IP or hostname to use for pool based licensing of the F5 BIG-IP instance"
type = string
default = null
}
variable "license_username" {
description = "BIGIQ username to use for the pool based licensing of the F5 BIG-IP instance"
type = string
default = null
}
variable "license_password" {
description = "BIGIQ password to use for the pool based licensing of the F5 BIG-IP instance"
type = string
default = null
}
variable "license_pool" {
description = "BIGIQ license pool name of the pool based licensing of the F5 BIG-IP instance"
type = string
default = null
}
variable "license_sku_keyword_1" {
description = "BIGIQ primary SKU for ELA utility licensing of the F5 BIG-IP instance"
type = string
default = null
}
variable "license_sku_keyword_2" {
description = "BIGIQ secondary SKU for ELA utility licensing of the F5 BIG-IP instance"
type = string
default = null
}
variable "license_unit_of_measure" {
description = "BIGIQ utility pool unit of measurement"
type = string
default = "hourly"
}
variable "do_declaration_url" {
description = "URL to fetch the f5-declarative-onboarding declaration"
type = string
default = "null"
}
variable "as3_declaration_url" {
description = "URL to fetch the f5-appsvcs-extension declaration"
type = string
default = "null"
}
variable "ts_declaration_url" {
description = "URL to fetch the f5-telemetry-streaming declaration"
type = string
default = "null"
}
variable "phone_home_url" {
description = "The URL to POST status when BIG-IP is finished onboarding"
type = string
default = "null"
}
variable "template_source" {
description = "The terraform template source for phone_home_url_metadata"
type = string
default = "f5devcentral/ibmcloud_schematics_bigip_multinic_declared"
}
variable "template_version" {
description = "The terraform template version for phone_home_url_metadata"
type = string
default = "20210201"
}
variable "app_id" {
description = "The terraform application id for phone_home_url_metadata"
type = string
default = "null"
}
variable "tgactive_url" {
type = string
description = "The URL to POST L3 addresses when tgactive is triggered"
default = ""
}
variable "tgstandby_url" {
description = "The URL to POST L3 addresses when tgstandby is triggered"
type = string
default = "null"
}
variable "tgrefresh_url" {
description = "The URL to POST L3 addresses when tgrefresh is triggered"
type = string
default = "null"
}
variable "enable_f5_management_fip" {
description = "Enable F5 management interface floating IP. Conflicts with `enable_f5_external_fip`, VSI can only have one floating IP per instance."
type = bool
default = false
}
variable "enable_f5_external_fip" {
description = "Enable F5 external interface floating IP. Conflicts with `enable_f5_management_fip`, VSI can only have one floating IP per instance."
type = bool
default = false
}
##############################################################################