adds optional vagrant-cachier if you have the plugin installed (#1028)

This commit is contained in:
Bill Cromie 2017-01-15 09:47:36 -06:00 committed by Joshua Tauberer
parent 2647febbf5
commit 09577816f8
1 changed files with 6 additions and 0 deletions

6
Vagrantfile vendored
View File

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