homelab-nomad/blocky/blocky.tf

22 lines
416 B
Terraform
Raw Normal View History

2022-02-28 20:07:34 +00:00
variable "base_hostname" {
type = string
description = "Base hostname to serve content from"
default = "dev.homelab"
}
locals {
config_data = file("${path.module}/config.yml")
}
resource "nomad_job" "blocky" {
hcl2 {
enabled = true
vars = {
"config_data" = "${local.config_data}",
"base_hostname" = "${var.base_hostname}",
}
}
jobspec = file("${path.module}/blocky.nomad")
}