From 09577816f886b05ab42f30948e2ed6c5b45df736 Mon Sep 17 00:00:00 2001 From: Bill Cromie Date: Sun, 15 Jan 2017 09:47:36 -0600 Subject: [PATCH] adds optional vagrant-cachier if you have the plugin installed (#1028) --- Vagrantfile | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/Vagrantfile b/Vagrantfile index 3926410..b4bcb25 100644 --- a/Vagrantfile +++ b/Vagrantfile @@ -5,6 +5,12 @@ Vagrant.configure("2") do |config| config.vm.box = "ubuntu14.04" config.vm.box_url = "http://cloud-images.ubuntu.com/vagrant/trusty/current/trusty-server-cloudimg-amd64-vagrant-disk1.box" + 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 + # Network config: Since it's a mail server, the machine must be connected # to the public web. However, we currently don't want to expose SSH since # the machine's box will let anyone log into it. So instead we'll put the