homelab-nomad/core/blocky/blocky.tf

17 lines
285 B
Terraform
Raw Normal View History

2022-02-28 20:07:34 +00:00
locals {
2023-08-24 22:03:36 +00:00
config_data = file("${path.module}/config.yml")
2022-02-28 20:07:34 +00:00
}
resource "nomad_job" "blocky" {
hcl2 {
enabled = true
vars = {
2022-11-02 19:32:27 +00:00
"config_data" = local.config_data,
2022-02-28 20:07:34 +00:00
}
}
jobspec = templatefile("${path.module}/blocky.nomad", {
use_wesher = var.use_wesher,
})
2022-02-28 20:07:34 +00:00
}