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

Managing logrotate #114

Open
carlalexander opened this issue Apr 20, 2016 · 4 comments
Open

Managing logrotate #114

carlalexander opened this issue Apr 20, 2016 · 4 comments

Comments

@carlalexander
Copy link
Contributor

I need to change logrotate to rotate the nginx logs daily. I know I can do that with debops.logrotate. That said, does it make sense to have the role manage its own logrotate configuration?

@drybjed
Copy link
Member

drybjed commented Apr 20, 2016

Definitely! debops.logrotate is designed to being used as a role dependency, evident by logrotate__dependent_config variable. It's just that the role is new, and no other role has configuration for it yet.

If you remember to divert the stock /etc/logrotate.d/* configuration files by adding item.divert: True to the configuration, you can easily replace the default configuration with your own.

@carlalexander
Copy link
Contributor Author

Yeah, I'm doing that right now. I was just wondering if we should add that to debops.nginx?

@drybjed
Copy link
Member

drybjed commented Apr 20, 2016

I suppose we could... You mean the logs in /var/log/nginx/, right?

@carlalexander
Copy link
Contributor Author

Yep

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

2 participants