diskimage-builder/elements/apt-sources
Martin André 2cd6f3fc3b Fix unbound variables in apt-{preferences,sources}
Also make the apt-sources element exit with a non-error status code
when the DIB_APT_SOURCES is not set.

This allows including the apt-preferences and apt-sources elements
even if DIB_DPKG_MANIFEST and DIB_APT_SOURCES are not exported.

Change-Id: I8507dd9c69d1371eab38f720dcfdd89aa5345e8b
2015-02-24 12:27:50 +00:00
..
extra-data.d Fix unbound variables in apt-{preferences,sources} 2015-02-24 12:27:50 +00:00
README.md Better apt-sources docs. 2014-03-06 13:29:13 +13:00

Override the default sources.list

For APT based systems, if your network connection is slow for the default sources.list in the upstream cloud image, you can define DIB_APT_SOURCES with your favorite sources.list to override it, before running devtest.sh.

The new sources.list will take effect at build time and run time.

If you want to use this element with tripleo-incubator scripts, set NODE_DIST / SEED_DIB_EXTRA_ARGS / UNDERCLOUD_DIB_EXTRA_ARGS / OVERCLOUD_CONTROL_DIB_EXTRA_ARGS / OVERCLOUD_COMPUTE_DIB_EXTRA_ARGS to make it take effect at the appropriate time.

For instance, before running devtest.sh: export DIB_APT_SOURCES=/etc/apt/sources.list export NODE_DIST="ubuntu apt-sources"