Commit graph

139 commits

Author SHA1 Message Date
Roman Mohr
fad6bbf6a0 Yum is replaced by DNF in newer Fedora releases
Check if yum is really present on a 'redhat' machine.  Only if it is,
enable the Yum bucket. The same for DNF since older versions of CentOS
and Fedora do not ship DNF.
2016-09-26 14:03:23 +02:00
Roman Mohr
5141e1305a Add support for DNF
If the folder `/car/cache/dnf` is present, the content will be cached
like in the Yum plugin.

A possible configuration to enable it:

Vagrant.configure(2) do |config|
   config.vm.box = "fedora/24-cloud-base"
  if Vagrant.has_plugin?("vagrant-cachier")
    config.cache.scope = :machine
    config.cache.auto_detect = false
    config.cache.enable :dnf
  end
end
2016-09-23 12:10:29 +02:00
AmirAli Moinfar
1c3fcd2768 Add support for caching pip packages
These directories are chached for pip packages:
$HOME/.cache/pip/http
$HOME/.cache/pip/wheels
2015-07-05 13:56:18 +04:30
Patrick Connolly
40dddfb368 v1.2.1 2015-07-03 14:51:55 -04:00
Patrick Connolly
dd32f2472e Add chef_zero provisioner support. 2015-06-03 13:45:22 -04:00
Fabio Rehm
2bb7f21273 v1.2.0 2015-01-14 23:11:54 -02:00
Fabio Rehm
00e2d858da Merge branch 'vagrant_1-7-1_fix' of https://github.com/Yserz/vagrant-cachier
Conflicts:
	lib/vagrant-cachier/cap/linux/chef_file_cache_path.rb
2015-01-14 23:04:32 -02:00
Fabio Rehm
e227077008 Merge branch 'patch-1' of https://github.com/cassianoleal/vagrant-cachier 2015-01-14 23:03:29 -02:00
cassiano
c6d4e57554 Do not modify Vagrant core object
Using [Array#keep_if](http://www.ruby-doc.org/core-1.9.3/Array.html#method-i-keep_if) on a Vagrant core object can lead to unpredictable behaviour down the line as it modifies the object instead of creating a new one.

An example of such interference is described on https://github.com/cassianoleal/vagrant-butcher/issues/57. The problem with `keep_if` was identified by @sethvargo on this issue: https://github.com/mitchellh/vagrant/issues/5060#issuecomment-68107995
2014-12-25 18:33:34 +01:00
Michael K
15b0039467 Use provisioner type attribute
Vagrant changed the provisioner name attribute to type in version 1.7.1.
2014-12-22 21:08:56 +01:00
Julien Pervillé
4647721f85 Add support for caching chef gems (in /opt/chef/embedded). 2014-10-29 13:09:22 +06:30
Fabio Rehm
9f6b615e84 v1.1.0 2014-10-15 01:28:54 -03:00
Fabio Rehm
837003ed48 Merge pull request #125 from slecache/bower
Add support for Bower
2014-10-15 01:16:26 -03:00
Sébastien LECACHEUR
973d5d1a8f Add support for Bower 2014-10-04 01:34:44 +02:00
David Schoen
e9f4df338a Resolve $HOME even if VM spits bogus new lines
Fixes issue #122
2014-09-28 16:03:51 +10:00
Fabio Rehm
1333041059 Bump version to 1.0 along with an update to dev dependencies 2014-09-22 22:22:03 -03:00
Fabio Rehm
25f5582e20 v0.9.0 2014-08-09 16:07:57 -03:00
John Barbuto
b7b3bcb3ed Check if image is set with docker provider
If build_dir is set instead for building images on demand, there's no way to
know what to set the bucket name to, except perhaps parsing it from Dockerfile.
2014-07-24 23:25:36 -07:00
John Barbuto
c7c47782cb Use image for bucket name with docker, if box is unset
This allows multiple machines using the image to share the cache
and avoids the following error:

    /Applications/Vagrant/embedded/lib/ruby/2.0.0/pathname.rb:389:in
    `initialize': no implicit conversion of nil into String (TypeError)
2014-07-22 22:54:19 -07:00
Fabio Rehm
d94f08a048 v0.8.0 (aka 1.0.0 release candidate) 2014-07-20 23:02:04 -03:00
Fabio Rehm
1a1b108c23 Disable apt-lists bucket for windows hosts
Fixes GH-106
2014-07-20 22:55:32 -03:00
Fabio Rehm
2b6a07d000 Skip chmod 777 for cache bucket root for smb synced folders
Closes GH-107
2014-07-20 22:14:19 -03:00
Fabio Rehm
871f317ba6 Set composer cache bucket ownership to the configured SSH user 2014-07-20 21:13:35 -03:00
Fabio Rehm
44aa6a6c54 Remove unecessary logic to skip parent folder creation when preparing bucket symlinks 2014-07-20 21:12:28 -03:00
Fabio Rehm
c4db3c1ef4 Use $HOME/.composer/cache as the root for the composer bucket
Fixes GH-89
2014-07-20 21:11:20 -03:00
Fabio Rehm
4265f58985 Remove some TODOs that have been around for way too long and havent been an issue for a long time 2014-07-20 20:52:31 -03:00
Fabio Rehm
82fe74a888 👋 to the deprecated enable_nfs config 2014-07-20 20:36:32 -03:00
Fabio Rehm
5f4a7f1967 Make use of the Vagrantfile configured base box name instead of getting it from the Box object (which might be nil)
Closes GH-86
2014-07-20 20:34:14 -03:00
Fabio Rehm
2cc7b837db Lets keep this code as it is 2014-07-20 20:15:47 -03:00
Fabio Rehm
2b8a281e8a Whitespace 2014-07-20 20:13:36 -03:00
Fabio Rehm
d885c901b9 Up development version 2014-07-20 20:01:28 -03:00
Fabio Rehm
6e160ba4cb v0.7.2 2014-05-08 10:06:51 -03:00
Christian Berendt
f65a1217e9 added missing cloud providers 2014-05-07 20:50:06 +02:00
Fabio Rehm
3997e2abc7 v0.7.1 2014-05-04 23:20:28 -03:00
Gustavo L. de M. Chaves
8ac8d7f6f6 Fix multi generic bucket set up
The previously documented way to specify multiple generic buckets
doesn't work because vagrant-cachier can't enable a bucket type more
than once.

Here we generalize the configs hash that the generic bucket gets making
it possible to specify multiple buckets with a single hash. The
documentation is changed accordingly.

Note that we keep it backwards compatible for single generic bucket
specification.

Issue: https://github.com/fgrehm/vagrant-cachier/issues/99
2014-04-16 09:04:49 -03:00
Fabio Rehm
184330dfb4 v0.7.0 2014-04-06 22:30:11 -03:00
Fabio Rehm
12f121e6e4 Properly fix GH-96 2014-04-06 21:47:24 -03:00
Fabio Rehm
20373aa0d7 Fix GH-96 2014-04-06 21:34:58 -03:00
Fabio Rehm
a4c5f05263 Add missing end to generic bucket and remove capability method [GH-94] 2014-04-06 21:27:06 -03:00
Fabio Rehm
8d48dacf24 Skip bucket auto detection in case the bucket can't be auto detected [GH-94] 2014-04-06 21:25:58 -03:00
Fabio Rehm
ffd6c514dd Merge branch 'generic-bucket' of https://github.com/gnustavo/vagrant-cachier 2014-04-06 21:02:56 -03:00
Fabio Rehm
b28da3ab26 Up version to 0.7.0 as we will add a new feature to the plugin 2014-04-06 21:02:37 -03:00
Gustavo L. de M. Chaves
a63156e482 Implement generic bucket
This bucket must be explicitly enabled and may be useful for users
wanting a generic caching mechanism that they can use directly instead
of via some predefined packaging system.

For instance, this enables one to implement a cache for packages
downloaded via wget or curl.
2014-03-23 22:29:23 -03:00
Fabio Rehm
2faa661546 Up dev version 2014-02-26 22:05:35 -03:00
Fabio Rehm
ede55cdfaf v0.6.0 2014-02-26 22:03:22 -03:00
Fabio Rehm
f968e2d458 Improve check for whether we should warm up the cache or not 2014-02-26 22:03:22 -03:00
Fabio Rehm
2db38dfa6e Remove unused var 2014-02-26 22:03:22 -03:00
Fabio Rehm
b8394f7e6a 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-26 22:03:22 -03:00
Fabio Rehm
ac4243d85e Warm up empty buckets with Guest VM files 2014-02-26 22:03:22 -03:00
Fabio Rehm
2a63617e75 Ensure /tmp/vagrant-cache exists before chmodding it 2014-02-26 22:03:22 -03:00