From ae138f91e2e401434587a5bbc3c77c448faed895 Mon Sep 17 00:00:00 2001 From: Michal Rostecki Date: Mon, 25 Apr 2016 14:51:48 +0200 Subject: [PATCH] Don't install vagrant-vbguest when using other providers Also, allow to define another provider-specific plugins when needed. Change-Id: Ie40b5c52ea6aea19c150def65785356b0db3c54e Closes-Bug: 1574627 --- .vagrantplugins | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/.vagrantplugins b/.vagrantplugins index efccf081..12c20072 100644 --- a/.vagrantplugins +++ b/.vagrantplugins @@ -1,7 +1,14 @@ -required_plugins = %w(vagrant-vbguest) +required_plugins = %w() requires_restart = false +# Add vagrant-vbguest plugin only if using VirtualBox +Vagrant.configure("2") do |config| + config.vm.provider :virtualbox do + required_plugins.push("vagrant-vbguest") + end +end + required_plugins.each do |plugin| unless Vagrant.has_plugin? plugin system "vagrant plugin install #{plugin}"