Wait until mysql is deployed before continuing

Otherwise dependent jobs will fail and take up time restarting
This commit is contained in:
IamTheFij 2022-05-24 20:10:26 -07:00
parent 8eb7a58dfd
commit d6407d25a0
2 changed files with 4 additions and 1 deletions

View File

@ -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" {

View File

@ -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" {