Auto-install required Vagrant plugins instead of erroring out

Change-type: patch
This commit is contained in:
Mark S. Maglana 2021-05-30 12:04:44 +08:00
parent 6739d1257b
commit d71a90c1ef
No known key found for this signature in database
GPG Key ID: 58A0146B4C9BCCA8

13
Vagrantfile vendored
View File

@ -1,12 +1,11 @@
Vagrant.require_version '>= 2.0.0'
[ 'vagrant-vbguest', 'vagrant-docker-compose' ].each do |p|
unless Vagrant.has_plugin?(p)
raise "Please install missing plugin: vagrant plugin install #{p}"
end
end
Vagrant.require_version '>= 2.2.0'
Vagrant.configure('2') do |config|
config.vagrant.plugins = [
'vagrant-vbguest',
'vagrant-docker-compose'
]
config.vm.define 'openbalena'
config.vm.hostname = 'openbalena-vagrant'
config.vm.box = 'bento/ubuntu-18.04'