From 5cc230c4f22d14f7bfb57861c0d404d23c262dbe Mon Sep 17 00:00:00 2001 From: Jeremy Stanley Date: Thu, 25 May 2017 22:52:15 +0000 Subject: [PATCH] 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 --- manifests/elasticsearch_node.pp | 9 --------- 1 file changed, 9 deletions(-) diff --git a/manifests/elasticsearch_node.pp b/manifests/elasticsearch_node.pp index 1f294d1..04e54e3 100644 --- a/manifests/elasticsearch_node.pp +++ b/manifests/elasticsearch_node.pp @@ -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', }