ryandoyle / vagrancy

Your private Vagrant cloud
GNU General Public License v3.0
89 stars 29 forks source link

Maximum number of versions to keep #4

Open syntacticvexation opened 7 years ago

syntacticvexation commented 7 years ago

Is it possible to include a config option to enable only the latest X number of box builds for a particular artifact type?

ryandoyle commented 7 years ago

Hey there @syntacticvexation,

Interesting idea but I'm a bit concerned that the deletion ends up as a side-effect of uploading a new box. It also requires you to know what is the "oldest".

I think the safest way has to be for the client to get the list of boxes and the selectively delete the ones that are not wanted.

Thanks for the input!