Clean up elasticsearch cleanup cronjob

The old cronjob to delete Elasticsearch indices has been unused and
set absent for a while. Recent changes in Puppet seem to have
started disliking the literal \% sequences in the string, so just go
ahead and remove it.

Change-Id: Ic81ac00935bc3f79f17371ef13ad4d1686ffb028
This commit is contained in:
Jeremy Stanley 2017-05-25 22:52:15 +00:00
parent c43b038156
commit 5cc230c4f2
1 changed files with 0 additions and 9 deletions

View File

@ -51,15 +51,6 @@ class openstackci::elasticsearch_node (
version => $es_version,
}
cron { 'delete_old_es_indices':
ensure => 'absent',
user => 'root',
hour => $es_indices_cleanup_hour,
minute => $es_indices_cleanup_minute,
command => "curl -sS -XDELETE \"http://localhost:9200/logstash-`date -d '${es_indices_cleanup_period}' +\%Y.\%m.\%d`/\" > /dev/null",
environment => 'PATH=/usr/bin:/bin:/usr/sbin:/sbin',
}
class { '::logstash::curator':
keep_for_days => '10',
}