orchestration-tests/nomad/core/traefik/traefik.tf

17 lines
321 B
Terraform
Raw Normal View History

2022-02-28 20:07:25 +00:00
variable "base_hostname" {
2022-04-13 21:01:14 +00:00
type = string
2022-02-28 20:07:25 +00:00
description = "Base hostname to serve content from"
2022-04-13 21:01:14 +00:00
default = "dev.homelab"
2022-02-28 20:07:25 +00:00
}
2022-02-27 23:22:09 +00:00
resource "nomad_job" "traefik" {
hcl2 {
enabled = true
vars = {
"base_hostname" = "${var.base_hostname}",
2022-02-27 23:22:09 +00:00
}
}
jobspec = file("${path.module}/traefik.nomad")
}