Skip to content

Commit

Permalink
Add logic to elasticsearch.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
V-Brooks authored Dec 19, 2024
1 parent 9824094 commit 7c3c2d6
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions src/roles/elasticsearch/templates/elasticsearch.yml.j2
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,14 @@ path.logs: {{ m_meza_data }}/elasticsearch/log
# Fixes xpack SSL java access denied at ES startup.
#
# Probably not the best way to do this. Suggestions welcome
{% if elasticsearch_major_version.startswith('6.') %}
xpack.ssl.truststore.path: /etc/elasticsearch/cacerts-java-extracted
xpack.ssl.truststore.password: changeit
{% elif elasticsearch_major_version.startswith('7.') %}
xpack.http.ssl.truststore.path: /etc/elasticsearch/cacerts-java-extracted
xpack.http.ssl.truststore.password: changeit
{% else %}
# You can add additional handling here if needed for other versions
{% endif %}
reindex.ssl.truststore.path: /etc/elasticsearch/cacerts-java-extracted
reindex.ssl.truststore.password: changeit

0 comments on commit 7c3c2d6

Please sign in to comment.