mirror of
https://git.sr.ht/~magic_rb/cluster
synced 2024-11-29 11:36:16 +01:00
2e61e7ef3c
Signed-off-by: main <magic_rb@redalder.org>
21 lines
285 B
HCL
21 lines
285 B
HCL
variable "datacenters" {
|
|
type = list(string)
|
|
}
|
|
|
|
terraform {
|
|
required_providers {
|
|
nomad = {}
|
|
}
|
|
}
|
|
|
|
resource "nomad_job" "mesh" {
|
|
jobspec = file("${path.module}/main.hcl")
|
|
|
|
hcl2 {
|
|
enabled = true
|
|
vars = {
|
|
"datacenters" = jsonencode(var.datacenters)
|
|
}
|
|
}
|
|
}
|