Switch from a cron to curator
Instead of running curl in a cron, switch to the logstash::curator class that runs a slightly more intelligent script with logging in /var/log. Change-Id: Iba3c0726b789dcbcf58f2da071e6fa93d4cd67ae Depends-On: Ic49c8649a0ad849a8d72900425e589e40b82a37f
This commit is contained in:
parent
aac99f58f8
commit
1d1b206620
@ -51,6 +51,7 @@ class openstack_project::elasticsearch_node (
|
||||
}
|
||||
|
||||
cron { 'delete_old_es_indices':
|
||||
ensure => 'absent',
|
||||
user => 'root',
|
||||
hour => '2',
|
||||
minute => '0',
|
||||
@ -58,4 +59,8 @@ class openstack_project::elasticsearch_node (
|
||||
environment => 'PATH=/usr/bin:/bin:/usr/sbin:/sbin',
|
||||
}
|
||||
|
||||
class { 'logstash::curator':
|
||||
keep_for_days => '10',
|
||||
}
|
||||
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user