Skip to content

Commit

Permalink
Fix syntax error
Browse files Browse the repository at this point in the history
  • Loading branch information
V-Brooks authored Dec 19, 2024
1 parent 7c3c2d6 commit 4a2a294
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/roles/elasticsearch/templates/elasticsearch.yml.j2
Original file line number Diff line number Diff line change
Expand Up @@ -41,14 +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.') %}
{% if elasticsearch_major_version == "6.x" %}
xpack.ssl.truststore.path: /etc/elasticsearch/cacerts-java-extracted
xpack.ssl.truststore.password: changeit
{% elif elasticsearch_major_version.startswith('7.') %}
{% elif elasticsearch_major_version == "7.x" %}
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
# You can add additional handling here
{% endif %}
reindex.ssl.truststore.path: /etc/elasticsearch/cacerts-java-extracted
reindex.ssl.truststore.password: changeit

0 comments on commit 4a2a294

Please sign in to comment.