Skip to content

Fix NGINX Plus license removal option #340

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 4 commits into from
Nov 5, 2020
Merged

Conversation

alessfg
Copy link
Member

@alessfg alessfg commented Nov 4, 2020

Proposed 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)

The enablerepo parameter in the NGINX Plus install task is not needed and causes some issues when rerunning that task as part of the NGINX Plus license removal process.
@alessfg alessfg changed the title Fix NGINX plus license removal option Fix NGINX Plus license removal option Nov 4, 2020
@alessfg alessfg self-assigned this Nov 4, 2020
@alessfg alessfg added bug Something isn't working enhancement Enhance/improve an existing feature labels Nov 4, 2020
@alessfg alessfg added this to the 0.17.3 milestone Nov 4, 2020
@@ -1,15 +1,16 @@
---
- name: (Alpine Linux) Configure NGINX Plus repository
- name: (Alpine Linux) {{ nginx_license_status is defined | ternary('Remove', 'Configure') }} NGINX Plus repository
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

wow, this works? Totally thought you had to wrap the whole string in "" if jinja filters are used.

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@alessfg alessfg merged commit 3fb69de into main Nov 5, 2020
@alessfg alessfg deleted the fix-nginx-plus-license-removal branch November 5, 2020 14:37
@alessfg
Copy link
Member Author

alessfg commented Nov 5, 2020

I should note that there's no proper Molecule tests in place to test the license removal option since it's not idempotent as of today. Making the option idempotent is on the roadmap but there's no ETA.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working enhancement Enhance/improve an existing feature
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Removing the nginx_plus license fails on CentOS
2 participants