From 234c6d075cb304213dd5ae64ef7093d41754c84e Mon Sep 17 00:00:00 2001 From: Adrian Cowan Date: Tue, 27 May 2025 23:22:08 +1000 Subject: [PATCH] Improve use of postgres from terraform --- 2-nomad-config/postgres.tf | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/2-nomad-config/postgres.tf b/2-nomad-config/postgres.tf index 55a1a65..5ab752b 100644 --- a/2-nomad-config/postgres.tf +++ b/2-nomad-config/postgres.tf @@ -1,5 +1,6 @@ resource "nomad_job" "postgres" { - jobspec = file("postgres.nomad.hcl") + jobspec = file("postgres.nomad.hcl") + rerun_if_dead = true } resource "nomad_job" "pgadmin" { @@ -18,8 +19,7 @@ resource "nomad_variable" "postgres" { } provider "postgresql" { - #host = "jaglan-beta-m01.othrayte.one" - host = "192.168.1.235" + host = "jaglan-beta-m01.lan" port = 5432 database = "postgres" username = "postgres"