ansible-roles/elasticsearch
Jérémy Lecour f31a9db64c Elasticsearch: merge the curator role back into the main role 2017-07-13 15:31:04 +02:00
..
defaults Elasticsearch: merge the curator role back into the main role 2017-07-13 15:31:04 +02:00
files merge elastic sources back into roles 2017-07-13 14:43:07 +02:00
handlers Elasticsearch: merge the head plugin install back into the main role 2017-07-13 15:23:23 +02:00
meta Break dependencies and use include_role 2017-05-21 11:13:48 +02:00
tasks Elasticsearch: merge the curator role back into the main role 2017-07-13 15:31:04 +02:00
README.md Elasticsearch: merge the curator role back into the main role 2017-07-13 15:31:04 +02: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.

Curator

Curator can be installed. :

  • elasticsearch_curator : enable the package installation (default: False) ;

Head plugin

The "head" plugin can be installed :

  • elasticsearch_plugin_head : enable the plugin installation (default: False) ;
  • elasticsearch_plugin_head_basedir: base directory (default : /var/www) ;
  • elasticsearch_plugin_head_clone_name: directory name for git clone.

To use this plugin, you have to run the built-in webserver (using Grunt/NodeJS), or point a webserver to the path. More details here : https://github.com/mobz/elasticsearch-head#running-with-built-in-server

For example, to run the built-in server, with "www-data" user :

# sudo -u www-data bash -c 'cd /var/www/elasticsearch-head && grunt server'