Remove apt cache from example Vagrantfile

This commit is contained in:
Fabio Rehm 2013-04-10 03:13:11 -03:00
parent f1c23aa799
commit c6248e8962

12
example/Vagrantfile vendored
View file

@ -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'