From ed57ca1bc399e34339641178c7df42e1876a8671 Mon Sep 17 00:00:00 2001 From: Yevhen Ivantsov Date: Mon, 7 Aug 2023 08:43:54 +1000 Subject: [PATCH] Add a condition in dbconfig template to use SecretsManager --- roles/jira_config/templates/dbconfig.xml.j2 | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/roles/jira_config/templates/dbconfig.xml.j2 b/roles/jira_config/templates/dbconfig.xml.j2 index c2b92c4..4e2bd9c 100644 --- a/roles/jira_config/templates/dbconfig.xml.j2 +++ b/roles/jira_config/templates/dbconfig.xml.j2 @@ -8,7 +8,11 @@ {{ atl_jdbc_url }} {{ atl_jdbc_user }} + {% if atl_product_version.split(".")[:2] | join(".") is version('9.11', '>=') and atl_secretsmanager_aws_region is defined and atl_secretsmanager_aws_region != "" and atl_secretsmanager_aws_secret_id is defined and atl_secretsmanager_aws_secret_id != "" -%} + com.atlassian.secrets.store.aws.AwsSecretsManagerStore + {% else -%} {{ atl_jdbc_password | replace("&", "&") }} + {% endif -%} {{ atl_db_driver }} {% if 'postgres' in atl_db_type %} tcpKeepAlive={{ atl_db_keepalive }};socketTimeout={{ atl_db_sockettimeout }}