summaryrefslogtreecommitdiffstats
path: root/bootstrap/vagrant-onap/Vagrantfile
diff options
context:
space:
mode:
authorVictor Morales <victor.morales@intel.com>2017-07-27 17:26:06 -0500
committerVictor Morales <victor.morales@intel.com>2017-07-27 17:29:23 -0500
commitf62e7b8ea7f447129221f3fceb73f7af63db2c74 (patch)
tree11b7dce5998de64a696e40f5e0322a1cde009d71 /bootstrap/vagrant-onap/Vagrantfile
parentb249c8a7388fdefbbed9caebe0d15e199c618b7b (diff)
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>
Diffstat (limited to 'bootstrap/vagrant-onap/Vagrantfile')
-rw-r--r--bootstrap/vagrant-onap/Vagrantfile4
1 files changed, 4 insertions, 0 deletions
diff --git a/bootstrap/vagrant-onap/Vagrantfile b/bootstrap/vagrant-onap/Vagrantfile
index a46afd5fe..f89c2dc47 100644
--- a/bootstrap/vagrant-onap/Vagrantfile
+++ b/bootstrap/vagrant-onap/Vagrantfile
@@ -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