2019 업데이트 : Vagrant에는 이제 다음을 Vagrantfile
통해 플러그인을 요구하는 기능이 있습니다 .
Vagrant.configure("2") do |config|
config.vagrant.plugins = "vagrant-some-plugin"
config.vagrant.plugins = ["vagrant-some-plugin", "vagrant-some-other-plugin"]
config.vagrant.plugins = {"vagrant-some-plugin" => {"version" => "1.0.0"}}
end
Vagrant가 아직 설치되지 않은 플러그인이 있음을 감지하면 사용자에게 직접 설치하라는 메시지가 표시됩니다.
$ vagrant up
Vagrant has detected project local plugins configured for this
project which are not installed.
vagrant-some-plugin
Install local plugins (Y/N) [N]: y
Installing the 'vagrant-some-plugin' plugin. This can take a few minutes...
Fetching vagrant-some-plugin-1.0.0.gem
Installed the plugin 'vagrant-some-plugin (1.0.0)'!
Vagrant has completed installing local plugins for the current Vagrant
project directory. Please run the requested command again.
참조 https://www.vagrantup.com/docs/vagrantfile/vagrant_settings.html를