-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathvariables.tf
217 lines (181 loc) · 5.04 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
# NiFiKop
variable "nifikop_name" {
description = "nifikop instance name"
type = string
default = "nifikop"
}
variable "nifikop_namespace" {
description = "nifikop's namespace"
type = string
}
variable "nifikop_image_tag" {
description = "nifikop's image tag"
type = string
default = "0.15.0-feat_v1_resources"
}
variable "nifikop_create_namespace" {
description = "Whether or not we create the nifikop's namespace"
type = bool
default = true
}
variable "nifikop_watch_namespaces_list" {
description = "list of namespaces watched by NiFiKop"
type = list(string)
}
variable "nifikop_config" {
description = "nifikop chart helm configuration"
type = map(string)
}
variable "nifikop_version" {
description = "Version nifikop"
type = string
default = "1.0.0"
}
# Zookeeper
variable "zookeeper_namespace" {
description = "zookeeper's namespace"
type = string
}
variable "zookeeper_create_namespace" {
description = "Whether or not we create the zookeeper's namespace"
type = string
default = false
}
variable "zookeeper_config" {
description = "zookeeper chart helm configuration"
type = map(string)
}
## cert-manager configurations
variable "cert_manager_namespace" {
description = "cert-manager's namespace"
type = string
default = "cert-manager"
}
variable "cert_manager_config" {
description = "cert-manager chart helm configuration"
type = map(string)
}
variable "cert_manager_create_namespace" {
description = "Whether or not we create the cert-manager's namespace"
type = bool
default = true
}
variable "cert_manager_version" {
description = "Cert Manager version"
type = string
default = "v1.7.2"
}
# NiFi registry
variable "enable_nifi_registry" {
description = "Whether or not to deploy Nifi Registry ressources"
type = bool
default = true
}
variable "nifi_registry_backend" {
description = "Nifi registry backend type"
type = string
default = "db"
validation {
condition = contains(["git", "db"], var.nifi_registry_backend)
error_message = "Allowed values for nifi_registry_backend are \"db\" or \"git\"."
}
}
variable "nifi_registry_image" {
description = "nifi registry docker image to use"
type = string
}
variable "nifi_registry_sidecars" {
description = "nifi registry sidecars config"
type = list(any)
default = []
}
variable "nifi_registry_namespace" {
description = "nifi registry's namespace"
type = string
}
variable "nifi_registry_sa_annotations" {
description = "A map of string to add as annotations."
type = map(string)
default = {}
}
variable "nifi_registry_node_selector_node_pool" {
description = "nifi registry's node pool to use to deploy pod"
type = string
default = ""
}
variable "nifi_registry_container_port" {
description = "nifi registry's namespace"
type = number
default = 18080
}
variable "nifi_registry_database_config" {
description = "Configuration of nifi registry for database backend"
type = object({
url = string,
driver_class = string,
user = string,
password = string
})
default = {
url = ""
driver_class = ""
user = ""
password = ""
}
}
variable "nifi_registry_database_ssl_config" {
description = "Configuration of nifi registry for ssl with database"
type = object({
cert = string,
private_key = string,
server_ca_cert = string,
})
default = {
cert = ""
private_key = ""
server_ca_cert = ""
}
}
variable "nifi_registry_git_config" {
description = "Configuration of nifi registry for git backend"
type = object({
username = string,
user_email = string,
remote_url = string,
remote_branch = string,
remote_to_push = string,
ssh_known_hosts_path = string,
ssh_key_path = string
})
default = {
username = ""
user_email = ""
remote_url = ""
remote_branch = "master"
remote_to_push = "origin"
ssh_known_hosts_path = ""
ssh_key_path = ""
}
}
variable "nifi_registry_svc_annotations" {
description = "Map of string(string) containing a set of annotations to add to the nifi registry's service"
type = map(string)
default = {
"cloud.google.com/load-balancer-type" = "Internal"
}
}
variable "nifi_registry_service_type" {
description = "Service type for the nifi registry"
type = string
default = "ClusterIP"
validation {
condition = contains(["ClusterIP", "LoadBalancer", "NodePort"], var.nifi_registry_service_type)
error_message = "Allowed values for nifi_registry_service_type are \"ClusterIP\", \"LoadBalancer\", or \"NodePort\"."
}
}
# Helm
variable "force_update" {
default = false
type = bool
description = "If true will force update an helm_release"
}