1
0
forked from finallycoffee/base
finallycoffee.base/roles/elasticsearch
2024-10-29 17:53:16 +01:00
..
defaults feat(elasticsearch): add migrated role from finallycoffee.services 2023-07-28 15:36:14 +02:00
tasks meta: deprecate elasticsearch role 2024-10-29 17:53:16 +01:00
README.md feat(elasticsearch): add migrated role from finallycoffee.services 2023-07-28 15:36:14 +02:00

finallycoffee.base.elastiscsearch

A simple ansible role which deploys a single-node elastic container to provide an easy way to do some indexing.

Usage

Per default, /opt/elasticsearch/data is used to persist data, it is customizable by using either elasticsearch_base_path or elasticsearch_data_path.

As elasticsearch be can be quite memory heavy, the maximum amount of allowed RAM can be configured using elasticsearch_allocated_ram_mb, defaulting to 512 (mb).

The cluster name and discovery type can be overridden using elasticsearch_config_cluster_name (default: elastic) and elasticsearch_config_discovery_type (default: single-node), should one need a multi-node elasticsearch deployment.

Per default, no ports or networks are mapped, and explizit mapping using either ports (elasticsearch_container_ports) or networks (elasticsearch_container_networks) is required in order for other services to use elastic.