diff --git a/docs/role-elasticsearch.md b/docs/role-elasticsearch.md index 566094bc..a53410a3 100644 --- a/docs/role-elasticsearch.md +++ b/docs/role-elasticsearch.md @@ -31,8 +31,8 @@ Role Variables * *elasticsearch_fs_repo*: List of paths that should be registered as repository for snapshots (only filesystem supported so far). (default: none) Remember, that every node needs access to the same share under the same path. * *elasticsearch_bootstrap_pw*: Bootstrap password for Elasticsearch (Default: `PleaseChangeMe`) * *elasticsearch_disable_systemcallfilterchecks*: Disable system call filter checks. This has a security impact but is necessary on some systems. Please refer to the [docs](https://www.elastic.co/guide/en/elasticsearch/reference/7.17/_system_call_filter_check.html) for details. (default: `false`) -* *ealsticsearch_http_publish_host*: (String) The network address for HTTP clients to contact the node using sniffing. Accepts an IP address, a hostname, or a special value. (default: `not set`) -* *ealsticsearch_http_publish_port*: (integer) The port of the HTTP publish address. Configure this setting only if you need the publish port to be different from http.port. (default: `not set`) +* *elasticsearch_http_publish_host*: (String) The network address for HTTP clients to contact the node using sniffing. Accepts an IP address, a hostname, or a special value. (default: `not set`) +* *elasticsearch_http_publish_port*: (integer) The port of the HTTP publish address. Configure this setting only if you need the publish port to be different from http.port. (default: `not set`) * *elasticsearch_pamlimits*: Set pam_limits neccessary for Elasticsearch. (Default: `true`) * *elasticsearch_check_calculation*: End play in checks (Default: `false`) diff --git a/roles/elasticsearch/templates/elasticsearch.yml.j2 b/roles/elasticsearch/templates/elasticsearch.yml.j2 index 04aed127..d059726c 100644 --- a/roles/elasticsearch/templates/elasticsearch.yml.j2 +++ b/roles/elasticsearch/templates/elasticsearch.yml.j2 @@ -3,11 +3,11 @@ path.data: {{ elasticsearch_datapath }} path.logs: {{ elasticsearch_logpath }} cluster.name: "{{ elasticsearch_clustername }}" network.host: ["_local_","_site_"] -{% if ealsticsearch_http_publish_host is defined %} -http.publish_host: "{{ ealsticsearch_http_publish_host }}" +{% if elasticsearch_http_publish_host is defined %} +http.publish_host: "{{ elasticsearch_http_publish_host }}" {% endif %} -{% if ealsticsearch_http_publish_port is defined %} -http.publish_port: {{ ealsticsearch_http_publish_port }} +{% if elasticsearch_http_publish_port is defined %} +http.publish_port: {{ elasticsearch_http_publish_port }} {% endif %} {% if elasticsearch_node_types is defined %}