diff options
| author | Matthew Montgomery <matthew@signed8bit.com> | 2016-07-25 17:36:02 -0500 |
|---|---|---|
| committer | Matthew Montgomery <matthew@signed8bit.com> | 2016-07-26 08:36:38 -0500 |
| commit | cd8f68b43ea5dff2295c8ff94ce2dcf10f257c83 (patch) | |
| tree | 92a9bc82cedb07f1c1157f68f5bfc77dd6a86da7 /dev/vagrant/Vagrantfile | |
| parent | a06a57ba54d0956bcb09796f9c368703a3a468dd (diff) | |
| download | kolla-cd8f68b43ea5dff2295c8ff94ce2dcf10f257c83.tar.gz kolla-cd8f68b43ea5dff2295c8ff94ce2dcf10f257c83.zip | |
Vagrant plugin check
- Adds support for validating that all required Vagrant plugins have
been installed.
Closes-Bug: 1606575
Change-Id: I06002ef9d43d081b5ae9f326377e5009b4e62e36
Diffstat (limited to 'dev/vagrant/Vagrantfile')
| -rw-r--r-- | dev/vagrant/Vagrantfile | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/dev/vagrant/Vagrantfile b/dev/vagrant/Vagrantfile index 270ffca0c..f59fafaec 100644 --- a/dev/vagrant/Vagrantfile +++ b/dev/vagrant/Vagrantfile @@ -3,6 +3,13 @@ require "ipaddr" +# Check for required plugin(s) +['vagrant-hostmanager'].each do |plugin| + unless Vagrant.has_plugin?(plugin) + raise "#{plugin} plugin not found. Please install it via 'vagrant plugin install #{plugin}'" + end +end + class VagrantConfigMissing < StandardError end |
