A puppet module for installing and configuring elasticsearch-curator.
Curator is used to manaage and clean up time-series elasticsearch indexes.
A good blog post on why and how curator.
NOTE: If you are using curator < 1.1.0 use version 0.0.1 of this module.
Currently this package supports installing curator via pip or your local package manager. RPM packages can easly be created by running:
fpm -s python -t rpm urllib3
fpm -s python -t rpm elasticsearch
fpm -s python -t rpm elasticsearch-curator
Generic curator install (local package manager)
class { 'curator': }
Install via pip
class { 'curator':
provider => 'pip'
}
Disable bloom filters on indexes over 2 days old
curator::job { 'logstash_bloom':
bloom_older => 2,
cron_hour => 7,
cron_minute => 20,
}
Delete marvel indexes older than a week
curator::job { 'marvel_delete':
prefix => '.marvel-',
delete_older => 7,
cron_hour => 7,
cron_minute => 02
}
Additional tuning and defaults are listed in the job.pp.
Only tested on CentOS 6
License:
Released under the Apache 2.0 licence
- Fork it
- Create a topic branch
- Improve/fix (with spec tests)
- Push new topic branch
- Submit a PR