-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathvariables.tf
57 lines (52 loc) · 1.4 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
# variables file for terraform-nomad-base
variable "jobs" {
type = map(string)
description = "The list of jobs to deploy"
default = {}
}
variable "jobs_variables" {
type = map(map(string))
default = {}
description = "Map of object to pass variables to the nomad job(s). Key is the job's name, value is a map of variables and their values"
}
variable "volumes" {
type = map(object({
plugin_id = string
namespace = string
capacity_min = string
capacity_max = string
capability = map(string)
parameters = map(string)
secrets = map(string)
}))
description = "List of volumes associated to the job(s)"
default = {}
}
variable "nfs_volumes" {
type = map(object({
plugin_id = string
namespace = string
capability = map(string)
context = map(string)
mount_options = object({
fs_type = string
mount_flags = list(string)
})
}))
description = "List of nfs volumes associated to the job(s)"
default = {}
}
variable "consul_kv" {
type = map(any)
description = "List key/value pairs to put at a specific prefix (mainly for traefik)"
default = {}
}
variable "consul_intentions" {
type = map(object({
source_name = string
destination_name = string
action = string
}))
description = "List of intentions associated with the job(s)"
default = {}
}