diff --git a/services/service/main.tf b/services/service/main.tf index efdf686..35f0c9c 100644 --- a/services/service/main.tf +++ b/services/service/main.tf @@ -37,5 +37,7 @@ resource "nomad_job" "service" { mysql_bootstrap = var.mysql_bootstrap postgres_bootstrap = var.postgres_bootstrap + + stateful = var.use_mysql || var.postgres || length(var.host_volumes) > 0 }) }