From 4a2a2946a526174ae5d559bfa1cfa28d5ef4b6c0 Mon Sep 17 00:00:00 2001 From: Vincent Brooks <38259624+V-Brooks@users.noreply.github.com> Date: Thu, 19 Dec 2024 11:36:54 -0600 Subject: [PATCH] Fix syntax error --- src/roles/elasticsearch/templates/elasticsearch.yml.j2 | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/roles/elasticsearch/templates/elasticsearch.yml.j2 b/src/roles/elasticsearch/templates/elasticsearch.yml.j2 index a001f0dd..e5979bc0 100644 --- a/src/roles/elasticsearch/templates/elasticsearch.yml.j2 +++ b/src/roles/elasticsearch/templates/elasticsearch.yml.j2 @@ -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