buluma.elasticsearch
Ansible Role elasticsearch
This role helps you install and set up Elasticsearch on your machine.
GitHub | Version | Issues | Pull Requests | Downloads |
---|---|---|---|---|
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
- The
pip
packages listed in requirements.txt.
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 | ||
buluma.core_dependencies | ||
buluma.elastic_repo |
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:
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.
ansible-galaxy install buluma.elasticsearch