Wait until mysql is deployed before continuing
Otherwise dependent jobs will fail and take up time restarting
This commit is contained in:
parent
c09af9936a
commit
2f95257325
@ -4,6 +4,9 @@ resource "nomad_job" "mysql-server" {
|
|||||||
}
|
}
|
||||||
|
|
||||||
jobspec = file("${path.module}/mysql.nomad")
|
jobspec = file("${path.module}/mysql.nomad")
|
||||||
|
|
||||||
|
# Block until deployed as there are servics dependent on this one
|
||||||
|
detach = false
|
||||||
}
|
}
|
||||||
|
|
||||||
resource "nomad_job" "adminer" {
|
resource "nomad_job" "adminer" {
|
||||||
|
@ -10,7 +10,7 @@ module "blocky" {
|
|||||||
source = "./blocky"
|
source = "./blocky"
|
||||||
|
|
||||||
base_hostname = var.base_hostname
|
base_hostname = var.base_hostname
|
||||||
depends_on = [module.mysql-server, module.redis]
|
depends_on = [module.redis]
|
||||||
}
|
}
|
||||||
|
|
||||||
module "traefik" {
|
module "traefik" {
|
||||||
|
Loading…
Reference in New Issue
Block a user