|Vagrantfile plugin dependencies||Bjorn W||1/8/14 2:42 AM|
I'm creating a Vagrantfile which uses https://github.com/cogitatio/vagrant-hostsupdater to automatically setup a host's /etc/hosts file so I can access Virtualhost on guests easily from the host. If I'm distributing this Vagrantfile with other people how can I make sure this plugin will be loaded for them when using my Vagrantfile?
|Re: [vagrant-up] Vagrantfile plugin dependencies||Mitchell Hashimoto||1/8/14 8:06 AM|
At the moment, all you can do is a `Vagrant.has_plugin?` check. There is also `Vagrant.require_plugin` but that is not what you expect and is deprecated in 1.5 (does nothing).
In the future, you'll be able to actually list out plugin dependencies, but as of now that isn't the case. The best you can do now is show an error.
|Re: [vagrant-up] Vagrantfile plugin dependencies||Torben Knerr||1/8/14 10:02 AM|
Check out bindler in the meantime:
@mitchellh: great to hear that plugin dependency management will be part of vagrant core soon!
|Re: [vagrant-up] Vagrantfile plugin dependencies||Bjorn W||1/8/14 12:56 PM|
Thanks for your quick reply. I'll look into Vagrant.has_plugin and
Bindler (thanks Torben!) to solve my issue. Looking forward to see
plugin management becoming part of Vagrant.
ps: Thanks for your work on Vagrant, it is very much appreciated!
> <mailto:buro...@gmail.com>> wrote:> <mailto:vagrant-up%2Bunsubscribe@googlegroups.com>.
> For more options, visit https://groups.google.com/groups/opt_out.--
met vriendelijke groet,
* b u r o b j o r n .nl *
digitaal vakmanschap | digital craftsmanship
Van maandag t/m donderdag vanaf 10:00
Vrijdag is voor experimenteren en eigen projecten.
3508 SE Utrecht
tel: +31 6 49 74 78 70
|Re: [vagrant-up] Vagrantfile plugin dependencies||John Bellone||1/14/14 10:22 AM|
Thanks Mitchell, awesome work!
Is that future 1.5? Just ran into the deprecation warning and wondering how I'm able to require a plugin.
|Re: Vagrantfile plugin dependencies||Dennis Stevense||10/19/14 12:37 PM|
What's the latest on this? Is this still the way to go?
# Poor man's dependency management.
puts 'This machine requires some plugins, please install them:'
puts '$ vagrant plugin install vagrant-omnibus'