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', } }