Skip to content
This repository has been archived by the owner on Feb 29, 2024. It is now read-only.

Commit

Permalink
Add a suffix for tmpwatch
Browse files Browse the repository at this point in the history
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
  • Loading branch information
knoha-rh committed Jul 17, 2019
1 parent 2b05e90 commit a0b9f90
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion deployment/logrotate/logrotate-crond-container-puppet.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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}
Expand Down

0 comments on commit a0b9f90

Please sign in to comment.