voxpupuli/puppet-logrotate

module compulsorily generate time interval option which conflict with size option

Opened this issue · 0 comments

Affected Puppet, Ruby, OS and module versions/distributions

  • Puppet: any
  • Ruby: any
  • Distribution: any
  • Module version: 5.0.0

How to reproduce (e.g Puppet code you use)

No matter whether to set 'rotate_every' parameter, the generated logrotate.conf will have a rotate time interval option (since the default value is weekly). But as logrotate manual shows, its option 'size' mutually exclusive with the time interval options. It seems when both 'size' and 'weekly/daily/etc...' are set, which is written later in logrotate.conf will take effect. Unfortunately, this puppet module always place size option before time interval option so it cannot make logrotate to rotate only according to file size.

What are you seeing

just as above

What behaviour did you expect instead

Without 'rotate_every' be setted, module should not generate a time interval option in conf file.

Output log

N/A

Any additional information you'd like to impart

N/A