Change syslog logrotate options

Hi,

i want to change the logrotate configuration for syslog on /etc/logrotate.d/syslog. I tried different ways to do so, but without any luck:

  • Create an own service overwriting existing file
  • Use write_files in cloud config

The file is always overwritten at some point. Can you point me to the right direction?

Reason:
I am running the rancher os on raspberry pi 3 and at some point to partition of the system gets filled up by the log files (https://github.com/rancher/os/issues/2239). I could resize the partition, but this would mean, on every update a “shrink --> dd --> extend” is needed.
So I want to change the “daily” to “size 25MB”.

Thanks.