forked from fgrehm/vagrant-cachier
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Allow explicit disabling of auto detected buckets
Add config option to identify buckets that should not be automatically enabled with using `config.cache.auto_detect = true`. After turning on the auto_detect behaviour, with this change you can now explicitly disable any bucket type through your Vagrantfile e.g. `config.cache.disable = :chef_gem`. Fixes fgrehm#115
- Loading branch information
1 parent
2bb7f21
commit 7807d2b
Showing
7 changed files
with
69 additions
and
2 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
Vagrant.configure("2") do |config| | ||
config.vm.provider :virtualbox do |_, override| | ||
override.vm.box = "chef/ubuntu-14.04" | ||
end | ||
|
||
config.vm.provider :lxc do |_, override| | ||
override.vm.box = "fgrehm/trusty64-lxc" | ||
end | ||
|
||
config.cache.auto_detect = true | ||
config.cache.disable = :apt | ||
config.cache.scope = :machine | ||
|
||
config.vm.provision :shell, inline: 'apt-get update && apt-get install -y git' | ||
end |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters