ansible-roles/elasticsearch
Jérémy Lecour 42834aa438 Add metadata for elastic roles 2017-05-10 00:09:23 +02:00
..
defaults Squash: conventions, evolinux, etc-git… 2016-12-21 16:12:30 +01:00
handlers [WIP] Elasticsearch role 2016-12-21 16:12:25 +01:00
meta Add metadata for elastic roles 2017-05-10 00:09:23 +02:00
tasks Ansible >= 2.2 supported 2017-03-24 14:15:09 +01:00
README.md JVM Heap size configurable for Elasticsearch 2016-12-21 16:12:26 +01:00

README.md

elasticsearch

Install Elasticsearch.

Tasks

Tasks are extracted in several files, included in tasks/main.yml :

  • packages.yml : install packages ;
  • configuration.yml : configure the service;
  • bootstrap_checks.yml : deal with bootstrap checks;
  • datadir.yml : data directory customization ;
  • tmpdir.yml : temporary directory customization ;

Available variables

  • elasticsearch_cluster_name: cluster name ;
  • elasticsearch_node_name: node name, defaults to hostname ;
  • elasticsearch_network_host: which interfaces to bind to ;
  • elasticsearch_network_publish_host: which interface to publish ;
  • elasticsearch_custom_datadir: custom datadir ;
  • elasticsearch_custom_tmpdir: custom tmpdir ;
  • elasticsearch_jvm_xms: mininum heap size reserved for the JVM (defaults to 2g).
  • elasticsearch_jvm_xmx: maximum heap size reserved for the JVM (defaults to 2g).

By default, Elasticsearch will listen to the public interfaces (_site_ cf. https://www.elastic.co/guide/en/elasticsearch/reference/5.0/important-settings.html#network.host), so you will have to secure it, with firewall rules for example.