ITSD-487185 Add OpenSearch configuration to Jira jira-config.properties

This commit is contained in:
Glenn Stewart
2025-09-30 11:48:15 +10:00
parent db49f6c819
commit 20f38cc26a
2 changed files with 22 additions and 0 deletions

View File

@@ -39,3 +39,8 @@ atl_db_removeabandoned: 'true'
atl_db_removeabandonedtimeout: '300'
atl_db_testwhileidle: 'true'
atl_db_testonborrow: 'false'
# OpenSearch configuration
atl_opensearch_endpoint: "{{ lookup('env', 'ATL_OPENSEARCH_ENDPOINT') }}"
atl_opensearch_password: "{{ lookup('env', 'ATL_OPENSEARCH_PASSWORD') }}"
atl_opensearch_user: "{{ lookup('env', 'ATL_OPENSEARCH_USER') }}"

View File

@@ -33,6 +33,23 @@
mode: 0644
when: jira_config_properties.stat.exists
- name: Configure OpenSearch settings in jira-config.properties
ansible.builtin.lineinfile:
path: "{{ atl_product_home }}/jira-config.properties"
create: true
owner: "{{ atl_product_user }}"
group: "{{ atl_product_user }}"
mode: 0644
line: "{{ item }}"
with_items:
- "search.platform=opensearch"
- "opensearch.http.url={{ atl_opensearch_endpoint }}"
- "opensearch.aws.region={{ atl_aws_region }}"
- "jira.search.api.reindex.bulk.request.size=10"
when:
- atl_opensearch_endpoint is defined and atl_opensearch_endpoint | length > 0
- atl_aws_region is defined
- name: Override JVM memory settings.
# Ugly but necessary as the product installs this file so we need to make the change here.
ansible.builtin.lineinfile: