summaryrefslogtreecommitdiffstats
path: root/bifrost/scripts/destroy-env.sh
diff options
context:
space:
mode:
authorFatih Degirmenci <fatih.degirmenci@ericsson.com>2017-03-20 15:01:52 +0100
committerTrevor Bramwell <tbramwell@linuxfoundation.org>2017-08-11 12:56:12 -0700
commit28f96fe95329934e72ef8df1d4313b1b71250662 (patch)
treede1bd44c731b1c3ae3ebad809de25dfccd15cb8e /bifrost/scripts/destroy-env.sh
parent1ab58d5387f3bc8d2539b7d6b23c297d75783871 (diff)
xci: Enable VM provisioning using bifrost for daily runs
- create script to provision VMs (log upload is not enabled yet) - remove leftover inventory files (baremetal.csv, baremetal.json) - set BIFROST_INVENTORY_SOURCE as needed by stable/ocata - rename playbook used during bifrost and adjust scripts using it - remove puppet-infracloud stuff Change-Id: I1c4412d0725c00ab9a1b3497e358d33998b4e7e6 Signed-off-by: Fatih Degirmenci <fatih.degirmenci@ericsson.com>
Diffstat (limited to 'bifrost/scripts/destroy-env.sh')
-rwxr-xr-xbifrost/scripts/destroy-env.sh3
1 files changed, 3 insertions, 0 deletions
diff --git a/bifrost/scripts/destroy-env.sh b/bifrost/scripts/destroy-env.sh
index 1138da90..7d3db90b 100755
--- a/bifrost/scripts/destroy-env.sh
+++ b/bifrost/scripts/destroy-env.sh
@@ -27,6 +27,9 @@ done
service ironic-conductor stop || true
+echo "removing inventory files created by previous builds"
+rm -rf /tmp/baremetal.*
+
echo "removing ironic database"
if $(which mysql &> /dev/null); then
mysql -u root ironic --execute "drop database ironic;"