From 18c45219d899dc963a6a5211152cb780d988cdac Mon Sep 17 00:00:00 2001 From: IamTheFij Date: Mon, 21 Aug 2023 22:31:35 -0700 Subject: [PATCH] WIP: Set stateful meta --- services/service/main.tf | 2 ++ 1 file changed, 2 insertions(+) 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 }) }