-
Notifications
You must be signed in to change notification settings - Fork 139
[ansible/artifactory] refactored Nginx role (DRY). #443
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
base: master
Are you sure you want to change the base?
Conversation
Ansible/ansible_collections/jfrog/platform/roles/artifactory_nginx/tasks/Debian-ownstream.yml
Show resolved
Hide resolved
Ansible/ansible_collections/jfrog/platform/roles/artifactory_nginx/tasks/RedHat-ownstream.yml
Show resolved
Hide resolved
Ansible/ansible_collections/jfrog/platform/roles/artifactory_nginx/tasks/Debian-ownstream.yml
Outdated
Show resolved
Hide resolved
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Can you rebase from master again and see my comments .
Ideally, I 'm looking at single role for nginx and also , an option to choose (or skip ) upstream repos for nginx and postgresql
Do you want to update changes for postgresql role as well in the same PR - will be happy to review them .
ad1b7ea
to
5d44748
Compare
I rather have this merged now, this PR is quite large and postgres changes would deserve a distinct PR. |
Rebased and updated.
Since PostgreSQL port would be firewalled anyway it makes sense to only use the distro, because of enterprise users.
Have a look at this role which could be a more secure replacement than the one in this collection: |
@bbaassssiiee Thanks ! One more thing - we are planning to move from mainline : https://nginx.org/packages/mainline/ |
That would be the reason for upstream. |
PR Checklist
[Place an '[x]' (no spaces) in all applicable fields. Please remove unrelated fields.]
[ansible/artifactory]
)What this PR does / why we need it:
There were two roles in master that basically did the same thing and duplicated a lot of code:
I rewrote artifactory_nginx so it behaves just like the other two (which were mutually exclusive in use). Also I added a way to install the Nginx module 1.20 (or newer) from the Yum repo's configured on the machine. This is helpful in on-premises deployments where every proxy whitelist item needs permission from security.
Which issue this PR fixes (optional, in
fixes #<issue number>(, fixes #<issue_number>, ...)
format, will close that issue when PR gets merged): fixes #Partial fix for #323
Special notes for your reviewer:
Succeeds PR #337