provisioning: Add version warning for Vagrant 1.8.7.

Vagrant 1.8.7 is not supported due to broken curl, see
https://github.com/mitchellh/vagrant/issues/7997 for reference.
This commit is contained in:
Umair Khan 2016-11-27 11:31:48 +05:00 committed by Tim Abbott
parent 3d1bcb05e1
commit 287eb2cd49
1 changed files with 12 additions and 0 deletions

12
Vagrantfile vendored
View File

@ -7,6 +7,18 @@ def command?(name)
$?.success? $?.success?
end end
if Vagrant::VERSION == "1.8.7" then
path = `which curl`
if path.include?('/opt/vagrant/embedded/bin/curl') then
puts "In Vagrant 1.8.7, curl is broken. Please use Vagrant 1.8.6 "\
"or run 'sudo rm -f /opt/vagrant/embedded/bin/curl' to fix the "\
"issue before provisioning. See "\
"https://github.com/mitchellh/vagrant/issues/7997 "\
"for reference."
exit
end
end
Vagrant.configure(VAGRANTFILE_API_VERSION) do |config| Vagrant.configure(VAGRANTFILE_API_VERSION) do |config|
# For LXC. VirtualBox hosts use a different box, described below. # For LXC. VirtualBox hosts use a different box, described below.