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" {
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"