-
Notifications
You must be signed in to change notification settings - Fork 23
/
Copy pathvariables.tf
264 lines (212 loc) · 6.3 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
# --------------------------------------------------------------------------------------------------
# Job Settings
# --------------------------------------------------------------------------------------------------
variable "job_name" {
description = "Name of the Nomad Job"
default = "curator"
}
variable "nomad_azs" {
description = "AZs which Nomad is deployed to. If left empty, the list of AZs from this region will be used"
type = list(string)
default = []
}
variable "nomad_clients_node_class" {
description = "Job constraint Nomad Client Node Class name"
}
variable "cron" {
description = "Cron job schedule. See https://www.nomadproject.io/docs/job-specification/periodic.html#cron"
default = "@weekly"
}
variable "timezone" {
description = "Timezone to run cron job scheduling"
default = "Asia/Singapore"
}
variable "docker_image" {
description = "Docker Image to run the job"
}
variable "docker_tag" {
description = "Docker tag to run"
default = "latest"
}
variable "force_pull" {
description = "Force Nomad Clients to always force pull"
default = "false"
}
variable "entrypoint" {
description = "Entrypoint for the Docker Image"
default = ["/curator/curator"]
}
variable "command" {
description = "Command for the Docker Image"
default = ""
}
variable "args" {
description = "Arguments for the Docker image"
default = [
"--config",
"/config/config.yml",
"/config/actions.yml",
]
}
variable "config_path" {
description = "Path to render the configuration file in the Docker container"
default = "/config/config.yml"
}
variable "actions_path" {
description = "Path to render the actions file in the Docker container"
default = "/config/actions.yml"
}
variable "elasticsearch_service" {
description = "Name of the Elasticsearch service to lookup in Consul"
default = "elasticsearch"
}
variable "additional_docker_config" {
description = "Additional HCL to be added to the configuration for the Docker driver. Refer to the template Jobspec for what is already defined"
default = ""
}
# --------------------------------------------------------------------------------------------------
# Curator Settings
# --------------------------------------------------------------------------------------------------
variable "consul_disable" {
description = "Disable clearing Consul server log indices"
default = false
}
variable "consul_age" {
description = "Age in days to clear Consul server log indices"
default = 90
}
variable "consul_prefix" {
description = "Prefix for Consul server logs"
default = "services.consul."
}
variable "consul_template_disable" {
description = "Disable clearing consul_template log indices"
default = false
}
variable "consul_template_age" {
description = "Age in days to clear consul_template log indices"
default = 90
}
variable "consul_template_prefix" {
description = "Prefix for consul_template logs"
default = "services.consul-template."
}
variable "nomad_disable" {
description = "Disable clearing nomad log indices"
default = false
}
variable "nomad_age" {
description = "Age in days to clear nomad log indices"
default = 90
}
variable "nomad_prefix" {
description = "Prefix for nomad logs"
default = "services.nomad."
}
variable "vault_disable" {
description = "Disable clearing vault log indices"
default = false
}
variable "vault_age" {
description = "Age in days to clear vault log indices"
default = 90
}
variable "vault_prefix" {
description = "Prefix for vault logs"
default = "services.vault."
}
variable "docker_disable" {
description = "Disable clearing docker log indices"
default = false
}
variable "docker_age" {
description = "Age in days to clear docker log indices"
default = 90
}
variable "docker_prefix" {
description = "Prefix for docker logs"
default = "docker."
}
variable "cron_disable" {
description = "Disable clearing cron log indices"
default = false
}
variable "cron_age" {
description = "Age in days to clear cron log indices"
default = 90
}
variable "cron_prefix" {
description = "Prefix for cron logs"
default = "system.cron."
}
variable "td_agent_disable" {
description = "Disable clearing td_agent log indices"
default = false
}
variable "td_agent_age" {
description = "Age in days to clear td_agent log indices"
default = 90
}
variable "td_agent_prefix" {
description = "Prefix for td_agent logs"
default = "system.td-agent."
}
variable "telegraf_disable" {
description = "Disable clearing telegraf log indices"
default = false
}
variable "telegraf_age" {
description = "Age in days to clear telegraf log indices"
default = 90
}
variable "telegraf_prefix" {
description = "Prefix for telegraf logs"
default = "system.telegraf."
}
variable "sshd_disable" {
description = "Disable clearing sshd log indices"
default = false
}
variable "sshd_age" {
description = "Age in days to clear sshd log indices"
default = 90
}
variable "sshd_prefix" {
description = "Prefix for sshd logs"
default = "system.sshd."
}
variable "sudo_disable" {
description = "Disable clearing sudo log indices"
default = false
}
variable "sudo_age" {
description = "Age in days to clear sudo log indices"
default = 90
}
variable "sudo_prefix" {
description = "Prefix for sudo logs"
default = "system.sudo."
}
variable "user_data_disable" {
description = "Disable clearing user_data log indices"
default = false
}
variable "user_data_age" {
description = "Age in days to clear user_data log indices"
default = 90
}
variable "user_data_prefix" {
description = "Prefix for user_data logs"
default = "system.user_data."
}
# --------------------------------------------------------------------------------------------------
# CORE INTEGRATION SETTINGS
# --------------------------------------------------------------------------------------------------
variable "consul_key_prefix" {
description = <<EOF
Path prefix to the key in Consul to set for the `core` module to know that this module has
been applied. If you change this, you have to update the
`integration_consul_prefix` variable in the core module as well.
EOF
default = "terraform/"
}