diff --git a/roles/jira_config/templates/dbconfig.xml.j2 b/roles/jira_config/templates/dbconfig.xml.j2 index c2b92c4..19f72a4 100644 --- a/roles/jira_config/templates/dbconfig.xml.j2 +++ b/roles/jira_config/templates/dbconfig.xml.j2 @@ -8,7 +8,12 @@ {{ 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 + {"region": "{{ atl_secretsmanager_aws_region }}", "secretId": "{{ atl_secretsmanager_aws_secret_id }}"} + {% else -%} {{ atl_jdbc_password | replace("&", "&") }} + {% endif -%} {{ atl_db_driver }} {% if 'postgres' in atl_db_type %} tcpKeepAlive={{ atl_db_keepalive }};socketTimeout={{ atl_db_sockettimeout }}