Download and define base image if configured
When we build the image we need a base image to be defined. For CentOS it's done automatically in client, but if we need to build something else we need to download it and define it explicitly. base_image_url - URL of base image base_image_path - path to save it on host Change-Id: I10bd9868fcfd3a4d5992fc7d7b6200e908e75e25
This commit is contained in:
parent
4c5d621d16
commit
ab4b015cea
@ -50,6 +50,8 @@ Role Variables
|
|||||||
* `skip_build_images` -- skip building images if there present or cached
|
* `skip_build_images` -- skip building images if there present or cached
|
||||||
(default: true), setting it to false will add '--no-skip' option to openstack
|
(default: true), setting it to false will add '--no-skip' option to openstack
|
||||||
image build command.
|
image build command.
|
||||||
|
* `base_image_url` -- URL of base image
|
||||||
|
* `base_image_path` -- path to save base image on host
|
||||||
|
|
||||||
Example Usage
|
Example Usage
|
||||||
-------------
|
-------------
|
||||||
|
@ -25,7 +25,10 @@ export DIB_YUM_REPO_CONF=""
|
|||||||
{% for repo_path in overcloud_repo_paths %}
|
{% for repo_path in overcloud_repo_paths %}
|
||||||
export DIB_YUM_REPO_CONF="$DIB_YUM_REPO_CONF {{ repo_path }}"
|
export DIB_YUM_REPO_CONF="$DIB_YUM_REPO_CONF {{ repo_path }}"
|
||||||
{% endfor %}
|
{% 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 #}
|
{# note(trown): there was not support in tripleoclient for YAML config images in Newton #}
|
||||||
{% if release == 'newton'-%}
|
{% if release == 'newton'-%}
|
||||||
tripleo-build-images \
|
tripleo-build-images \
|
||||||
|
Loading…
Reference in New Issue
Block a user