Commit graph

106 commits

Author SHA1 Message Date
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
Fabio Rehm 01bef9f407 Fix npm bucket
npm is the only bucket that uses this method
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
Fabio Rehm 1fa46ca2d4 Do not attempt chmods when the plugin is disabled 2014-02-26 22:03:21 -03:00
Fabio Rehm 8d6c7c62da Handle nil value for synced_folder_opts 2014-02-26 22:03:21 -03:00
Fabio Rehm 0dd1b20053 chmod /tmp/vagrant-cache on guest VM to 777 to work around some permission issues as explained on GH-74 2014-02-26 22:03:21 -03:00
Fabio Rehm 59887560ed Trigger plugin activation by setting cache scope [GH-17] 2014-02-26 22:03:21 -03:00
Fabio Rehm ea88562145 Sorry about that, was testing GH-45 2014-02-26 22:03:21 -03:00
Fabio Rehm 0106155a0f Disable the plugin on machines backed by cloud providers (fix GH-45) 2014-02-26 22:03:21 -03:00
Fabio Rehm 09d65c4a3c Ooops 2014-02-26 22:03:21 -03:00
Fabio Rehm 8a4b911678 Extract plugin hooks and capabilities out to separate files 2014-02-26 22:03:21 -03:00
Fabio Rehm ca8764f938 Add support for disabling the plugin [GH-72] 2014-02-26 22:03:21 -03:00
Fabio Rehm 6908b94609 Improved logging 2014-02-26 22:03:21 -03:00
Fabio Rehm 2f75ffe692 Clean up InstallBuckets action a bit 2014-02-26 22:03:21 -03:00
Fabio Rehm 0f533a9b30 💣 monkey patch on Builtin::Provision action \o/ (closes GH-60) 2014-02-26 22:03:21 -03:00
Fabio Rehm aa793367b7 Extract cachier's root bucket directory creation out to a separate action [GH-60] 2014-02-26 22:03:21 -03:00
Fabio Rehm e01a78138a Blow up if using vagrant < 1.4.0 2014-02-26 22:03:21 -03:00
Fabio Rehm d823a97cb8 When specifying NFS synced folders we need to use a symbol (fix GH-76) 2014-02-26 22:03:20 -03:00
Fabio Rehm 4ffb47f838 Display enable_nfs deprecation warning only once 2014-02-26 22:03:20 -03:00
Fabio Rehm e4f6dd69e4 Display a warning using Vagrant's UI in case enable_nfs is set 2014-02-26 22:03:20 -03:00
Fabio Rehm cdf13d3f70 Mark config.enable_nfs as deprecated 2014-02-26 22:03:20 -03:00
Fabio Rehm 3b83867427 Replace enable_nfs and sync_opts config with synced_folder_opts 2014-02-26 22:03:20 -03:00
Fabio Rehm 1541f35ef8 This is no longer needed 2014-02-26 22:03:20 -03:00
Fabio Rehm 98c211590c After 5 months I believe it is safe to get rid of this code 2014-02-26 22:03:20 -03:00
Fabio Rehm 5ff8d1013a We'll drop support for Vagrant < 1.4, that means we should be bumping to 0.6.0 2014-02-26 22:03:20 -03:00
Erno Aapa 4668f1d486 Support for extra synced_folder options
Added ability to pass extra synced_folder options through new
config.cache.sync_opts -configuration.
2014-02-26 22:03:20 -03:00
Fabio Rehm 50f4536ff7 Up version for development 2013-12-20 11:56:14 -02:00
Fabio Rehm 27b87567a5 v0.5.1 2013-12-20 11:55:04 -02:00
Fabio Rehm aa46abac37 Fix NFS configs for 1.4 while keeping support for < 1.4 as well 2013-12-18 03:19:15 -02:00
Fabio Rehm 2cb0610cc1 Up version for development 2013-11-08 19:01:24 -02:00
Fabio Rehm 4d01bff390 v0.5.0 2013-11-06 19:45:20 -02:00
Fabio Rehm 6a8d661e97 [GH-54] Disable yum on suse guests 2013-11-06 19:43:18 -02:00
Gordon Franke 93c0c7bf99 add zypper support 2013-11-05 15:10:00 +01:00