diff options
author | Markos Chandras <mchandras@suse.de> | 2018-05-17 09:43:11 +0100 |
---|---|---|
committer | Markos Chandras <mchandras@suse.de> | 2018-05-17 09:43:11 +0100 |
commit | b411c747d04856c33ba5382baaaae94415d647b7 (patch) | |
tree | 7b2694afb594f6800f775726d7a78e48a68aa47b /xci | |
parent | 02f2ee5f3f047f6ee5f4e570a0cb5599460de0a5 (diff) |
xci: Wipe repositories at the beginning of the deployment
We should not wipe the repositories in the localhost playbooks since
it makes it somewhat hard to debug problems. We should do that at the
beginning of the deployment to ensure that we start without any stale
git data.
Change-Id: I70b2ac77284a9ca304d6aa68dbf1654f59260dc4
Signed-off-by: Markos Chandras <mchandras@suse.de>
Diffstat (limited to 'xci')
-rwxr-xr-x | xci/files/xci-destroy-env.sh | 2 | ||||
-rw-r--r-- | xci/playbooks/configure-localhost.yml | 1 |
2 files changed, 2 insertions, 1 deletions
diff --git a/xci/files/xci-destroy-env.sh b/xci/files/xci-destroy-env.sh index 97b76c7c..3de21795 100755 --- a/xci/files/xci-destroy-env.sh +++ b/xci/files/xci-destroy-env.sh @@ -21,6 +21,8 @@ rm -rf /opt/stack # HOME is normally set by sudo -H rm -rf ${HOME}/.config/openstack rm -rf ${HOME}/.ansible +# Wipe repos +rm -rf ${XCI_CACHE}/repos # bifrost installs everything on venv so we need to look there if virtualbmc is not installed on the host. if which vbmc &>/dev/null || { [[ -e ${XCI_VENV}/bifrost/bin/activate ]] && source ${XCI_VENV}/bifrost/bin/activate; }; then diff --git a/xci/playbooks/configure-localhost.yml b/xci/playbooks/configure-localhost.yml index 5f091c92..5b64c785 100644 --- a/xci/playbooks/configure-localhost.yml +++ b/xci/playbooks/configure-localhost.yml @@ -25,7 +25,6 @@ state: absent recurse: no with_items: - - "{{ xci_cache }}/repos" - "{{ log_path }} " - "{{ opnfv_ssh_host_keys_path }}" |