diff --git a/.ci/spec/create-hosts.sh b/.ci/spec/create-hosts.sh index 4ec28e47b..5a408909e 100755 --- a/.ci/spec/create-hosts.sh +++ b/.ci/spec/create-hosts.sh @@ -25,6 +25,16 @@ wrap aws s3 cp "${ASSETS_PRIVATE_BUCKET}/hashicorp/vagrant-spec/vagrant-spec.gem "Could not download vagrant-spec.gem from s3 asset bucket" ### +# Grab vagrant installer place inside root dir of Vagrant repo +# TODO: Have this variable set +VAGRANT_INSTALLER_VERSION="2.2.11" +# TODO: Get release by reference +INSTALLER_URL=`curl -s https://api.github.com/repos/hashicorp/vagrant-installers/releases | jq -r --arg installer_name "vagrant_${VAGRANT_INSTALLER_VERSION}_x86_64.deb" '.[0].assets[] | select(.name == $installer_name) | .url'` + +wrap curl -Lso ./vagrant_${VAGRANT_INSTALLER_VERSION}_x86_64.deb ${INSTALLER_URL} \ + "Could not download vagrant installers" +### + # Run the job echo "Creating vagrant spec guests..." diff --git a/pkg/dist/vagrant_2.2.10_x86_64.deb b/pkg/dist/vagrant_2.2.10_x86_64.deb deleted file mode 100644 index 6d1d65308..000000000 Binary files a/pkg/dist/vagrant_2.2.10_x86_64.deb and /dev/null differ diff --git a/test/vagrant-spec/scripts/ubuntu-setup.virtualbox.sh b/test/vagrant-spec/scripts/ubuntu-setup.virtualbox.sh index a8a8d32b7..05fe6381d 100644 --- a/test/vagrant-spec/scripts/ubuntu-setup.virtualbox.sh +++ b/test/vagrant-spec/scripts/ubuntu-setup.virtualbox.sh @@ -8,7 +8,7 @@ apt-get install -qy nfs-kernel-server pushd /vagrant -dpkg -i ./pkg/dist/vagrant_*_x86_64.deb +dpkg -i ./vagrant_*_x86_64.deb vagrant plugin install ./vagrant-spec.gem popd