diff --git a/nomad/mysql/mysql.tf b/nomad/mysql/mysql.tf index ddffe7c..45aa6f9 100644 --- a/nomad/mysql/mysql.tf +++ b/nomad/mysql/mysql.tf @@ -4,6 +4,9 @@ resource "nomad_job" "mysql-server" { } jobspec = file("${path.module}/mysql.nomad") + + # Block until deployed as there are servics dependent on this one + detach = false } resource "nomad_job" "adminer" { diff --git a/nomad/services.tf b/nomad/services.tf index 136b22e..2a439cb 100644 --- a/nomad/services.tf +++ b/nomad/services.tf @@ -10,7 +10,7 @@ module "blocky" { source = "./blocky" base_hostname = var.base_hostname - depends_on = [module.mysql-server, module.redis] + depends_on = [module.redis] } module "traefik" {