Skip to content

Commit

Permalink
Added env variables for alws fastapi_sqla dependencies
Browse files Browse the repository at this point in the history
  • Loading branch information
bklvsky committed Apr 23, 2024
1 parent 157ef8b commit a991aca
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 0 deletions.
1 change: 1 addition & 0 deletions inventories/one_vm/group_vars/all.yml
Original file line number Diff line number Diff line change
Expand Up @@ -41,6 +41,7 @@ pulp_host: "http://pulp"
pulp_password: "password"
pulp_user: "admin"
pulp_database_url: "postgresql+psycopg2://postgres:{{ pulp_password }}@pulp/pulp"
async_pulp_database_url: "postgresql+asyncpg://postgres:{{ pulp_password }}@pulp/pulp"

# cas_api_key: ""
# cas_signer_id: ""
Expand Down
10 changes: 10 additions & 0 deletions roles/dev_deploy/templates/vars.env.j2
Original file line number Diff line number Diff line change
Expand Up @@ -8,12 +8,22 @@ ALTS_TOKEN="{{ alts_jwt }}"
DATABASE_URL="{{ albs_db_url }}"
SYNC_DATABASE_URL="{{ albs_db_sync_url }}"
TEST_DATABASE_URL="{{ albs_test_db_url }}"
SQLALCHEMY_URL="{{ albs_db_sync_url }}"
SQLALCHEMY_POOL_PRE_PING=True
SQLALCHEMY_POOL_RECYCLE=3600
FASTAPI_SQLA__ASYNC__SQLALCHEMY_URL="{{ albs_db_url }}"
FASTAPI_SQLA__ASYNC__SQLALCHEMY_ECHO_POOL=True
FASTAPI_SQLA__PULP_ASYNC__SQLALCHEMY_URL="{{ async_pulp_database_url }}"
FASTAPI_SQLA__PULP_ASYNC__SQLALCHEMY_ECHO_POOL=True
REDIS_URL="redis://{{ container_name_prefix }}_redis_1:6379"
PULP_HOST="http://pulp"
PULP_INTERNAL_HOST="http://pulp"
PULP_USER="{{ pulp_user }}"
PULP_PASSWORD="{{ pulp_password }}"
PULP_DATABASE_URL="{{ pulp_database_url }}"
FASTAPI_SQLA__PULP__SQLALCHEMY_URL="{{ pulp_database_url }}"
FASTAPI_SQLA__PULP__SQLALCHEMY_POOL_PRE_PING=True
FASTAPI_SQLA__PULP__SQLALCHEMY_POOL_RECYCLE=3600
FRONTEND_BASEURL="{{ frontend_baseurl }}"
RABBITMQ_DEFAULT_HOST="rabbitmq-ts"
RABBITMQ_ERLANG_COOKIE="{{ rabbitmq_erlang_cookie }}"
Expand Down

0 comments on commit a991aca

Please sign in to comment.