From a0b9f90a2eefb7d65a72503a0a970451efda1d04 Mon Sep 17 00:00:00 2001 From: Keigo Noha Date: Wed, 17 Jul 2019 12:16:57 +0900 Subject: [PATCH] Add a suffix for tmpwatch Change 641608 introduces tmpwatch into logrotate-crond container. However, LogrotatePurgeAfterDays parameter is parsed in hours because there is no suffix to the value. This commit adds a suffix, 'd' to the value. Closes-Bug: #1836848 Change-Id: I5e2c92a60f73b75a144228fd13ac31fff990a038 --- deployment/logrotate/logrotate-crond-container-puppet.yaml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/deployment/logrotate/logrotate-crond-container-puppet.yaml b/deployment/logrotate/logrotate-crond-container-puppet.yaml index b0dc815f88..c9172a6f2d 100644 --- a/deployment/logrotate/logrotate-crond-container-puppet.yaml +++ b/deployment/logrotate/logrotate-crond-container-puppet.yaml @@ -91,7 +91,7 @@ outputs: -X "/var/log/containers/*/*log" \ -X "/var/log/containers/*/*/*log" \ -X "/var/log/containers/*/*err" \ - {{ LogrotatePurgeAfterDays|int +1 }} \ + {{ LogrotatePurgeAfterDays|int +1 }}d \ /var/log/containers/ 2>&1 | logger -t container-tmpwatch vars: LogrotatePurgeAfterDays: {get_param: LogrotatePurgeAfterDays}