Skip to content

Run logrotate only logrotate config changes #302

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

Merged
merged 3 commits into from
Aug 19, 2020

Conversation

clwluvw
Copy link
Contributor

@clwluvw clwluvw commented Aug 10, 2020

Proposed changes

Use notify handler to run logrotate if logrotate config changes.

Checklist

Before creating a PR, run through this checklist and mark each as complete.

  • I have read the CONTRIBUTING document
  • I have added Molecule tests that prove my fix is effective or that my feature works
  • I have checked that all Molecule tests pass after adding my changes
  • I have updated any relevant documentation (defaults/main/*.yml, README.md and CHANGELOG.md)

@alessfg alessfg added the enhancement Enhance/improve an existing feature label Aug 10, 2020
@alessfg alessfg added this to the 0.15.0 milestone Aug 10, 2020
@alessfg
Copy link
Member

alessfg commented Aug 10, 2020

There're some issues with the Travis Docker service atm. Not entirely sure if it's on their end or whether some package broke (I can't reproduce the issue myself so I'm going to go with the former).I'll rerun the tests when the issue gets fixed.

@clwluvw
Copy link
Contributor Author

clwluvw commented Aug 10, 2020

@alessfg
Copy link
Member

alessfg commented Aug 10, 2020

Hm I would rather leave it there since the debug output tasks can also fail if NGINX isn't running already (which happens to be the case in some distros where the service doesn't get started upon installation of NGINX). Is there any particular reason why you'd like to see it removed?

@alessfg alessfg mentioned this pull request Aug 10, 2020
4 tasks
@clwluvw
Copy link
Contributor Author

clwluvw commented Aug 10, 2020

@alessfg Not really just a warning that can be ignored I think

[WARNING]: flush_handlers task does not support when conditional

@alessfg
Copy link
Member

alessfg commented Aug 10, 2020

Yep. That warning doesn't apply in this case.

@alessfg alessfg modified the milestones: 0.15.0, 0.16.0 Aug 19, 2020
@clwluvw
Copy link
Contributor Author

clwluvw commented Aug 19, 2020

According to #298 (comment) if this repo is going to deprecate, is there any reason there is no logrotate config in your mentioned repo?

@alessfg
Copy link
Member

alessfg commented Aug 19, 2020

This repo won't deprecate. It's going to continue being used to install and setup NGINX, while NGINX config related tasks while move to another repo.

@clwluvw
Copy link
Contributor Author

clwluvw commented Aug 19, 2020

This repo won't deprecate. It's going to continue being used to install and setup NGINX, while NGINX config related tasks while move to another repo.

@alessfg So this repo is just used for installing and the repo you mentioned is used to configure an installed nginx?
If yes can you please explain more why?

@alessfg
Copy link
Member

alessfg commented Aug 19, 2020

Check #306 for a brief explanation as to why.

@clwluvw
Copy link
Contributor Author

clwluvw commented Aug 19, 2020

@alessfg Makes sense, thanks. So could you please check the CI why it fails again? 😃

@alessfg
Copy link
Member

alessfg commented Aug 19, 2020

I cancelled the build to make #306 go faster. I'll rerun it once I merge that PR.

@alessfg alessfg merged commit ab24604 into nginx:master Aug 19, 2020
@alessfg alessfg modified the milestones: 0.16.0, 0.15.0 Aug 19, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement Enhance/improve an existing feature
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants