mirror of
https://github.com/balena-io/open-balena.git
synced 2024-12-18 21:27:52 +00:00
Auto-install required Vagrant plugins instead of erroring out
Change-type: patch
This commit is contained in:
parent
6739d1257b
commit
d71a90c1ef
13
Vagrantfile
vendored
13
Vagrantfile
vendored
@ -1,12 +1,11 @@
|
|||||||
Vagrant.require_version '>= 2.0.0'
|
Vagrant.require_version '>= 2.2.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.configure('2') do |config|
|
Vagrant.configure('2') do |config|
|
||||||
|
config.vagrant.plugins = [
|
||||||
|
'vagrant-vbguest',
|
||||||
|
'vagrant-docker-compose'
|
||||||
|
]
|
||||||
|
|
||||||
config.vm.define 'openbalena'
|
config.vm.define 'openbalena'
|
||||||
config.vm.hostname = 'openbalena-vagrant'
|
config.vm.hostname = 'openbalena-vagrant'
|
||||||
config.vm.box = 'bento/ubuntu-18.04'
|
config.vm.box = 'bento/ubuntu-18.04'
|
||||||
|
Loading…
Reference in New Issue
Block a user