Check if the vagrant-berkshelf plugin is available

Change-Id: Ie615cf81be40b8395d8e7672e59407cc4925b410
This commit is contained in:
Christian Berendt 2014-07-29 14:25:50 +02:00
parent 452fe9cfb4
commit cedb0f4e0d

5
Vagrantfile vendored
View File

@ -3,6 +3,11 @@
VAGRANTFILE_API_VERSION = "2" # Vagrantfile API/syntax version. Don't touch unless you know what you're doing!
unless Vagrant.has_plugin?("vagrant-berkshelf")
raise "The needed plugin vagrant-berkshelf is not available.
Install it by calling 'vagrant plugin install vagrant-berkshelf'."
end
Vagrant.configure(VAGRANTFILE_API_VERSION) do |config|
# Settings for all vms
config.berkshelf.enabled = true