-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathvariables.tf
280 lines (242 loc) · 8.92 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
276
277
278
279
280
variable "services" {
description = "Consul services monitored by Consul NIA"
type = map(
object({
id = string
name = string
address = string
port = number
status = string
meta = map(string)
tags = list(string)
namespace = string
node = string
node_id = string
node_address = string
node_datacenter = string
node_tagged_addresses = map(string)
node_meta = map(string)
cts_user_defined_meta = map(string)
})
)
}
################################################################################
# Optional Prefix
################################################################################
variable "appsegment_prefix" {
type = string
description = "(Optional) Prefix added to the dynamic application segment created by Consul"
default = ""
}
variable "cts_prefix" {
type = string
description = "(Optional) Prefix that will be applied to all objects created via Consul-Terraform-Sync"
default = "cts-"
}
################################################################################
# Application Segment Variables
################################################################################
variable "app_segment_enabled" {
type = bool
description = "Indicates if the Zscaler Client Connector receives CNAME DNS records from the connectors"
default = true
}
variable "app_segment_health_reporting" {
type = string
description = "Health reporting for the application segment created by Consul-Terraform-Sync. "
validation {
condition = var.app_segment_health_reporting != "NONE" || var.app_segment_health_reporting != "ON_ACCESS" || var.app_segment_health_reporting != "CONTINUOUS"
error_message = "The variable health_reporting must be \"NONE\", \"ON_ACCESS\", or \"CONTINUOUS\"."
}
default = "ON_ACCESS"
}
variable "app_segment_icmp_access_type" {
type = string
description = "ICMP Access Type for the application segment created by Consul-Terraform-Sync. "
validation {
condition = var.app_segment_icmp_access_type != "NONE" || var.app_segment_icmp_access_type != "PING" || var.app_segment_icmp_access_type != "PING_TRACEROUTING"
error_message = "The variable icmp_access_type must be \"NONE\", \"PING\", or \"PING_TRACEROUTING\"."
}
default = "NONE"
}
variable "app_segment_bypass_type" {
type = string
description = "Bypass Type for the application segment created by Consul-Terraform-Sync. "
validation {
condition = var.app_segment_bypass_type != "NEVER" || var.app_segment_bypass_type != "ALWAYS" || var.app_segment_bypass_type != "ON_NET"
error_message = "The variable bypass_type must be \"NEVER\", \"ALWAYS\", or \"ON_NET\"."
}
default = "NEVER"
}
variable "app_segment_is_cname_enabled" {
type = bool
description = "Indicates if the Zscaler Client Connector receives CNAME DNS records from the connectors"
default = true
}
################################################################################
# Segment Group Variables
################################################################################
variable "byo_segment_group" {
type = bool
description = "Bring your own Segment Group"
default = false
}
variable "byo_segment_group_name" {
type = string
description = "User provided existing Segment Group ID"
default = null
}
variable "byo_segment_group_id" {
type = string
description = "User provided existing Segment Group ID"
default = null
}
variable "segment_group_name" {
type = string
description = "Name of the segment group."
default = "SegmentGroup"
}
variable "segment_group_description" {
type = string
description = "Description of the segment group."
default = "SegmentGroup"
}
variable "segment_group_enabled" {
type = bool
description = "Whether this segment group is enabled or not."
default = true
}
variable "segment_group_tcp_keep_alive_enabled" {
type = string
description = "Segment Group Keep Alive Status"
default = "1"
}
################################################################################
# Server Group Variables
################################################################################
variable "byo_server_group" {
type = bool
description = "Bring your own Server Group"
default = false
}
variable "byo_server_group_name" {
type = string
description = "User provided existing Server Group ID"
default = null
}
variable "byo_server_group_id" {
type = string
description = "User provided existing Server Group ID"
default = null
}
variable "server_group_name" {
type = string
description = "This field defines the name of the server group."
default = "ServerGroup"
}
variable "server_group_description" {
type = string
description = "This field is the description of the server group."
default = "ServerGroup"
}
variable "server_group_enabled" {
type = bool
description = "This field defines if the server group is enabled or disabled."
default = true
}
variable "server_group_dynamic_discovery" {
type = bool
description = "This field controls dynamic discovery of the servers."
default = true
}
################################################################################
# App Connector Group Variables
################################################################################
variable "byo_app_connector_group" {
type = bool
description = "Bring your own App Connector Group"
default = false
}
variable "byo_app_connector_group_name" {
type = string
description = "User provided existing App Connector Group ID"
default = null
}
variable "byo_app_connector_group_id" {
type = string
description = "User provided existing App Connector Group ID"
default = null
}
variable "app_connector_group_name" {
type = string
description = "Name of the App Connector Group."
default = "AppConnector"
}
variable "app_connector_group_description" {
type = string
description = "Description of the App Connector Group."
default = "AppConnector"
}
variable "app_connector_group_enabled" {
type = bool
description = "Whether this App Connector Group is enabled or not."
default = true
}
variable "app_connector_group_latitude" {
type = string
description = "Whether this App Connector Group is enabled or not."
default = "37.3382082"
}
variable "app_connector_group_longitude" {
type = string
description = "Whether this App Connector Group is enabled or not."
default = "-121.8863286"
}
variable "app_connector_group_location" {
type = string
description = "Location of the App Connector Group."
default = "San Jose, CA, USA"
}
variable "app_connector_group_country_code" {
type = string
description = "Code of the Country where the app connector is located i.e US or CA"
default = "US"
}
variable "app_connector_group_city_country" {
type = string
description = "Code of the Country where the app connector is located i.e US or CA"
default = "San Jose, US"
}
variable "app_connector_group_upgrade_day" {
type = string
description = "App Connectors in this group will attempt to update to a newer version of the software during this specified day."
default = "SUNDAY"
}
variable "app_connector_group_upgrade_time_in_secs" {
type = string
description = "App Connectors in this group will attempt to update to a newer version of the software during this specified time."
default = "66600"
}
variable "app_connector_group_override_version_profile" {
type = bool
description = "Whether the default version profile of the App Connector Group is applied or overridden."
default = true
}
variable "app_connector_group_version_profile_id" {
type = string
description = "ICMP Access Type for the application segment created by Consul-Terraform-Sync. "
validation {
condition = var.app_connector_group_version_profile_id != "0" || var.app_connector_group_version_profile_id != "1" || var.app_connector_group_version_profile_id != "2"
error_message = "The variable icmp_access_type must be \"0 for Default \", \"1 for Previous Default\", or \"2 for New Release\"."
}
default = "2"
}
variable "app_connector_group_dns_query_type" {
type = string
description = "ICMP Access Type for the application segment created by Consul-Terraform-Sync. "
validation {
condition = var.app_connector_group_dns_query_type != "IPV4" || var.app_connector_group_dns_query_type != "IPV6" || var.app_connector_group_dns_query_type != "IPV4_IPV6"
error_message = "The variable icmp_access_type must be \"IPV4\", \"IPV6\", or \"IPV4_IPV6\"."
}
default = "IPV4_IPV6"
}