Skip to content

Commit 449383d

Browse files
committed
Move connection string to its own variable
1 parent 01dc37f commit 449383d

3 files changed

Lines changed: 3 additions & 2 deletions

File tree

ansible/group_vars/all.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -58,6 +58,7 @@ pg_database: astral
5858
# big-poppa
5959
big_poppa_pg_database: big-poppa
6060
big_poppa_pg_user: big-poppa
61+
big_poppa_pg_connection_string: postgres://{{ big_poppa_pg_user }}@localhost/{{ big_poppa_pg_database }}
6162
big_poppa_hostname: big-poppa.{{ domain }}
6263

6364
# charon

ansible/group_vars/alpha-big-poppa-http.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ container_envs: >
1818
-e GITHUB_TOKEN={{ big_poppa_github_token }}
1919
-e LOG_LEVEL=info
2020
-e NODE_ENV={{ node_env }}
21-
-e POSTGRES_CONNECT_STRING=postgres://{{ big_poppa_pg_user }}@localhost/{{ big_poppa_pg_database }}
21+
-e POSTGRES_CONNECT_STRING={{ big_poppa_pg_connection_string }}
2222
-e RABBITMQ_HOSTNAME={{ rabbit_host_address }}
2323
-e RABBITMQ_PASSWORD={{ rabbit_password }}
2424
-e RABBITMQ_PORT={{ rabbit_port }}

ansible/group_vars/alpha-big-poppa-worker.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ container_envs: >
1313
-e GITHUB_TOKEN={{ big_poppa_github_token }}
1414
-e LOG_LEVEL=info
1515
-e NODE_ENV={{ node_env }}
16-
-e POSTGRES_CONNECT_STRING=postgres://{{ big_poppa_pg_user }}@localhost/{{ big_poppa_pg_database }}
16+
-e POSTGRES_CONNECT_STRING={{ big_poppa_pg_connection_string }}
1717
-e RABBITMQ_HOSTNAME={{ rabbit_host_address }}
1818
-e RABBITMQ_PASSWORD={{ rabbit_password }}
1919
-e RABBITMQ_PORT={{ rabbit_port }}

0 commit comments

Comments
 (0)