Image builder: better default path to the source code

By default, use the variable that always point to the source code
of sahara-image-elements in the zuul environment. This makes it
possible to use the role in other projects without passing
the path to the source code of sahara-image-elements.

Change-Id: I29811eaa0d783d7b89ce1cb3f635de0c8f3e79e3
This commit is contained in:
Luigi Toscano 2017-12-07 13:01:01 +01:00
parent f3f5613238
commit 37d58c6d49
2 changed files with 2 additions and 1 deletions

View File

@ -1,3 +1,4 @@
---
sahara_image_elements_src_dir: "{{ zuul.projects['git.openstack.org/openstack/sahara-image-elements'].src_dir }}"
sahara_build_directory: /var/tmp/sahara-image-build
sahara_plugin: vanilla

View File

@ -1,4 +1,4 @@
- name: Build all the images for the selected plugin
command: ./tools/gate/build-images "{{ sahara_plugin }}"
args:
chdir: "{{ zuul.project.src_dir }}"
chdir: "{{ sahara_image_elements_src_dir }}"