Switch from a cron to curator

Instead of running curl in a cron, switch to the logstash::curator class
that runs a slightly more intelligent script with logging in /var/log.

Change-Id: Iba3c0726b789dcbcf58f2da071e6fa93d4cd67ae
Depends-On: Ic49c8649a0ad849a8d72900425e589e40b82a37f
This commit is contained in:
K Jonathan Harker 2015-09-11 12:03:58 -07:00
parent aac99f58f8
commit 1d1b206620
1 changed files with 5 additions and 0 deletions

View File

@ -51,6 +51,7 @@ class openstack_project::elasticsearch_node (
}
cron { 'delete_old_es_indices':
ensure => 'absent',
user => 'root',
hour => '2',
minute => '0',
@ -58,4 +59,8 @@ class openstack_project::elasticsearch_node (
environment => 'PATH=/usr/bin:/bin:/usr/sbin:/sbin',
}
class { 'logstash::curator':
keep_for_days => '10',
}
}