Merge "Switch from a cron to curator"
This commit is contained in:
commit
af13b1960e
@ -41,6 +41,7 @@ class openstack_project::elasticsearch_node (
|
|||||||
}
|
}
|
||||||
|
|
||||||
cron { 'delete_old_es_indices':
|
cron { 'delete_old_es_indices':
|
||||||
|
ensure => 'absent',
|
||||||
user => 'root',
|
user => 'root',
|
||||||
hour => '2',
|
hour => '2',
|
||||||
minute => '0',
|
minute => '0',
|
||||||
@ -48,4 +49,8 @@ class openstack_project::elasticsearch_node (
|
|||||||
environment => 'PATH=/usr/bin:/bin:/usr/sbin:/sbin',
|
environment => 'PATH=/usr/bin:/bin:/usr/sbin:/sbin',
|
||||||
}
|
}
|
||||||
|
|
||||||
|
class { 'logstash::curator':
|
||||||
|
keep_for_days => '10',
|
||||||
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user