Format terraform and nomad files

This commit is contained in:
2025-05-18 21:28:24 +10:00
parent 837cfdae68
commit 9cdd529633
12 changed files with 80 additions and 72 deletions

View File

@@ -3,7 +3,7 @@ job "postgres" {
service {
name = "postgres"
port = "db"
connect {
sidecar_service {}
}
@@ -28,9 +28,9 @@ job "postgres" {
}
env {
POSTGRES_USER = "postgres"
POSTGRES_USER = "postgres"
POSTGRES_PASSWORD_FILE = "/run/secrets/postgres_password"
POSTGRES_INITDB_ARGS = "--auth-host=md5"
POSTGRES_INITDB_ARGS = "--auth-host=md5"
}
resources {
@@ -41,7 +41,7 @@ job "postgres" {
template {
# This securely sets the initial password for the postgres user, to change it later
# you need to connect to the database and change it manually
data = <<EOF
data = <<EOF
{{ with nomadVar "nomad/jobs/postgres" }}{{ .postgress_password }}{{ end }}
EOF
destination = "secrets/postgres_password"
@@ -61,4 +61,4 @@ EOF
source = "postgres"
}
}
}
}