diff --git a/example/Vagrantfile b/example/Vagrantfile index bf8a8c1..66da379 100644 --- a/example/Vagrantfile +++ b/example/Vagrantfile @@ -1,16 +1,6 @@ # -*- mode: ruby -*- # vi: set ft=ruby : -def local_cache(box_name) - cache_dir = File.join(File.expand_path(Vagrant::Environment::DEFAULT_HOME), - 'cache', - 'apt', - box_name) - partial_dir = File.join(cache_dir, 'partial') - FileUtils.mkdir_p(partial_dir) unless File.exists? partial_dir - cache_dir -end - # Not really needed, but useful while developing so that vagrant picks it up Vagrant.require_plugin 'vagrant-lxc' @@ -23,8 +13,6 @@ Vagrant.configure("2") do |config| config.vm.synced_folder "/tmp", "/vagrant_data" - cache_dir = local_cache(config.vm.box) - config.vm.synced_folder cache_dir, "/var/cache/apt/archives" config.vm.provider :lxc do |lxc| lxc.customize 'cgroup.memory.limit_in_bytes', '400M'