sonatype / nexus-public

Sonatype Nexus Repository Open-source codebase mirror
https://www.sonatype.com/products/repository-oss-download
Eclipse Public License 1.0
1.84k stars 557 forks source link

REST-API for cleanup policies #327

Closed chkpnt closed 5 months ago

chkpnt commented 5 months ago

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.

mrprescott commented 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