Look for curator in both /usr/bin and /usr/local/bin

Change-Id: I7adacd984aa8175ad991e0b0e42765ddcb4b8306
This commit is contained in:
K Jonathan Harker 2015-11-17 09:43:49 -08:00
parent 9779295da6
commit 4a8f77c2fb
1 changed files with 5 additions and 4 deletions

View File

@ -34,10 +34,11 @@ class logstash::curator (
}
cron { 'cleanup_old_es_indices':
user => 'root',
hour => $cron_hour,
minute => $cron_minute,
command => "/usr/bin/curator --logfile /var/log/curator.log delete indices --older-than ${keep_for_days} --time-unit days --timestring %Y.%m.%d"
user => 'root',
hour => $cron_hour,
minute => $cron_minute,
environment => 'PATH=/usr/bin:/usr/local/bin',
command => "curator --logfile /var/log/curator.log delete indices --older-than ${keep_for_days} --time-unit days --timestring %Y.%m.%d"
}
include ::logrotate