Commit graph

36 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
Julien Pervillé 4647721f85 Add support for caching chef gems (in /opt/chef/embedded). 2014-10-29 13:09:22 +06:30
Sébastien LECACHEUR 973d5d1a8f Add support for Bower 2014-10-04 01:34:44 +02:00
Fabio Rehm 1a1b108c23 Disable apt-lists bucket for windows hosts
Fixes GH-106
2014-07-20 22:55:32 -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 c4db3c1ef4 Use $HOME/.composer/cache as the root for the composer bucket
Fixes GH-89
2014-07-20 21:11:20 -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 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
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 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 437ba6a4cf ⚠️ Massive refactoring of buckets code ⚠️
Doing this is kinda irresponsible because we don't have any unit testing
in place but I've had enough of copy & pasting things around. Although it
doesn't make the codebase GREAT, I believe it'll reach a _nice_ status :)

Thanks to those changes I realized that skipping configuration of
buckets that have already been configured was easier than I thought and
should be enough to close GH-85 \o/
2014-02-26 22:03:22 -03:00
Fabio Rehm 1c2116f317 Support for offline provisioning of apt-packages by caching /var/lib/apt/lists [GH-84] 2014-02-26 22:03:22 -03:00
Gordon Franke 93c0c7bf99 add zypper support 2013-11-05 15:10:00 +01:00
Fabio Rehm 7bc70b7d6e Do not attempt to configure apt-cacher-ng bucket if it is not installed on the guest machine 2013-10-26 15:47:31 -02:00
Fabio Rehm 850841fe0a Break some lines 2013-10-23 22:17:26 -02:00
Fabio Rehm e0eeb125d0 Prevent apt cacher bucket from being installed in case NFS is disabled 2013-10-23 22:17:25 -02:00
Fabio Rehm 42cd490313 Merge branch 'npm-cache' of github.com:laggyluke/vagrant-cachier
Conflicts:
	lib/vagrant-cachier/bucket.rb
2013-10-23 21:17:32 -02:00
George Miroshnykov ee6174d33c Add npm support 2013-10-23 16:18:42 +03:00
fh 828793afde removing trailing slashes and chomp() 2013-10-22 16:42:29 +02:00
fh 817d964b8e Adding support for composer cache - http://getcomposer.org/ 2013-10-21 11:17:59 +02:00
Fabio Rehm 4972ec0fa5 Replace apt-cacher error with warning 2013-10-13 17:14:16 -03:00
Fabio Rehm d6066fbde7 Merge pull request #30 from mindreframer/apt-cacher
Apt cacher bucket
2013-10-13 13:14:05 -07:00
Fabio Rehm 0b13040888 Create apt bucket partial cache dir [GH-40] 2013-09-01 19:06:33 -03:00
Fabio Rehm b109e3c4ad Extract "skipping bucket" message out to a locale file 2013-08-03 14:27:54 -03:00
Teemu Matilainen 8203161d6d Don't error out if a bucket is configured for a non-capable guest
If a bucket is configured (globally), just print an info level message
when configuring a non-capable guest machine.
2013-08-01 22:35:12 +03:00
Patrick Connolly 3eede6caf9 Adds basic chef file_cache_path support. 2013-07-22 11:51:27 -04:00
Roman Heinrich b0110897a7 apt-cacher bucket + capability 2013-07-17 13:48:49 +02:00
Bill Cromie d4f96f3f75 renaming rvmdir -> rvm_path 2013-06-25 15:51:59 -04:00
Bill Cromie e89bd1ca2e first whack at rvm support in vagrant-cachier 2013-06-17 17:17:31 -04:00
Patrick Connolly 292c7d2444 Moves from Vagrant to VagrantPlugins top-level namespace. 2013-06-07 22:37:02 -04:00
Fabio Rehm 35515ed243 Look ma, first public release and no specs! 2013-05-22 20:37:14 -03:00