Update ansible regtest
Pre-download centos65.box on host to save time. Change-Id: I19bbc1257d687c89faef0cd9396d8e6f1b3a8385
This commit is contained in:
parent
2fb2edb35c
commit
849f1adb1d
@ -27,8 +27,12 @@ centos65_box_vb_filename=$(basename ${centos65_box_vb_url})
|
|||||||
#wget ${precise_box_vb_url}
|
#wget ${precise_box_vb_url}
|
||||||
vagrant box list |grep centos65
|
vagrant box list |grep centos65
|
||||||
if [[ $? != 0 ]]; then
|
if [[ $? != 0 ]]; then
|
||||||
wget ${centos65_box_vb_url}
|
if [ -f "/opt/regtest/boxes/CentOS-6.5-x86_64-v20140504.box" ]; then
|
||||||
mv ${centos65_box_vb_filename} centos65.box
|
echo "centos65 box file found"
|
||||||
|
mv /opt/regtest/boxes/CentOS-6.5-x86_64-v20140504.box centos65.box
|
||||||
|
else
|
||||||
|
wget ${centos65_box_vb_url}
|
||||||
|
mv ${centos65_box_vb_filename} centos65.box
|
||||||
vagrant mutate centos65.box libvirt
|
vagrant mutate centos65.box libvirt
|
||||||
else
|
else
|
||||||
echo "centos65 box already exists"
|
echo "centos65 box already exists"
|
||||||
|
Loading…
x
Reference in New Issue
Block a user