Vagrant comes with many great features to get distributable development environments up and running. But sometimes you need to change the way Vagrant works or add new functionality which may or may not make sense to merge back into Vagrant core. As of Vagrant 0.6, this problem is solved through the use of plugins.
Plugins are powerful, first-class citizens which extend Vagrant using an exposed and supported API. What can plugins do?
vagrant
binary, such as vagrant my_plugin
vagrant up
is called.config.my_plugin
style configuration in Vagrantfiles.Installing plugins is a snap, and doesn’t take more than a few seconds.
Please refer to the documentation of any plugin you wish to use for information on how to use it, but in general there are two methods of installation:
require
ing it in a project Vagrantfile.Please refer to any plugin’s documentation for more information on what you have to do.
If you’re interested in developing plugins, we’ve setup a comprehensive set of documentation at extending Vagrant. Also, if you run into any problems, please access any of our support lines!