Improve use of postgres from terraform
This commit is contained in:
@@ -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"
|
||||||
|
|||||||
Reference in New Issue
Block a user