Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/samdoran/ansible-role-elasticsearch-curator


https://github.com/samdoran/ansible-role-elasticsearch-curator

Last synced: 3 days ago
JSON representation

Awesome Lists containing this project

README

        

Elasticsearch Curator
=========

Elasticsearch Curator is a tool for mananging indices stored in Elasticsearch. It can close, delete, snapshot, and optimize indices. See the [official documentanion](https://www.elastic.co/guide/en/elasticsearch/client/curator/3.5/index.html) for details.

Requirements
------------

Access to the Elasticsearch database that Curator will manage.

Role Variables
--------------

| Name | Default Value | Description |
|-------------------|---------------------|----------------------|
| `curator_version` | `3` | Major version of `curator` to install. |
| `curator_jobs` | `[see defaults/main.yml` | Cron jobs that run `curator`. Read the [official documentation](https://www.elastic.co/guide/en/elasticsearch/client/curator/3.5/index.html) in order construct the commands. |
| `curator_repo_dir` | `[OS dependent]` | Path where repository file is created. See `vars/(RedHat|Debian).yml` |
| `curator_repo_file` | `[OS dependent` | Name of repository file. See `vars/(RedHat|Debian).yml` |
| `curator_package_list` | `[OS dependent]` | List of packages to install when installing `curator`. See `vars/(RedHat|Debian).yml` |

Dependencies
------------

samdoran.repo-epel (CentOS/RHEL 6 only)

Example Playbook
----------------

Only run the role on the first host in the group of elasticsearch nodes.

- hosts: elasticsearch
roles:
- { role: curator, when: ansible_hostname == groups['elasticsearch'][0] }

License
-------

MIT