Compare commits
No commits in common. "0e258537f26461a328f5d133b837e16a3cbb0680" and "1557619a6d578e7f4120f4cc16e68b6312cedd3a" have entirely different histories.
0e258537f2
...
1557619a6d
1
main.tf
1
main.tf
@ -12,7 +12,6 @@ resource "nomad_job" "this" {
|
|||||||
purge_on_destroy = true
|
purge_on_destroy = true
|
||||||
hcl2 {
|
hcl2 {
|
||||||
allow_fs = true
|
allow_fs = true
|
||||||
vars = contains(keys(var.jobs_variables), each.key) ? var.jobs_variables[each.key] : {}
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -5,12 +5,6 @@ variable "jobs" {
|
|||||||
default = {}
|
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" {
|
variable "volumes" {
|
||||||
type = map(object({
|
type = map(object({
|
||||||
plugin_id = string
|
plugin_id = string
|
||||||
|
Loading…
Reference in New Issue
Block a user