Skip to content
Snippets Groups Projects
Commit 950ef1d9 authored by Robin Sonnabend's avatar Robin Sonnabend
Browse files

Set MaxFileSec and MaxRetentionSec for journald if configured

parent 34de574a
No related branches found
No related tags found
No related merge requests found
......@@ -57,7 +57,7 @@
- config
- syslog
- name: configure journal size limits
- name: configure journal size and time limits
template:
src: size.conf.j2
dest: /etc/systemd/journald.conf.d/size.conf
......
......@@ -12,4 +12,10 @@ SystemMaxFileSize={{ systemd_journald.system_max_file_size }}
{% if systemd_journald.system_max_files is defined %}
SystemMaxFiles={{ systemd_journald.system_max_files }}
{% endif %}
{% if systemd_journald.max_file_sec is defined %}
MaxFileSec={{ systemd_journald.max_file_sec }}
{% endif %}
{% if systemd_journald.max_retention_sec is defined %}
MaxRetentionSec={{ systemd_journald.max_retention_sec }}
{% endif %}
{% endif %}
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment