elasticsearch_curator

elasticsearch-curator

Source Code General Workflow Readme Workflow Galaxy Workflow License: Apache-2.0 Ansible Role

Ansible role to install and configure Elasticsearch curator and index lifecycle management.

Building and improving this Ansible role have been sponsored by my current and previous employers like Cloudpunks GmbH and Proact Deutschland GmbH.

Table of content


Requirements

  • Minimum Ansible version: 2.10

Default Variables

elasticsearch_curator_actions

Definition of curator actions

Default value

elasticsearch_curator_actions:

Example usage

elasticsearch_curator_actions:
  1:
    action: delete_indices
    description: >-
      Delete indices older than 45 days (based on index name), for logstash-
      prefixed indices. Ignore the error if the filter does not result in an
      actionable list of indices (ignore_empty_list) and exit cleanly.
    options:
      ignore_empty_list: True
      disable_action: True
    filters:
      - filtertype: pattern
        kind: prefix
        value: logstash-
      - filtertype: age
        source: name
        direction: older
        timestring: '%Y.%m.%d'
        unit: months
        unit_count: 1

elasticsearch_curator_enabled

Enable installation and configuration

Default value

elasticsearch_curator_enabled: true

elasticsearch_curator_hosts

List of elasticsearch hosts

Default value

elasticsearch_curator_hosts: []

Example usage

elasticsearch_curator_hosts:
  - elastic1.example.com
  - elastic2.example.com
  - elastic3.example.com

elasticsearch_curator_interval

Interval to execute service

Default value

elasticsearch_curator_interval: daily

elasticsearch_curator_library

Optionally use a downgraded version of elasticsearch library

Default value

elasticsearch_curator_library:

elasticsearch_curator_log_blacklist

Default value

elasticsearch_curator_log_blacklist:
  - elasticsearch
  - urllib3

elasticsearch_curator_log_format

Log blacklist

Default value

elasticsearch_curator_log_format: default

elasticsearch_curator_log_level

Log level

Default value

elasticsearch_curator_log_level: INFO

elasticsearch_curator_restart_service

Restart timer and service or only timer

Default value

elasticsearch_curator_restart_service: true

elasticsearch_curator_version

Version to install

Default value

elasticsearch_curator_version: 8.0.16

Discovered Tags

elasticsearch-curator

Dependencies

  • None

License

Apache-2.0

Author

Thomas Boerger

About

Ansible role to install and configure Elasticsearch curator and index lifecycle management

Install
ansible-galaxy install rolehippie/elasticsearch-curator
GitHub repository
License
apache-2.0
Downloads
20
Owner
Ansible role collection of Webhippie