From 3505c90fa516c780979f7217bf00758755921823 Mon Sep 17 00:00:00 2001 From: Mikhail S Medvedev Date: Sat, 6 Feb 2016 10:13:27 -0600 Subject: [PATCH] Fix periodic log cleanup '*.log' does not match filename postfixed with date, as most of them are, e.g. dib.devstack-fedora21-dib.log.2016-01-11_14. Add an additional filter to match that case. The cleanup was added in Iee55717bc5fbf88d739a4124f62f76d193cf3b75. Change-Id: I2a796ee1e9a9cb7f7ea83312227311c9515f09d1 --- manifests/init.pp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/manifests/init.pp b/manifests/init.pp index 76f3a15..b012760 100644 --- a/manifests/init.pp +++ b/manifests/init.pp @@ -311,7 +311,7 @@ class nodepool ( user => 'nodepool', hour => '1', minute => '0', - command => "find ${image_log_document_root} -name '*.log' -mtime +7 -execdir rm {} \\;", + command => "find ${image_log_document_root} \( -name '*.log' -o -name '*.log.*' \) -mtime +7 -execdir rm {} \\;", environment => 'PATH=/usr/bin:/bin:/usr/sbin:/sbin', } }