orchestration-tests/nomad/traefik/traefik.tf

24 lines
470 B
Terraform
Raw Normal View History

2022-02-28 20:07:25 +00:00
variable "base_hostname" {
type = string
description = "Base hostname to serve content from"
default = "dev.homelab"
}
2022-02-27 23:22:09 +00:00
variable "consul_address" {
type = string
description = "address of consul server for dynamic routes"
2022-02-27 23:22:09 +00:00
}
resource "nomad_job" "traefik" {
hcl2 {
enabled = true
vars = {
"consul_address" = "${var.consul_address}",
2022-02-28 20:07:25 +00:00
"base_hostname" = "${var.base_hostname}",
2022-02-27 23:22:09 +00:00
}
}
jobspec = file("${path.module}/traefik.nomad")
}