diff options
author | Christian Breunig <christian@breunig.cc> | 2023-05-08 21:27:14 +0200 |
---|---|---|
committer | Christian Breunig <christian@breunig.cc> | 2023-05-08 22:45:53 +0200 |
commit | 1dc79cebc6d27a8f9d2f9ca9c2e0f2fd0809d940 (patch) | |
tree | 74b294e319ebad8c046756e91ce0f17a32fdcb3e /data/templates/rsyslog/logrotate.j2 | |
parent | 43b4d30ed0298565ce7cf891fbd72c5a7484dac6 (diff) | |
download | vyos-1x-1dc79cebc6d27a8f9d2f9ca9c2e0f2fd0809d940.tar.gz vyos-1x-1dc79cebc6d27a8f9d2f9ca9c2e0f2fd0809d940.zip |
syslog: T2778: migrate to get_config_dict()
Diffstat (limited to 'data/templates/rsyslog/logrotate.j2')
-rw-r--r-- | data/templates/rsyslog/logrotate.j2 | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/data/templates/rsyslog/logrotate.j2 b/data/templates/rsyslog/logrotate.j2 new file mode 100644 index 000000000..89d1a8a50 --- /dev/null +++ b/data/templates/rsyslog/logrotate.j2 @@ -0,0 +1,16 @@ +### Autogenerated by system-syslog.py ### +{% if file is vyos_defined %} +{% for file_name, file_options in file.items() %} +/var/log/user/{{ file_name }} { + missingok + notifempty + create + rotate {{ file_options.archive.file }} + size={{ file_options.archive.size | int // 1024 }}k + postrotate + invoke-rc.d rsyslog rotate > /dev/null + endscript +} + +{% endfor %} +{% endif %} |