Skip to content
This repository has been archived by the owner on Dec 5, 2022. It is now read-only.

fgrehm/vagrant-cachier

Folders and files

NameName
Last commit message
Last commit date

Latest commit

7e885eb · Dec 5, 2022
Apr 7, 2014
Sep 23, 2016
Sep 26, 2016
Jul 20, 2014
Jul 20, 2014
Apr 7, 2014
Jul 3, 2015
Jan 15, 2015
Jul 3, 2015
Jan 2, 2014
Dec 5, 2022
May 22, 2013
Sep 23, 2014

Repository files navigation

⚠️ UNMAINTAINED ⚠️

This project has been archived. Thanks a lot to everyone that contributed with it over the years ❤️‍🔥

If anyone else wants to resurrect it please reach out on twitter or by other means listed in @fgrehm's website!


vagrant-cachier

Gem Version 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 similar VM instances. Kinda like vagrant-apt_cache or this magical snippet but targeting 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