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
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
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.
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/