homelab-nomad/mysql/mysql.tf

25 lines
431 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
resource "nomad_job" "mysql-server" {
hcl2 {
enabled = true
}
jobspec = file("${path.module}/mysql.nomad")
}
resource "nomad_job" "adminer" {
hcl2 {
enabled = true
2022-02-28 20:07:25 +00:00
vars = {
"base_hostname" = "${var.base_hostname}",
}
2022-02-27 23:22:09 +00:00
}
jobspec = file("${path.module}/adminer.nomad")
}