diff options
author | 2017-12-12 14:58:50 +0000 | |
---|---|---|
committer | 2017-12-13 20:30:51 +0000 | |
commit | 151d8e21a5f146418e9f28d91c6e93edbac367ea (patch) | |
tree | bdd36deace7d468a426d29c22644426fbe845236 /xci/playbooks/provision-vm-nodes.yml | |
parent | 304a45bbdc52aa5e7f4374d027e4e17f42d2cd75 (diff) |
xci: Fix checkout location for OpenStack-Ansible
The OPENSTACK_OSA_PATH only makes sense on localhost. As such, when we
use it on playbooks that operate on remote hosts, the result is not
predictable. However, we rsync the entire releng-xci repository to the
opfnv host so we can make everything predictable by simply clone
everything in advance in the .cache directory. That directory is then
rsync'd to the opnfv host. As such, we can repurpose the
OPENSTACK_OSA_PATH to point to the path into the OPNFV host. Moreover,
all external repositories are being cloned to .cache/repos so we can
eliminate some variables in order to simplify the code. Finally, we
bring back the ability to use an external OSA repository for
development purposes.
Change-Id: Ieef3e22ae2085f6735185634d555cfc0d4b69b39
Signed-off-by: Markos Chandras <mchandras@suse.de>
Diffstat (limited to 'xci/playbooks/provision-vm-nodes.yml')
-rw-r--r-- | xci/playbooks/provision-vm-nodes.yml | 10 |
1 files changed, 7 insertions, 3 deletions
diff --git a/xci/playbooks/provision-vm-nodes.yml b/xci/playbooks/provision-vm-nodes.yml index 8e91741e..8b8bb30d 100644 --- a/xci/playbooks/provision-vm-nodes.yml +++ b/xci/playbooks/provision-vm-nodes.yml @@ -17,7 +17,11 @@ include_vars: file: ../var/{{ ansible_os_family }}.yml roles: - - { role: clone-repository, project: "opnfv/bifrost", repo: "{{ OPENSTACK_BIFROST_GIT_URL }}", dest: "{{ OPENSTACK_BIFROST_PATH }}", version: "{{ OPENSTACK_BIFROST_VERSION }}" } + - role: clone-repository + project: "opnfv/bifrost" + repo: "{{ OPENSTACK_BIFROST_GIT_URL }}" + dest: "{{ XCI_CACHE }}/repos/bifrost" + version: "{{ OPENSTACK_BIFROST_VERSION }}" tasks: - name: Load distribution variables @@ -27,7 +31,7 @@ # command module is much faster than the copy module synchronize: src: "{{ OPENSTACK_BIFROST_DEV_PATH }}" - dest: "{{ OPENSTACK_BIFROST_PATH }}" + dest: "{{ XCI_CACHE }}/repos/bifrost" recursive: yes delete: yes when: @@ -35,4 +39,4 @@ - name: combine opnfv/releng-xci and openstack/bifrost scripts/playbooks copy: src: "{{ XCI_PATH}}/bifrost/" - dest: "{{ OPENSTACK_BIFROST_PATH }}" + dest: "{{ XCI_CACHE }}/repos/bifrost" |