mirror of
https://bitbucket.org/atlassian/dc-deployments-automation.git
synced 2025-12-13 00:13:09 -06:00
ITSD-487185 Add OpenSearch configuration to Jira jira-config.properties
This commit is contained in:
@@ -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') }}"
|
||||
|
||||
@@ -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:
|
||||
|
||||
Reference in New Issue
Block a user