- Overview
- Module Description - What the module does and why it is useful
- Setup - The basics of getting started with curator
- Usage - Configuration options and additional functionality
- Reference - An under-the-hood peek at what the module is doing and how
- Limitations - OS compatibility, etc.
- Development - Guide for contributing to the module
This module manages Elasticsearch Curator (https://www.elastic.co/guide/en/elasticsearch/client/curator/current/index.html)
The module will install Curator via the Python PIP package and manage the cronjobs to schedule different Curator commands.
See the official Curator documentation for more details : https://www.elastic.co/guide/en/elasticsearch/client/curator/current/commands.html
- Install Python PIP if not present
- Install elasticsearch-curator PIP package
- Change the crontab
- puppetlabs/stdlib
See : https://www.elastic.co/guide/en/elasticsearch/client/curator/current/getting-started.html
class { 'curator': }
class { 'curator':
version => '3.3.0',
crons => {
'logstash-cleanup' => {
command => 'delete',
subcommand => 'indices',
parameters => "--time-unit days --older-than 7 --timestring '\%Y.\%m.\%d' --prefix logstash-",
cron_minute => 0,
cron_hour => 0,
}
}
}
class { 'curator': }
---
curator::version: 3.3.0
curator::crons:
logstash:
command: 'delete'
subcommand: 'indices'
parameters: "--time-unit hours --older-than 7 --timestring '\\%Y.\\%m.\\%d.\\%H' --prefix logstash-"
cron_minute: '30'
cron_hour: '*/1'
puppet-report:
command: 'delete'
parameters: "--time-unit days --older-than 14 --timestring \\%Y.\\%m.\\%d --prefix puppet-report-"
This module has been tested on Ubuntu and should work on Redhat/CentOS too.
For Redhat/CentOS, you will need to deploy the EPEL repository before using the module (See : https://fedoraproject.org/wiki/EPEL). This module doesn't manage EPEL.
See the CONTRIBUTING.md file. Pull requests are welcome :)