-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathvariables.tf
More file actions
174 lines (154 loc) · 3.59 KB
/
variables.tf
File metadata and controls
174 lines (154 loc) · 3.59 KB
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
variable "subscription_id" {
description = "Azure subscription ID"
type = string
}
variable "tenant_id" {
description = "Azure tenant ID"
type = string
}
variable "tags" {
description = "Map of default tags to apply to cPacket resources"
type = map(string)
default = null
}
variable "resource_group" {
description = "resource group properties"
type = object({
name = string
location = string
})
}
variable "capture_subnet" {
description = "capture subnet properties"
type = object({
name = string
cidr = string
})
default = {
name = "capture"
cidr = "10.0.253.0/24"
}
}
variable "gwlb_subnet" {
description = "gwlb subnet properties"
type = object({
name = string
cidr = string
})
default = {
name = "gwlb"
cidr = "10.0.251.0/28"
}
}
variable "management_subnet" {
description = "management subnet properties"
type = object({
name = string
cidr = string
})
default = {
name = "management"
cidr = "10.0.252.0/24"
}
}
variable "gwlb" {
description = "Map of gateway load balancer properties"
type = object({
private_ip_address = string
protocol = string
frontend_port = string
backend_port = string
probe_port = number
probe_threshold = number
interval_in_seconds = number
number_of_probes = number
})
default = {
private_ip_address = "10.0.253.5"
protocol = "All"
frontend_port = "0"
backend_port = "0"
probe_port = 80
probe_threshold = 1
interval_in_seconds = 15
number_of_probes = 2
}
}
# Image IDs are specified in free standing variables seperately from the VM configuration objects because
# there are no meaningful defaults for them, and Terraform object defaults cannot be omitted if _any_ of the defaults are specified.
variable "cvu_image_id" {
description = "cVu-V image ID"
type = string
}
variable "vnet" {
description = "CIDR block for the virtual network"
type = object({
name = string
cidr = string
})
default = {
cidr = "10.0.0.0/16"
name = "cpacket-corelight"
}
}
variable "cvu_scaleset" {
description = "cVu-V scaleset properties"
type = object({
# number of instances to deploy
sku = string
storage_type = string
})
default = {
sku = "Standard_D4ls_v5"
storage_type = "Premium_LRS"
}
}
variable "cvu_scaling" {
description = "cVu-V scaling properties"
type = object({
default_count = number
min_count = number
max_count = number
})
default = {
default_count = 3
min_count = 1
max_count = 5
}
}
variable "corelight_image_id" {
description = "Corelight image ID"
type = string
}
variable "corelight_license_key_path" {
description = "Corelight license key file path"
type = string
}
variable "corelight_sensor_community_string" {
description = "Corelight sensor password"
type = string
}
variable "ssh_public_key_file" {
description = "Path to the SSH public key file"
type = string
default = "~/.ssh/id_rsa.pub"
}
variable "cclear_public_ip" {
description = "cClear public IP address"
type = bool
default = false
}
variable "cclear_cloud_init_data" {
description = "cClear cloud-init data"
type = string
default = null
}
variable "cclear_image_id" {
description = "cClear image ID"
type = string
}
variable "auto_licensing" {
description = "Auto licensing for cClear"
type = bool
default = true
}