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
This commit is contained in:
parent
8c66af58be
commit
ae138f91e2
@ -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}"
|
||||
|
Loading…
Reference in New Issue
Block a user