-
Notifications
You must be signed in to change notification settings - Fork 95
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
Better reprovisionning #30
Better reprovisionning #30
Conversation
@samherve I open up this WIP pull request very early because I think some point need to be discussed. First of all, I need to know if you are interested in such a scenario and if I can go on sharing this work. My idea is basically the following:
I would also like to know if there is a reasonable minimum ansible version we can use as a requirement. As specified in a comment in the task nexus_install.yml (line 170), there is a systemd module available from ansible 2.2 that could be used. There might be other cases. Thanks for your time. Looking forward to read your comments. |
I actually have an answer to my last question. My bad. Didn't see there was an ansible minimum version in meta/main.yml set to 2.1. Can we consider moving forward to 2.2 ? |
The "Deploy Scripts" task was setting the scripts permissions correctly, then the "Chown configuration files" task was setting them to 644, making them non-executable. This uses the symbolic permission "X" which preserves executable if it already has x.
Still looking for a way to speed up groovy script reprovisionning. My first tests do not make things faster than they already are... |
Adding security realms activation task
Allow disabling authentication for Docker anonymous pull (Nexus 3.6.0)
Merge remote-tracking branch 'dannyk81/feature_docker_httpport_optional'
Merge remote-tracking branch 'linsomniac/script-permissions'
In some cases the GUI was not even usable after repository reconfiguration In all cases the changes were lost after a nexus restart See: https://issues.sonatype.org/browse/NEXUS-14948
Fix repository reconfiguration not being persistent
Finally found a way to compare scripts in a fast manner with rsync to redeclare only needed one. |
I already started to integrate this on my own repo since maintenance seems to be discontinued here. Since I rebased my branch on my own master with unmerged pull request taken from here, some commits from @dannyk81 are showing up from !26 !27 and !28 |
This role already takes into account reprovisionning of nexus. Meanwhile, when you just want to push some provisioning changes (add a repository, change a user password, add a new nexus role....), the nexus server will go down even though it is not always necessary.
The goal of this PR is to strengthen this kind of task by removing unnecessary stop/starts/script updates when you just need to reprovision.