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:
parent
c43b038156
commit
5cc230c4f2
@ -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',
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user