46 lines
1.4 KiB
Django/Jinja
46 lines
1.4 KiB
Django/Jinja
---
|
|
# ======================== Elasticsearch Configuration =========================
|
|
cluster:
|
|
name: {{ cloud_name | default('elasticsearch') }}.{{ cloud_stage }}
|
|
initial_master_nodes:
|
|
{% for node in elastic_cluster_nodes %}
|
|
- {{ node }}
|
|
{% endfor %}
|
|
node:
|
|
name: {{ ansible_hostname }}
|
|
#attr:
|
|
# rack: r1
|
|
|
|
# ----------------------------------- Paths ------------------------------------
|
|
path:
|
|
data: {{ elastic_data_location }}
|
|
logs: {{ elastic_logs_location }}
|
|
|
|
# ----------------------------------- Memory -----------------------------------
|
|
bootstrap:
|
|
memory_lock: true
|
|
|
|
# ---------------------------------- Network -----------------------------------
|
|
network:
|
|
host: {{ ansible_default_ipv4.address }}
|
|
http:
|
|
{{ elastic_config_http | to_nice_yaml | indent(4) }}
|
|
|
|
# --------------------------------- Discovery ----------------------------------
|
|
discovery:
|
|
seed_hosts:
|
|
{% for node in elastic_cluster_nodes %}
|
|
- {{ node }}.hnw
|
|
{% endfor -%}
|
|
|
|
# ---------------------------------- Various -----------------------------------
|
|
action:
|
|
destructive_requires_name: true
|
|
|
|
#----------------------- BEGIN SECURITY AUTO CONFIGURATION -----------------------
|
|
xpack:
|
|
{{ elastic_config_xpack | to_nice_yaml | indent(4) }}
|
|
transport:
|
|
host: {{ elastic_transport_host }}
|
|
|
|
#----------------------- END SECURITY AUTO CONFIGURATION ------------------------- |