Look for curator in both /usr/bin and /usr/local/bin
Change-Id: I7adacd984aa8175ad991e0b0e42765ddcb4b8306
This commit is contained in:
parent
9779295da6
commit
4a8f77c2fb
@ -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
|
||||
|
Loading…
x
Reference in New Issue
Block a user