7e98da3d0f
For a very long time we've been parsing and using the lxc images as provided by upstream lxc. While these images are functional there are by no means optimal. In general they're quite a bit larger than they need to be and contian a lot of little sharp edges that have cut us over the years. This change removes all of the lxc image cache parsing and meta-data linking and simply downloads the rootfs a given url. To maintain compatibility with the legacy images a script has been created to parse the image index and return the legacy image url. The result of this change: * Access to smaller more optimal base image which is well known by the corresponding communities. * Deployers now have the ability to set and forget the download url for an internal image instead of having to create a cache infrastructure compatible with the lxc download template. * Any rootfs tarball will work as an image. * Fewer tasks are executed and less memory is consumed resulting in faster deployment times. * The base cache has a uniform meta-data setup giving all container types the same access to config, devices, and templating. Change-Id: I1775e775bbb7fe86bdffdd8296c2cff5ebc5bac8 Signed-off-by: Kevin Carter <kevin.carter@rackspace.com>
28 lines
1.5 KiB
YAML
28 lines
1.5 KiB
YAML
---
|
|
features:
|
|
- The option ``lxc_hosts_container_image_url`` has been added allowing
|
|
deployers to define their base image url to whatever it needs to be
|
|
removing the requirement for operators to maintain an internal LXC
|
|
index in the event they want to host a private repository.
|
|
- The option ``lxc_hosts_container_image_download_legacy`` has been
|
|
added allowing a deployer to enable the use of the legacy lxc image
|
|
repository. This option is a Boolean and has a default of **false**.
|
|
deprecations:
|
|
- The variable ``lxc_image_cache_server_mirrors`` has been deprecated
|
|
in the "lxc_hosts" role. This option has been replaced by the static
|
|
variable ``lxc_hosts_container_image_url``. This variable will continue
|
|
to function as a single element list allowing existing automation to
|
|
function when in legacy image mode but should not be considered in use
|
|
by default.
|
|
- The variable ``lxc_image_cache_server`` has been deprecated in the
|
|
``lxc_hosts`` role. This option has been replaced by the static
|
|
variable ``lxc_hosts_container_image_url``.
|
|
other:
|
|
- The use of **images.linuxcontainers.org** is no longer required. While
|
|
the images provided by that build system are perfectly functional they
|
|
have been less than optimal in a lot ways for a very long time. The
|
|
``lxc_hosts`` role will now pull a base image from the upstream distro
|
|
being deployed. If a deployer wishes to continue using the images from
|
|
**images.linuxcontainers.org** they are welcome to but it is no longer
|
|
forced.
|