Merge "Download and define base image if configured"

This commit is contained in:
Zuul
2019-05-23 11:37:56 +00:00
committed by Gerrit Code Review
2 changed files with 6 additions and 1 deletions

View File

@@ -50,6 +50,8 @@ Role Variables
* `skip_build_images` -- skip building images if there present or cached
(default: true), setting it to false will add '--no-skip' option to openstack
image build command.
* `base_image_url` -- URL of base image
* `base_image_path` -- path to save base image on host
Example Usage
-------------

View File

@@ -25,7 +25,10 @@ export DIB_YUM_REPO_CONF=""
{% for repo_path in overcloud_repo_paths %}
export DIB_YUM_REPO_CONF="$DIB_YUM_REPO_CONF {{ repo_path }}"
{% endfor %}
{% if base_image_url is defined and base_image_path is defined %}
wget -nv {{ base_image_url }} -O {{ base_image_path }}
export DIB_LOCAL_IMAGE={{ base_image_path }}
{% endif %}
{# note(trown): there was not support in tripleoclient for YAML config images in Newton #}
{% if release == 'newton'-%}
tripleo-build-images \