~ltrager/maas-images/check_gpg

Viewing all changes in revision 231.

  • Committer: Scott Moser
  • Date: 2015-09-10 23:54:57 UTC
  • mfrom: (225.1.9 import-centos)
  • Revision ID: smoser@ubuntu.com-20150910235457-lxbflrrnokiih42a
support importing centos images


* The import command reads from a specified yaml file which defines
  the source of the images, the content_id of the stream,
  a template for the product_id, and the versions to be downloaded

* This consumes the CentOS generic cloud images which use the
  standard kernel and have cloud-init preinstalled in qcow2 format.
  Since they don't provide a simplestream containing these images
  but do provide a sha256sum.txt in a static location it uses
  that as the source of metadata

* CentOS uses a date stamp as their version so we pull that string out as the
  version-id. Since CentOS published two versions of CentOS 7.0 we
  import two versions.

* CentOS 7.0 has deprecated python-oauth in favor of python-oauth2.
  This is despite the fact that the version of cloud-init that
  they ship with uses python-oauth in
  /usr/lib/python2.7/site-packages/cloudinit/sources/DataSourceMAAS.py.
  This forced me to pull a build of python-oauth from EPEL-testing.

* The curtin files pulled from 
   lp:~blake-rouse/maas-image-builder/trunk/files/head:/contrib/centos/

expand all expand all

Show diffs side-by-side

added added

removed removed

Lines of Context: