From 6a420dee0630ef7e514950cec272faceb709a5bb Mon Sep 17 00:00:00 2001 From: flynn Date: Mon, 21 Jan 2019 23:38:59 +0100 Subject: [PATCH] make db port changeable --- defaults/main.yml | 1 + templates/start.sh | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/defaults/main.yml b/defaults/main.yml index 6a34953..599e2b0 100644 --- a/defaults/main.yml +++ b/defaults/main.yml @@ -4,6 +4,7 @@ cat_user: cat cat_postgres_db: cat cat_postgres_user: cat_user +cat_postgres_db_port: 5432 # sensitive info cat_postgres_password: "{{ vault_cat_postgres_password }}" diff --git a/templates/start.sh b/templates/start.sh index 2c6d189..b0c07dc 100644 --- a/templates/start.sh +++ b/templates/start.sh @@ -2,7 +2,7 @@ # Run the java jar -DATABASE_URL="postgresql://localhost:5432/{{ cat_postgres_db }}?user={{ cat_postgres_user }}&password={{ cat_postgres_password }}" +DATABASE_URL="postgresql://localhost:{{ cat_postgres_db_port }}/{{ cat_postgres_db }}?user={{ cat_postgres_user }}&password={{ cat_postgres_password }}" PORT="{{ cat_app_port }}" AUTHORIZE-URI="{{ authorize_uri }}" ACCESS-TOKEN-URI="{{ access-token-uri }}"