Merge "Update elasticsearch custodial crons."

This commit is contained in:
Jenkins 2013-07-31 22:58:37 +00:00 committed by Gerrit Code Review
commit 9ce45a527e

View File

@ -36,13 +36,14 @@ class openstack_project::elasticsearch (
cron { 'delete_old_es_indices':
user => 'root',
hour => '5',
hour => '2',
minute => '0',
command => 'curl -sS -XDELETE "http://localhost:9200/logstash-`date -d \'2 weeks ago\' +\%Y.\%m.\%d`/" > /dev/null',
environment => 'PATH=/usr/bin:/bin:/usr/sbin:/sbin',
}
cron { 'optimize_old_es_indices':
ensure => absent,
user => 'root',
hour => '13',
minute => '0',