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

Allow adjustment of OS-specific defaults #9

Closed
njm506 opened this issue Oct 14, 2015 · 4 comments
Closed

Allow adjustment of OS-specific defaults #9

njm506 opened this issue Oct 14, 2015 · 4 comments

Comments

@njm506
Copy link

njm506 commented Oct 14, 2015

(Originally opened against the parent repository, but would be a useful improvement here) -

logrotate::defaults defines the logrotate::rule for things like wtmp and btmp. As the parameters aren't exposed, I can't change the rotation settings for these.

Would it be possible to add options to the logrotate class (in init.pp) to bypass defining these resources, so I can define them elsewhere with the settings I need, while still setting up logrotate.conf appropriately?

@robinbowes
Copy link

A simple way to do this would be to add an "include_os_defaults" parameter, which is "true" by default. If set to false, the defaults class is not included. How does that sound?

@njm506
Copy link
Author

njm506 commented Dec 14, 2015

That would certainly do the job nicely!

@amiryal
Copy link

amiryal commented Mar 20, 2016

See also this commit, which will let you leave the _real_ OS defaults alone. Anyone is welcome to improve on that patch, update the test suite and submit a PR.

IMO, leaving the OS defaults alone should have been the default behaviour, since OS detection code is fragile – a common problem with Puppet modules – which is better just being avoided.

@robinbowes
Copy link

@amiryal PRs with tests always gratefully received. :)

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

3 participants