← Back to team overview

maas-devel team mailing list archive

Re: maintaining a local mirror of maas ephemeral images

 

Excerpts from Scott Moser's message of 2012-10-10 12:31:57 -0700:
> 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/
> 

Does this work for the cloud images too? They suffer from the same issue.


Follow ups

References