🟢 Stable
Find a file
2014-02-21 20:50:36 -03:00
development Clean up the development environment 2014-02-21 19:51:44 -03:00
docs Add docs for apt-lists bucket 2014-02-14 01:37:56 -02:00
lib Ensure apt partial dirs are created _after_ the symlink is in place, otherwise we would not be able to properly detect whether a bucket is empty or not 2014-02-21 20:50:36 -03:00
locales Disable the plugin on machines backed by cloud providers (fix GH-45) 2014-02-01 20:24:33 -02:00
spec/acceptance Vagrant should be able to download precise64 if we don't have it 2013-12-05 22:50:17 +08:00
.gitignore Prepares development Vagrantfile for Chef's file_cache_path testing. 2013-07-22 11:55:09 -04:00
CHANGELOG.md Warm up empty buckets with Guest VM files 2014-02-21 20:49:50 -03:00
Gemfile Lock vagrant to 1.4.3 2014-02-01 02:34:49 -02:00
Gemfile.lock Lock vagrant to 1.4.3 2014-02-01 02:34:49 -02:00
LICENSE.txt 🎆 New year 🎆 2014-01-02 00:51:05 -02:00
Rakefile Look ma, first public release and no specs! 2013-05-22 20:37:14 -03:00
README.md Update CHANGELOG 2014-02-20 21:58:13 -03:00
vagrant-cachier.gemspec http://tom.preston-werner.com/2010/08/23/readme-driven-development.html 2014-02-05 20:48:28 -02:00

vagrant-cachier

Gem Version Gittip

A Vagrant plugin that helps you reduce the amount of coffee you drink while waiting for boxes to be provisioned by sharing a common package cache among similiar VM instances. Kinda like vagrant-apt_cache or this magical snippet but targetting multiple package managers and Linux distros.

Installation

Make sure you have Vagrant 1.4+ and run:

vagrant plugin install vagrant-cachier

Quick start

Vagrant.configure("2") do |config|
  config.vm.box = 'your-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

    # If you are using VirtualBox, you might want to use that to enable NFS for
    # shared folders. This is also very useful for vagrant-libvirt if you want
    # bi-directional sync
    config.cache.synced_folder_opts = {
      type: :nfs,
      # The nolock option can be useful for an NFSv3 client that wants to avoid the
      # NLM sideband protocol. Without this option, apt-get might hang if it tries
      # to lock files needed for /var/cache/* operations. All of this can be avoided
      # by using NFSv4 everywhere. Please note that the tcp option is not the default.
      mount_options: ['rw', 'vers=3', 'tcp', 'nolock']
    }
    # For more information please check http://docs.vagrantup.com/v2/synced-folders/basic_usage.html
  end
end

For more information please read the documentation available at http://fgrehm.viewdocs.io/vagrant-cachier.

Providers that are known to work

Please note that as of v0.6.0 the plugin will automatically disable any previously defined configs for cloud providers

Contributing

  1. Fork it
  2. Create your feature branch (git checkout -b my-new-feature)
  3. Commit your changes (git commit -am 'Add some feature')
  4. Push to the branch (git push origin my-new-feature)
  5. Create new Pull Request