Creates vagrant-libvirt plugin validation 17/6317/1
authorVictor Morales <victor.morales@intel.com>
Thu, 27 Jul 2017 22:26:06 +0000 (17:26 -0500)
committerVictor Morales <victor.morales@intel.com>
Thu, 27 Jul 2017 22:29:23 +0000 (17:29 -0500)
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>
bootstrap/vagrant-onap/Vagrantfile

index a46afd5..f89c2dc 100644 (file)
@@ -83,6 +83,10 @@ Vagrant.configure("2") do |config|
   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