Commit graph

139 commits

Author SHA1 Message Date
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
Fabio Rehm 536ca7ad54 Up version for dev 2013-10-27 22:16:07 -02:00
Fabio Rehm c85558010a v0.4.1 2013-10-27 22:14:21 -02: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 8e40d0c060 Up version for dev 2013-10-23 22:31:43 -02:00
Fabio Rehm 64c9b91cf9 v0.4.0 2013-10-23 22:27:22 -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
Fabio Rehm f8e419b8b6 "Disable" composer bucket if php is not installed 2013-10-22 13:56:38 -02: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 cfabddc7c8 Let users know we will attempt to remove symlinks, otherwise vagrant won't output anything prior to the warn 2013-10-17 14:04:09 -03:00
Fabio Rehm 199a14b61f Let users know we were not able to SSH into the VM to remove symlinks 2013-10-17 13:56:27 -03:00
Fabio Rehm cfa2cc262f Fix GH-8 by doing an extra check whether the VM is SSHable 2013-10-17 13:07:43 -03:00
Fabio Rehm 24c1d3a8ac Clean up Action::Clean a bit and get ready to fix GH-8 2013-10-17 12:58:16 -03:00
Fabio Rehm 4e0d1bd8cd Up version for development 2013-10-13 17:14:16 -03: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 11defb0b29 v0.3.3 2013-09-11 20:47:24 -03:00
Fabio Rehm 0b13040888 Create apt bucket partial cache dir [GH-40] 2013-09-01 19:06:33 -03:00
Fabio Rehm 8e89c0b1d5 Up version for dev 2013-08-15 00:53:07 -03:00
Fabio Rehm 837399cd0f v0.3.2 2013-08-15 00:46:45 -03:00
Fabio Rehm 49b36c012a Ensure @env is set at all times during provision action
This fixes the build and closes #41
2013-08-13 23:52:21 -03:00
Fabio Rehm 92b36edee9 Up version for development 2013-08-13 13:04:37 -03:00
Fabio Rehm 22528178d4 v0.3.1 2013-08-13 13:03:02 -03:00
Fabio Rehm e46a3c398b Prevent errors when caching is disabled 2013-08-06 17:31:55 -03:00
Fabio Rehm bd847ce053 Up version for development 2013-08-06 17:31:27 -03:00
Fabio Rehm 71885845ad v0.3.0 2013-08-05 13:15:02 -03:00
Fabio Rehm 07d34726e2 Clean up plugin.rb 2013-08-03 17:14:39 -03:00
Fabio Rehm 9f90f43a21 [GH-6] Move provider specific cache dir to the right path if a single cache dir exists 2013-08-03 17:14:39 -03:00
Fabio Rehm f8d8b2f9cf [GH-6] Error out if multiple provider specific cache dirs are found and prepare to move dirs around in case a single cache dir exists 2013-08-03 16:07:42 -03:00
Fabio Rehm 7ad195776d [GH-6] Setting things up for making sure a single cache root exists 2013-08-03 15:08:20 -03:00
Fabio Rehm 068d9cc8b8 Validate machine scopes from config object and show a nice looking message instead of a stacktrace :)
This should be enough to close #33
2013-08-03 14:53:43 -03:00
Fabio Rehm 20e1176a10 Allow cache scopes to be set as either a symbol or a string 2013-08-03 14:38:02 -03:00
Fabio Rehm b50374162a ProvisionExt is not an action! 2013-08-03 14:38:02 -03:00
Fabio Rehm 18ff01907e Extract "removing symlinks" message out to locale file 2013-08-03 14:28:22 -03:00
Fabio Rehm b109e3c4ad Extract "skipping bucket" message out to a locale file 2013-08-03 14:27:54 -03:00
Fabio Rehm e7912fa14a Reconfigure buckets around after each provisioner
Unfortunately I couldn't think of another way of doing this apart from
monkey patching, there is no way to replace a previously defined action
neither we can hook into calls to provisioners themselves.
2013-08-03 13:35:59 -03:00
Fabio Rehm 410872230b Split actions into separate files 2013-08-03 13:35:59 -03:00
Fabio Rehm 0ab8e98862 Indent code 2013-08-03 13:18:30 -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
Fabio Rehm 57528f5420 Up version for development 2013-07-21 19:07:06 -03:00
Roman Heinrich b0110897a7 apt-cacher bucket + capability 2013-07-17 13:48:49 +02:00
Roman Heinrich ce6e08fd0d handle MultiWord bucket classes 2013-07-17 13:47:53 +02:00
Roman Heinrich 064160288a handle buckets with "_" in name 2013-07-17 13:47:35 +02:00
Fabio Rehm ae6cb5bcfb v0.2.0 2013-07-10 21:13:06 -03:00
Bill Cromie d4f96f3f75 renaming rvmdir -> rvm_path 2013-06-25 15:51:59 -04:00
Bill Cromie 3a9ac6140b loading in the rvmdir classes in the plugin file.
This should now work...
2013-06-21 15:09:25 -04:00
Bill Cromie bf10fc4efc adding requires for the rvm files 2013-06-17 17:22:38 -04:00
Bill Cromie e89bd1ca2e first whack at rvm support in vagrant-cachier 2013-06-17 17:17:31 -04:00
Fabio Rehm bbdbc5beba Add support for using NFS for root cache folder 2013-06-11 20:17:54 -03:00
Patrick Connolly cd8a925cf6 v0.1.0 2013-06-09 23:14:21 -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