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