Update Vagrantfile with vagrant-cachier auto detection

This commit is contained in:
Fabio Rehm 2013-05-17 18:50:25 -03:00
parent 4e53cc83fe
commit 86be140f86

View file

@ -45,6 +45,9 @@ Vagrant.require_plugin 'vagrant-cachier'
Vagrant.configure("2") do |config|
config.vm.synced_folder "../", "/vagrant", id: 'vagrant-root', nfs: true
config.cache.scope = :machine
config.cache.auto_detect = true
ip_suffix = 30
BOXES.each do |box_name, box_config|
config.vm.define(box_name.to_sym) do |vm_config|
@ -73,9 +76,6 @@ Vagrant.configure("2") do |config|
lxc.customize 'aa_profile', 'unconfined' unless %w(squeeze wheezy sid).include? box_name.to_s
end
end
vm_config.cache.enable :apt
vm_config.cache.enable :gem
end
end