Generalize the "arch_boxes_sync" ansible role and add WSL images to it
Hi
This MR aims to generalize the "arch_boxes_sync" ansible role to handle other images types and add the WSL images to it.
The role (and related files) is now called "arch_images_sync" and iterates over arguments to handle other images types in a dedicated path on the ftp (under e.g. /srv/ftp/images/{boxes,wsl,...}
.
To add new images types to the script, one simply has to add the additional image type as an argument in the ExecStart
line of the .service
unit file and add a case
in the script to define the $PROJECT_ID
and $MAX_RELEASES
for it.
WARNING:
Note that this will move boxes images currently hosted under /srv/ftp/images/
to /srv/ftp/images/boxes/
.
It also requires the WSL PoC / proposal repo to be merged under the archlinux namespace at https://gitlab.archlinux.org/archlinux/archlinux-wsl. I'm putting this MR as a draft while waiting for this to be done.