Skip to content

Instantly share code, notes, and snippets.

@jerith
Created January 18, 2016 10:39
Show Gist options
  • Select an option

  • Save jerith/12fd4b57ec5ffa9257dd to your computer and use it in GitHub Desktop.

Select an option

Save jerith/12fd4b57ec5ffa9257dd to your computer and use it in GitHub Desktop.
diff --git a/Vagrantfile b/Vagrantfile
index 991c867..6b71d0c 100644
--- a/Vagrantfile
+++ b/Vagrantfile
@@ -14,6 +14,12 @@ Vagrant.configure(2) do |config|
# boxes at https://atlas.hashicorp.com/search.
config.vm.box = "ubuntu/trusty64"
+ if Vagrant.has_plugin?("vagrant-cachier")
+ # Configure cached packages to be shared between instances of the same base
+ # box. More info on http://fgrehm.viewdocs.io/vagrant-cachier/usage
+ config.cache.scope = :box
+ end
+
# Disable automatic box update checking. If you disable this, then
# boxes will only be checked for updates when the user runs
# `vagrant box outdated`. This is not recommended.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment