Skip to content
This repository was archived by the owner on Nov 24, 2020. It is now read-only.

deimosfr/ansible-elasticsearch

Folders and files

NameName
Last commit message
Last commit date
Jul 9, 2016
Jul 9, 2016
Jun 8, 2015
Feb 20, 2017
Dec 26, 2015
Jul 9, 2016
Jul 9, 2016
Jul 28, 2014
Jul 9, 2016

Repository files navigation

Ansible ElasticSearch playbook Build Status

This role installs and configures ElasticSearch on a server.

Requirements

This role requires Ansible 1.4 or higher and platform requirements are listed in the metadata file.

Role Variables

The variables that can be passed to this role and a brief description about them are as follows.

# ES v2
es_version: "2.x"
#es_version: "1.7"
es_apt_gpg_url: "https://packages.elastic.co/GPG-KEY-elasticsearch"
es_apt_repo: "deb https://packages.elasticsearch.org/elasticsearch/{{es_version}}/debian stable main"

# Java
es_install_java: True
es_java_version: "openjdk-8-jdk"

es_fqdn: localhost
es_port: 9200

# Force user ids
es_uid:
es_gid:

# Manage service
es_manage_service: True
es_start_options:
   ES_HEAP_SIZE: "2g"

# Configuration file
es_config_file:

# Install plugins
es_install_plugins:
  - name: head
    path: mobz/elasticsearch-head
  - name: kopf
    path: lmenezes/elasticsearch-kopf
  - name: HQ
    path: royrusso/elasticsearch-HQ
  - name: marvel
    path: elasticsearch/marvel/latest

# Curator tool
es_install_curator: False

Examples

# Roles
- name: log server
  hosts: logs
  user: root
  roles:
    - deimosfr.elasticsearch
  vars_files:
    - "host_vars/elasticsearch.yml"

Dependencies

None

License

GPL

Author Information

Pierre Mavro / deimosfr