diff --git a/ds-build/Vagrantfile b/ds-build/Vagrantfile index 7e3a805..7b0c5a0 100644 --- a/ds-build/Vagrantfile +++ b/ds-build/Vagrantfile @@ -6,10 +6,19 @@ Dir.chdir ".." 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 + if Vagrant.has_plugin?("vagrant-cachier") + config.cache.scope = :box + end + # Handle local proxy settings if Vagrant.has_plugin?("vagrant-proxyconf") if ENV["http_proxy"] diff --git a/split/Vagrantfile b/split/Vagrantfile index a84a375..a6f7022 100644 --- a/split/Vagrantfile +++ b/split/Vagrantfile @@ -6,10 +6,19 @@ Dir.chdir ".." 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 + if Vagrant.has_plugin?("vagrant-cachier") + config.cache.scope = :box + end + # Handle local proxy settings if Vagrant.has_plugin?("vagrant-proxyconf") if ENV["http_proxy"]