Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

module compulsorily generate time interval option which conflict with size option #180

Open
taleintervenor opened this issue Feb 19, 2021 · 0 comments

Comments

@taleintervenor
Copy link

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant