Closed chkpnt closed 5 months ago
@chkpnt Yes, this makes perfect sense. You're not the only one to ask, and we do have API improvements in this area planned. There are a few gaps like this we'd like to close.
For your reference, here's the previously reported issue: https://github.com/sonatype/nexus-public/issues/149
What problem are you trying to solve? I'm provisioning Nexus via Ansible, which working nearly perfect: I can configure the admin password, anonymous access, email, roles, ldap and the corresponding group mapping, local users, realms, various repositories and the local truststore. One of the few setting I'm unable to configure for my use case (apart of #305 and #312) are the cleanup-policies.
Do you have a workaround you are using at present? Configure the cleanup-policies manually.
What feature or behavior is this required for? For full automatic provisioning of Nexus.
How could we solve this issue? (Not knowing is okay!) Providing a REST API to configure the cleanup-policies.
Tell us about your Nexus Repository deployment: what version, operating system, and database are you using? Official Docker-Image of Nexus 3.64.0.
Anything else? For my use case, this would also resolve #326: If the cleanup policies could be configured in advance of the repositories, the repositories' configurations could refer to the (then known) cleanup policies.