🟢 Stable
Find a file
Darragh Bailey 7807d2bbaa Allow explicit disabling of auto detected buckets
Add config option to identify buckets that should not be automatically
enabled with using `config.cache.auto_detect = true`.

After turning on the auto_detect behaviour, with this change you can
now explicitly disable any bucket type through your Vagrantfile e.g.
`config.cache.disable = :chef_gem`.

Fixes #115
2015-03-03 11:36:17 +00:00
development Download a specific version of vagrant-cachier tarball instead of master so that it can be cached properly 2014-04-06 22:28:15 -03:00
docs Allow explicit disabling of auto detected buckets 2015-03-03 11:36:17 +00:00
lib Allow explicit disabling of auto detected buckets 2015-03-03 11:36:17 +00:00
locales Allow explicit disabling of auto detected buckets 2015-03-03 11:36:17 +00:00
spec/acceptance Allow explicit disabling of auto detected buckets 2015-03-03 11:36:17 +00:00
.gitignore Replace java cookbook usage with a simple remote_file cookbook to simplify testing 2014-04-06 22:23:27 -03:00
CHANGELOG.md v1.2.0 2015-01-14 23:11:54 -02:00
Gemfile Update bundle 2015-01-14 23:02:15 -02:00
Gemfile.lock v1.2.0 2015-01-14 23:11:54 -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 Add link to gitter to readme 2014-08-09 16:21:12 -03:00
vagrant-cachier.gemspec 💣 post install message 2014-09-22 22:24:54 -03:00

vagrant-cachier

Gem Version Gittip Gitter chat

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

    # OPTIONAL: 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