Add optional support for vagrant-cachier plugin.

This commit is contained in:
Patrick Connolly 2014-08-27 11:40:36 -03:00
parent 16df9c6aec
commit d1b5c4353d
2 changed files with 6 additions and 0 deletions

View file

@ -116,6 +116,8 @@ Ruby (debian packages ruby and rubygems)
Vagrant (unpackaged) Be sure to use 1.3.x because 1.4.x is completely broken Vagrant (unpackaged) Be sure to use 1.3.x because 1.4.x is completely broken
(at the time of writing, the forthcoming 1.4.3 might work) (at the time of writing, the forthcoming 1.4.3 might work)
@item @item
vagrant-cachier plugin (unpackaged): `vagrant plugin install vagrant-cachier`
@item
Paramiko (debian package python-paramiko) Paramiko (debian package python-paramiko)
@item @item
Imaging (debian package python-imaging) Imaging (debian package python-imaging)

View file

@ -146,6 +146,10 @@ for f, src, shasum in cachefiles:
vagrantfile = """ vagrantfile = """
Vagrant::Config.run do |config| Vagrant::Config.run do |config|
if Vagrant.has_plugin?("vagrant-cachier")
config.cache.scope = :box
end
config.vm.box = "{0}" config.vm.box = "{0}"
config.vm.box_url = "{1}" config.vm.box_url = "{1}"