buluma.elasticsearch

Ansible Role elasticsearch

This role helps you install and set up Elasticsearch on your machine.

GitHub Version Issues Pull Requests Downloads
github Version Issues PullRequests Ansible Role

Example Playbook

This example is found in molecule/default/converge.yml and is tested whenever changes are made.

---
- name: Converge
  hosts: all
  become: true
  gather_facts: true

  roles:
    - role: buluma.elasticsearch

Before running this, make sure your machine is ready. In Continuous Integration (CI), this is done with molecule/default/prepare.yml:

---
- name: Prepare
  hosts: all
  become: true
  gather_facts: false

  roles:
    - role: buluma.bootstrap
    - role: buluma.core_dependencies
    - role: buluma.elastic_repo

You can find a detailed guide and example on how to use these roles.

Role Variables

Default values for the settings can be found in defaults/main.yml:

---
# Defaults for Elasticsearch

# Choose either "oss" (Apache 2.0 license) or "elastic" (Elastic license).
elasticsearch_type: oss

# IP address to bind to.
elasticsearch_network_host: "0.0.0.0"

# Port to bind on.
elasticsearch_http_port: 9200

# List of addresses for master-eligible nodes in the cluster.
elasticsearch_discovery_seed_hosts: []

# Initial set of master-eligible nodes for a new cluster.
elasticsearch_cluster_initial_master_nodes: []

Requirements

State of Used Roles

Here are the roles used to set up the machine. You can choose different methods if you prefer.

Requirement GitHub Version
buluma.bootstrap Ansible Molecule Version
buluma.core_dependencies Ansible Molecule Version
buluma.elastic_repo Ansible Molecule Version

Context

This role works with many other related roles. Check out the documentation for these roles here for more details.

Here’s a visual of the related roles:

dependencies

Compatibility

This role has been tested with the following container images:

Container Tags
Amazon all
Debian all
Enterprise Linux 8, 9
Fedora 39, 38, 40
Ubuntu focal, bionic, jammy, lunar, noble

You need at least Ansible version 2.12. Tests have been conducted on:

  • The previous version.
  • The current version.
  • The development version.

If you encounter any issues, please report them on GitHub.

Changelog

For the history of changes, check here.

License

This role is licensed under Apache-2.0.

Author Information

Created by Shadow Walker.

Informazioni sul progetto

Install and configure Elasticsearch on your system.

Installa
ansible-galaxy install buluma.elasticsearch
Licenza
apache-2.0
Download
128.6k
Proprietario
DevOps Engineer