Fix checksum issues

- Resolves issue in build-vagrant-box.sh where incorrect download
  URL utputs an error message that the checksum is incorrect and
  aborts the script
- Adds build-vagrant-box.sh to full-vagrant-setup.sh

Change-Id: Ib991cba776eccbe1afe0f90f8a7bbbcca73ff111
This commit is contained in:
Samantha Blanco 2017-09-18 10:35:03 -04:00
parent 08a273c8cc
commit 0d68e4c682
2 changed files with 11 additions and 0 deletions

View File

@ -19,6 +19,16 @@ git clone https://github.com/jakobadam/packer-qemu-templates.git ${WORKDIR}
cd ${WORKDIR}/ubuntu
sed -i -e 's#http://releases.ubuntu.com/16.04/ubuntu-16.04-server-amd64.iso#http://old-releases.ubuntu.com/releases/xenial/ubuntu-16.04.1-server-amd64.iso' ubuntu.json
sed -i -e 's#http://releases.ubuntu.com/16.04/ubuntu-16.04-server-amd64.iso#http
://old-releases.ubuntu.com/releases/xenial/ubuntu-16.04.1-server-amd64.iso' ubun
tu-vagrant.json
sed -i -e 's#http://releases.ubuntu.com/16.04/ubuntu-16.04.2-server-amd64.iso#http
://old-releases.ubuntu.com/releases/xenial/ubuntu-16.04.2-server-amd64.iso' ubun
tu1604.json
packer build -var-file=ubuntu1604.json ubuntu-vagrant.json
vagrant box add promenade/ubuntu1604 box/libvirt/ubuntu1604-1.box

View File

@ -7,3 +7,4 @@ SCRIPT_DIR=$(dirname $0)
$SCRIPT_DIR/install-vagrant-nfs-deps.sh
$SCRIPT_DIR/install-vagrant-libvirt.sh
$SCRIPT_DIR/install-packer.sh
$SCRIPT_DIR/build-vagrant-box.sh