diff options
author | Toby Oxborrow <tobyox@cisco.com> | 2015-09-17 13:51:00 +0800 |
---|---|---|
committer | Toby Oxborrow <tobyox@cisco.com> | 2015-09-17 13:51:00 +0800 |
commit | 7e87090a11270ed52f844aec0ac153dd11c6597a (patch) | |
tree | 6a944a565e47c51f6673733a563a8ca993cac70a /Vagrantfile | |
parent | 9dd84b04c663fe3bb8bed9bc2c125f750ad5a0cd (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-- | Vagrantfile | 4 |
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 |