This repository has been archived by the owner on Oct 20, 2023. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 126
/
Copy pathvariables.tf
286 lines (234 loc) · 6.96 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
281
282
283
284
285
286
/**
* Copyright 2019 Google LLC
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
#----------------#
# Forseti config #
#----------------#
variable "project_id" {
description = "Google Project ID that you want Forseti deployed into"
}
variable "forseti_version" {
description = "The version of Forseti to install"
default = "v2.25.1"
}
variable "forseti_repo_url" {
description = "Git repo for the Forseti installation"
default = "https://github.com/forseti-security/forseti-security"
}
variable "forseti_home" {
description = "Forseti installation directory"
default = "$USER_HOME/forseti-security"
}
variable "forseti_run_frequency" {
description = "Schedule of running the Forseti scans"
type = string
default = null
}
variable "forseti_scripts" {
description = "The local Forseti scripts directory"
default = "$USER_HOME/forseti-scripts"
}
#----------------#
# Forseti server #
#----------------#
variable "config_validator_image" {
description = "The image of the Config Validator to use"
default = "gcr.io/forseti-containers/config-validator"
}
variable "config_validator_image_tag" {
description = "The tag of the Config Validator image to use"
default = "e018e7c"
}
variable "server_type" {
description = "GCE Forseti Server machine type"
default = "n1-standard-8"
}
variable "server_region" {
description = "GCE Forseti Server region"
default = "us-central1"
}
variable "server_boot_image" {
description = "GCE Forseti Server boot image - Currently only Ubuntu is supported"
default = "ubuntu-os-cloud/ubuntu-1804-lts"
}
variable "server_shielded_instance_config" {
description = "Server instance 'shielded_instance_config' block if using shielded VM image"
type = map(string)
default = null
}
variable "server_boot_disk_size" {
description = "Size of the GCE instance boot disk in GBs."
default = "100"
}
variable "server_boot_disk_type" {
description = "GCE instance boot disk type, can be pd-standard or pd-ssd."
default = "pd-ssd"
}
variable "server_instance_metadata" {
description = "Metadata key/value pairs to make available from within the server instance."
type = map(string)
default = {}
}
variable "server_tags" {
description = "VM instance tags"
type = list(string)
default = []
}
variable "server_access_config" {
description = "Server instance 'access_config' block"
default = {}
type = map(any)
}
variable "server_private" {
description = "Enable private Forseti server VM (no public IP)"
default = "false"
}
variable "cloud_profiler_enabled" {
description = "Enable the Cloud Profiler"
default = false
type = bool
}
variable "mailjet_enabled" {
description = "Enable mailjet_rest library"
default = false
type = bool
}
variable "google_cloud_sdk_version" {
description = "Version of the Google Cloud SDK to install"
default = "335.0.0-0"
type = string
}
##---------#
## Network #
##---------#
variable "network" {
description = "The VPC where the Forseti client and server will be created"
default = "default"
}
variable "subnetwork" {
description = "The VPC subnetwork where the Forseti client and server will be created"
default = "default"
}
variable "network_project" {
description = "The project containing the VPC and subnetwork where the Forseti client and server will be created"
default = ""
}
variable "server_grpc_allow_ranges" {
description = "List of CIDRs that will be allowed gRPC access to forseti server"
type = list(string)
default = []
}
variable "server_ssh_allow_ranges" {
description = "List of CIDRs that will be allowed ssh access to forseti server"
type = list(string)
default = ["0.0.0.0/0"]
}
variable "manage_firewall_rules" {
description = "Create server firewall rules"
type = bool
default = true
}
variable "firewall_logging" {
description = "Enable firewall logging"
type = bool
default = false
}
variable "server_labels" {
description = "Server instance labels"
type = map(string)
default = {}
}
#--------#
# Config #
#--------#
variable "suffix" {
description = "The random suffix to append to all Forseti resources"
}
variable "services" {
description = "An artificial dependency to bypass #10462"
type = list(string)
default = []
}
#------------------------#
# Forseti policy-library #
#------------------------#
variable "policy_library_home" {
description = "The local policy library directory."
default = "$USER_HOME/policy-library"
}
variable "policy_library_repository_branch" {
description = "The specific git branch containing the policies."
default = "master"
}
variable "policy_library_repository_url" {
description = "The git repository containing the policy-library."
default = ""
}
variable "policy_library_sync_enabled" {
description = "Sync config validator policy library from private repository."
default = "false"
}
variable "policy_library_sync_gcs_directory_name" {
description = "The directory name of the GCS folder used for the policy library sync config."
default = "policy_library_sync"
}
variable "policy_library_sync_git_sync_tag" {
description = "Tag for the git-sync image."
default = "v3.1.2"
}
variable "policy_library_sync_ssh_known_hosts" {
description = "List of authorized public keys for SSH host of the policy library repository."
default = ""
}
#------------#
# Forseti db #
#------------#
variable "cloudsql_module" {
description = "The CloudSQL module"
}
variable "cloudsql_proxy_arch" {
description = "CloudSQL Proxy architecture"
default = "linux.amd64"
}
#--------------------#
# Forseti client IAM #
#--------------------#
variable "server_iam_module" {
description = "The Forseti Server IAM module"
}
#--------------------#
# Forseti server GCS #
#--------------------#
variable "server_gcs_module" {
description = "The Forseti Server GCS module"
}
#----------------------#
# Forseti server Rules #
#----------------------#
variable "server_rules_module" {
description = "The Forseti Server rules module"
}
#-----------------------#
# Forseti server config #
#-----------------------#
variable "server_config_module" {
description = "The Forseti Server config module"
}
#--------------------#
# Forseti client IAM #
#--------------------#
variable "client_iam_module" {
description = "The Forseti Client IAM module"
}