From 62bc333fc922b5cd74e1422c942192829d20b9fa Mon Sep 17 00:00:00 2001 From: Umair Khan Date: Sun, 27 Nov 2016 11:31:48 +0500 Subject: [PATCH] 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. --- Vagrantfile | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/Vagrantfile b/Vagrantfile index a37b658b29cd93..a9fc26791c9407 100644 --- a/Vagrantfile +++ b/Vagrantfile @@ -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.