fgrehm / vagrant-cachier

Caffeine reducer
http://fgrehm.viewdocs.io/vagrant-cachier
MIT License
1.08k stars 111 forks source link

Cache omnibus download (via "pseudo bucket") #92

Closed tknerr closed 10 years ago

tknerr commented 10 years ago

This creates a vagrant_omnibus "pseudo bucket" for caching the omnibus packages downloaded via vagrant-omnibus.

It caches the omnibus packages only iff:

  1. bucket auto detection is enabled
  2. vagrant-omnibus plugin is detected
  3. vagrant-omnibus is enabled for that VM

The reason I call this "pseudo bucket" is that it's not implemented as a real bucket + capability. I actually tried this approach first but it didn't work as vagrant-cachier installs the buckets too late (i.e. after vagrant-omnibus runs the install.sh). So I ended up creating a vagrant_omnibus pseudo bucket in ConfigureBucketRoot#call() which is early enough.

If you have better ideas let me know, this was the best I could get at...

See discussion in #13 as well.

tknerr commented 10 years ago

Obsoleted by schisamo/vagrant-omnibus#73