lucasmaurice / ansible-role-elasticsearch

This is a role for install a docker of Elasticsearch.

Home Page:https://galaxy.ansible.com/lucasmaurice/ansible-role-elasticsearch

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Ansible Role: Elasticsearch License: MIT Build Status

Install a dockerized version of Elasticsearch on an host.

Role Dependancies

Role Variables

Available variables are listed below, along with default values (see defaults/main.yml):

---
# The docker image and version used to create the service
elasticsearch_docker_image: docker.elastic.co/elasticsearch/elasticsearch-oss
elasticsearch_version: 7.2.0

# The name of the service / container
elasticsearch_docker_name: es
elasticsearch_docker_hostname: "{{ elasticsearch_docker_name }}"

# If the service have to be started
elasticsearch_enabled: true

# The docker network in which to add the container
elasticsearch_docker_network: elk

# Http network bind settings
elasticsearch_http_host: 0.0.0.0
elasticsearch_http_port: 9200

# Name of the elasticsearch cluster
elasticsearch_cluster_name: effenco-elk-cluster

# Root directory of elasticsearch
elasticsearch_path: /opt/elasticsearch
  • elasticsearch_docker_image: The origin image you want to use.

  • elasticsearch_version: The version of Elasticsearch you want to install.

  • elasticsearch_docker_name: The name of the docker container and service.

  • elasticsearch_docker_hostname: The hostname of the docker inside of the docker network.

  • elasticsearch_enabled: If the service is enabled or not.

  • elasticsearch_docker_network: The name of the docker network to join.

  • elasticsearch_http_host: The hostname to expose for http.

  • elasticsearch_http_port: The port to expose for http.

  • elasticsearch_cluster_name: The name of the Elasticsearch cluster.

  • elasticsearch_path: The path to elasticsearch on the host.

Example Playbook

This is an example of how to use this role:

    - hosts: monitoring
        roles:
            - docker
            - { role: elasticsearch }

License

MIT

About

This is a role for install a docker of Elasticsearch.

https://galaxy.ansible.com/lucasmaurice/ansible-role-elasticsearch

License:MIT License


Languages

Language:Python 100.0%