Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Changes required to install Elasticsearch 6 on staging #6421

Merged
merged 19 commits into from
Nov 14, 2024
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
35 changes: 35 additions & 0 deletions src/commcare_cloud/ansible/roles/elasticsearch/tasks/misc_v6.yml
gherceg marked this conversation as resolved.
Show resolved Hide resolved
Original file line number Diff line number Diff line change
@@ -0,0 +1,35 @@
- name: Copy Elasticsearch logging config
become: yes
copy:
src: log4j2.properties
dest: "{{ elasticsearch_conf_dir }}/log4j2.properties"
owner: elasticsearch
group: elasticsearch
register: copy_elasticsearch_logging_result
tags:
- es_conf

- name: Copy Elasticsearch JVM Options
become: yes
template:
src: config/jvm.options.j2
dest: "{{ elasticsearch_conf_dir }}/jvm.options"
owner: elasticsearch
group: elasticsearch
register: copy_elasticsearch_logging_result
tags:
- es_conf

- name: Install elasticsearch python client
become: yes
pip:
name: elasticsearch>=6.0.0,<7.0.0

- name: Check for installed plugins
shell: "{{ elasticsearch_home }}/bin/elasticsearch-plugin list"
register: installed_plugins

- name: Install elasticsearch phonetic plugin
become: yes
shell: "{{ elasticsearch_home }}/bin/elasticsearch-plugin install analysis-phonetic"
when: (installed_plugins.stdout is defined) and ('analysis-phonetic' not in installed_plugins.stdout) and es_plugins_phonetic_enabled