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 = {
|
2022-07-28 22:10:39 +00:00
|
|
|
"base_hostname" = "${var.base_hostname}",
|
2022-02-27 23:22:09 +00:00
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
jobspec = file("${path.module}/traefik.nomad")
|
|
|
|
}
|