Deperecate apt-mirror element

There are upstream methods for setting a mirror which are much more
flexible, lets just document and point users at them.

Change-Id: I442e4695d56086932403fb5893da89ead203c86d
This commit is contained in:
Gregory Haynes 2016-08-22 17:27:40 +00:00 committed by Adam Harwell
parent 628273aaf3
commit f5c1549ebd
2 changed files with 10 additions and 0 deletions

View File

@ -0,0 +1,3 @@
if [ -n "${UBUNTU_MIRROR:-}" ]; then
echo "DEPRECATED WARNING: Use of apt-mirror element is deprecated. See http://docs.openstack.org/developer/diskimage-builder/elements/ubuntu/README.html and http://docs.openstack.org/developer/diskimage-builder/elements/apt-sources/README.html for alternate methods of setting an ubuntu mirror."
fi

View File

@ -1,6 +1,13 @@
This element enables the use of a mirror for updating Ubuntu cloud images.
Using a local mirror increases the speed of building the image.
Note: This element is deprectated in favor of the diskimage-builder methods
for setting a mirror. See
http://docs.openstack.org/developer/diskimage-builder/elements/ubuntu/README.html
and
http://docs.openstack.org/developer/diskimage-builder/elements/apt-sources/README.html
for more information.
The Ubuntu mirror URL is specified by setting the 'UBUNTU_MIRROR' environment
variable.