summaryrefslogtreecommitdiffstats
path: root/Vagrantfile
diff options
context:
space:
mode:
authorToby Oxborrow <tobyox@cisco.com>2015-09-17 13:51:00 +0800
committerToby Oxborrow <tobyox@cisco.com>2015-09-17 13:51:00 +0800
commit7e87090a11270ed52f844aec0ac153dd11c6597a (patch)
tree6a944a565e47c51f6673733a563a8ca993cac70a /Vagrantfile
parent9dd84b04c663fe3bb8bed9bc2c125f750ad5a0cd (diff)
Enable vagrant-cachier module if available
To reduce the time to re-download packages during the 'apt-get update' in Vagrantfile, cache downloaded packages if the vagrant-cachier plugin is available.
Diffstat (limited to 'Vagrantfile')
-rw-r--r--Vagrantfile4
1 files changed, 4 insertions, 0 deletions
diff --git a/Vagrantfile b/Vagrantfile
index c9554ce..01c3f7f 100644
--- a/Vagrantfile
+++ b/Vagrantfile
@@ -26,4 +26,8 @@ Vagrant.configure(VAGRANTFILE_API_VERSION) do |config|
dev.vm.provision "shell", inline: "#{INSTALL_DEPS}"
end
+ if Vagrant.has_plugin?("vagrant-cachier")
+ config.cache.scope = :box
+ end
+
end