maas-devel team mailing list archive
-
maas-devel team
-
Mailing list archive
-
Message #00696
Re: maintaining a local mirror of maas ephemeral images
On Mon, 1 Oct 2012, Scott Moser wrote:
> Hey all,
> I know that downloading the maas ephemeral images is a pain for testing
> on re-installation. since maas.ubuntu.com/images is only available over
> https it can't even be easily cached in a proxy.
>
> I've put a little tool up at [1] called 'mirror-query' that basically
> reads the /query information at https://maas.ubuntu.com/images/query and
> mirrors it locally. You can run a local web server and tell maas that
> your ephemeral images come from there.
>
> For an example, I run the following via cron:
> $ mirror-query --checksum https://maas.ubuntu.com/images \
> /archive/mirrors/maas-ephemeral
>
> And serve out /archive/mirrors/maas-ephemeral from
> http://nelson/mirrors/maas-ephemeral
>
> Then, I can tell maas to use *this* mirror instead of
> maas.ubuntu.com/images by setting the following in
> /etc/maas/import_ephemerals:
> REMOTE_IMAGES_MIRROR="http://nelson/mirrors/maas-ephemeral"
>
> maas-import-ephemerals (run from maas-import-isos or
> maas-import-ephemerals) will then use the local mirror.
I realized i missed the link to the tool:
https://code.launchpad.net/~smoser/+junk/mirror-query/
Follow ups
References