Creates vagrant-libvirt plugin validation
The vagrant-libvirt plugin was not validated its installation
when the user uses this provider. This change pretends to helps
the installation process to the end user.
Change-Id: I1b040ec72ed2663c3f968baa68b141e31ee6d6c7
Signed-off-by: Victor Morales <victor.morales@intel.com>
diff --git a/bootstrap/vagrant-onap/Vagrantfile b/bootstrap/vagrant-onap/Vagrantfile
index a46afd5..f89c2dc 100644
--- a/bootstrap/vagrant-onap/Vagrantfile
+++ b/bootstrap/vagrant-onap/Vagrantfile
@@ -83,6 +83,10 @@
config.vm.box = 'ubuntu/trusty64'
if provider == :libvirt
config.vm.box = 'sputnik13/trusty64'
+ if not Vagrant.has_plugin?('vagrant-libvirt')
+ system 'vagrant plugin install vagrant-libvirt'
+ raise 'vagrant-libvirt was installed but it requires to execute again'
+ end
end
if provider == :openstack
config.vm.box = nil