Improve use of postgres from terraform

This commit is contained in:
2025-05-27 23:22:08 +10:00
parent e52c2c1fc5
commit 234c6d075c

View File

@@ -1,5 +1,6 @@
resource "nomad_job" "postgres" { resource "nomad_job" "postgres" {
jobspec = file("postgres.nomad.hcl") jobspec = file("postgres.nomad.hcl")
rerun_if_dead = true
} }
resource "nomad_job" "pgadmin" { resource "nomad_job" "pgadmin" {
@@ -18,8 +19,7 @@ resource "nomad_variable" "postgres" {
} }
provider "postgresql" { provider "postgresql" {
#host = "jaglan-beta-m01.othrayte.one" host = "jaglan-beta-m01.lan"
host = "192.168.1.235"
port = 5432 port = 5432
database = "postgres" database = "postgres"
username = "postgres" username = "postgres"