Skip to content

Commit

Permalink
provisioning: Add version warning for Vagrant 1.8.7.
Browse files Browse the repository at this point in the history
Vagrant 1.8.7 is not supported due to broken curl, see
hashicorp/vagrant#7997 for reference.
  • Loading branch information
umairwaheed authored and Brock Whittaker committed Nov 30, 2016
1 parent d128b58 commit 62bc333
Showing 1 changed file with 12 additions and 0 deletions.
12 changes: 12 additions & 0 deletions Vagrantfile
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,18 @@ def command?(name)
$?.success?
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|

# For LXC. VirtualBox hosts use a different box, described below.
Expand Down

0 comments on commit 62bc333

Please sign in to comment.