Since I am a Ruby developer, and Bindler is no longer supported, I find it most natural to just write the code at the top of my Vagrantfile to install the necessary plugins if it is missing (for example, before the Vagrant.configure line)
The following works for me:
required_plugins = %w( vagrant-hostmanager vagrant-someotherplugin ) required_plugins.each do |plugin| system "vagrant plugin install #{plugin}" unless Vagrant.has_plugin? plugin end
system , unlike using backticks, there will be an echo command on stdout, as well as executing the command yourself. And so I donβt need another weirdly named plugin or system to keep track of the necessary plugins that can be updated by Vagrant anyway.
Louis St-Amour Sep 18 '14 at 16:44 2014-09-18 16:44
source share