DCD-621: Uses ATL_DB_ENGINE paramerter to infer database type. If db_engine is 'aurora_postgres', then use aurrora postgres db type. Else use default postgres db_type

This commit is contained in:
Varun Arbatti
2019-08-28 12:21:28 +10:00
parent 9e6eb41734
commit 2a00f33508
8 changed files with 160 additions and 3 deletions

View File

@@ -65,6 +65,7 @@ atl_db_removeabandoned: "{{ lookup('env', 'ATL_DB_REMOVEABANDONED') or 'true' }}
atl_db_removeabandonedtimeout: "{{ lookup('env', 'ATL_DB_REMOVEABANDONEDTIMEOUT') or '300' }}"
atl_db_testwhileidle: "{{ lookup('env', 'ATL_DB_TESTWHILEIDLE') or 'true'}}"
atl_db_testonborrow: "{{ lookup('env', 'ATL_DB_TESTONBORROW') or 'false' }}"
atl_db_type: "{{ 'postgresaurora96' if atl_db_engine == 'aurora_postgres' else 'postgres72'}}"
atl_jdbc_db_name: "{{ lookup('env', 'ATL_JDBC_DB_NAME') }}"
atl_jdbc_user: "{{ lookup('env', 'ATL_JDBC_USER') }}"