vagrant-cachier 0.7.2 → 0.8.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/CHANGELOG.md +24 -0
- data/Gemfile +3 -4
- data/Gemfile.lock +57 -22
- data/README.md +7 -6
- data/docs/buckets/apt-lists.md +9 -0
- data/docs/buckets/composer.md +1 -1
- data/docs/how-does-it-work.md +1 -1
- data/docs/index.md +3 -3
- data/lib/vagrant-cachier/action/configure_bucket_root.rb +5 -1
- data/lib/vagrant-cachier/action/install_buckets.rb +21 -2
- data/lib/vagrant-cachier/bucket/apt_lists.rb +4 -0
- data/lib/vagrant-cachier/bucket/composer.rb +1 -1
- data/lib/vagrant-cachier/bucket.rb +2 -2
- data/lib/vagrant-cachier/cap/arch/pacman_cache_dir.rb +0 -1
- data/lib/vagrant-cachier/cap/debian/apt_cache_dir.rb +0 -1
- data/lib/vagrant-cachier/cap/linux/chef_file_cache_path.rb +0 -1
- data/lib/vagrant-cachier/cap/linux/composer_path.rb +1 -1
- data/lib/vagrant-cachier/cap/redhat/yum_cache_dir.rb +0 -1
- data/lib/vagrant-cachier/cap/suse/zypper_cache_dir.rb +0 -1
- data/lib/vagrant-cachier/config.rb +0 -8
- data/lib/vagrant-cachier/plugin.rb +1 -3
- data/lib/vagrant-cachier/version.rb +1 -1
- data/locales/en.yml +0 -5
- data/spec/acceptance/fixtures/auto-detect-with-provisioning.rb +8 -4
- data/spec/acceptance/fixtures/auto-detect.rb +8 -4
- data/spec/acceptance/fixtures/no-cachier-simple.rb +6 -4
- data/spec/acceptance/fixtures/no-cachier-with-provisioning.rb +7 -4
- data/vagrant-cachier.gemspec +5 -3
- metadata +6 -6
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA1:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: c34a7a777e84e089b03b3fe213c2f705df83304d
|
|
4
|
+
data.tar.gz: 11310d3e4628d50460f5ba2e6523e727516d717a
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 3f9af81dccf7ce4119172a77f6eb4d6078d00b0f339ba31d4a3a2291f30dc48b0634870ebf32ae48c561a7c4654457c2de20fe68b702f800b8fafa48260cc4a4
|
|
7
|
+
data.tar.gz: 82839e00f19b88f973a7a4e09d171c3836bf6cfcfe8e208c782bfe3ab3aed489135593d720610bca0335e94a4908c0e85800c209dd7d8af71298f63ec7600edc
|
data/CHANGELOG.md
CHANGED
|
@@ -1,3 +1,27 @@
|
|
|
1
|
+
## [0.8.0](https://github.com/fgrehm/vagrant-cachier/compare/v0.7.2...v0.8.0) (Jul 20, 2014)
|
|
2
|
+
|
|
3
|
+
**This is considered a release candidate for a 1.0 that will be cut within ~2 weeks if no major issues are reported**
|
|
4
|
+
|
|
5
|
+
BACKWARDS INCOMPATIBILITIES:
|
|
6
|
+
|
|
7
|
+
- Removed deprecated `config.enable_nfs` config.
|
|
8
|
+
- Changed composer cache bucket to use `$HOME/.composer/cache` [[GH-89]]
|
|
9
|
+
|
|
10
|
+
IMPROVEMENTS:
|
|
11
|
+
|
|
12
|
+
- Set composer cache bucket ownership to the configured SSH user.
|
|
13
|
+
|
|
14
|
+
BUG FIXES:
|
|
15
|
+
|
|
16
|
+
- Automatically disable apt-lists bucket when a Windows host is detected [[GH-106]]
|
|
17
|
+
- Skip `chmod 777` for `smb` mounted folders [[GH-107]]
|
|
18
|
+
- Do not error if base box has been removed and `:box` is configured as the cache scope [[GH-86]]
|
|
19
|
+
|
|
20
|
+
[GH-86]: https://github.com/fgrehm/vagrant-cachier/issues/86
|
|
21
|
+
[GH-89]: https://github.com/fgrehm/vagrant-cachier/issues/89
|
|
22
|
+
[GH-106]: https://github.com/fgrehm/vagrant-cachier/issues/106
|
|
23
|
+
[GH-107]: https://github.com/fgrehm/vagrant-cachier/issues/107
|
|
24
|
+
|
|
1
25
|
## [0.7.2](https://github.com/fgrehm/vagrant-cachier/compare/v0.7.1...v0.7.2) (May 08, 2014)
|
|
2
26
|
|
|
3
27
|
IMPROVEMENTS:
|
data/Gemfile
CHANGED
|
@@ -1,14 +1,13 @@
|
|
|
1
1
|
source 'https://rubygems.org'
|
|
2
2
|
|
|
3
3
|
group :development do
|
|
4
|
-
gem 'vagrant',
|
|
4
|
+
gem 'vagrant', github: 'mitchellh/vagrant', tag: 'v1.6.3'
|
|
5
5
|
gem 'rake'
|
|
6
6
|
end
|
|
7
7
|
|
|
8
8
|
group :plugins do
|
|
9
9
|
gemspec
|
|
10
|
-
gem 'vagrant-lxc',
|
|
11
|
-
gem 'vagrant-pristine',
|
|
12
|
-
gem 'vagrant-global-status', github: 'fgrehm/vagrant-global-status'
|
|
10
|
+
gem 'vagrant-lxc', github: 'fgrehm/vagrant-lxc'
|
|
11
|
+
gem 'vagrant-pristine', github: 'fgrehm/vagrant-pristine'
|
|
13
12
|
gem 'vagrant-omnibus'
|
|
14
13
|
end
|
data/Gemfile.lock
CHANGED
|
@@ -1,14 +1,8 @@
|
|
|
1
|
-
GIT
|
|
2
|
-
remote: git://github.com/fgrehm/vagrant-global-status.git
|
|
3
|
-
revision: 6a93c79c7595b76392a2b559674985eabc004aa8
|
|
4
|
-
specs:
|
|
5
|
-
vagrant-global-status (0.1.5.dev)
|
|
6
|
-
|
|
7
1
|
GIT
|
|
8
2
|
remote: git://github.com/fgrehm/vagrant-lxc.git
|
|
9
|
-
revision:
|
|
3
|
+
revision: 95b18a5d5cf43e17b8bd99a265d281739a137988
|
|
10
4
|
specs:
|
|
11
|
-
vagrant-lxc (1.0.0.alpha.
|
|
5
|
+
vagrant-lxc (1.0.0.alpha.3.dev)
|
|
12
6
|
|
|
13
7
|
GIT
|
|
14
8
|
remote: git://github.com/fgrehm/vagrant-pristine.git
|
|
@@ -18,53 +12,95 @@ GIT
|
|
|
18
12
|
|
|
19
13
|
GIT
|
|
20
14
|
remote: git://github.com/mitchellh/vagrant.git
|
|
21
|
-
revision:
|
|
22
|
-
tag: v1.
|
|
15
|
+
revision: 85d63a91f7aff7c16afee1dbc8bccc11cc6faa5e
|
|
16
|
+
tag: v1.6.3
|
|
23
17
|
specs:
|
|
24
|
-
vagrant (1.
|
|
25
|
-
bundler (
|
|
18
|
+
vagrant (1.6.3)
|
|
19
|
+
bundler (>= 1.5.2, < 1.7.0)
|
|
26
20
|
childprocess (~> 0.5.0)
|
|
27
21
|
erubis (~> 2.7.0)
|
|
28
22
|
i18n (~> 0.6.0)
|
|
29
|
-
listen (~> 2.
|
|
23
|
+
listen (~> 2.7.1)
|
|
30
24
|
log4r (~> 1.1.9, < 1.1.11)
|
|
31
25
|
net-scp (~> 1.1.0)
|
|
32
|
-
net-ssh (>= 2.6.6, < 2.
|
|
26
|
+
net-ssh (>= 2.6.6, < 2.10.0)
|
|
33
27
|
rb-kqueue (~> 0.2.0)
|
|
34
28
|
wdm (~> 0.1.0)
|
|
29
|
+
winrm (~> 1.1.3)
|
|
35
30
|
|
|
36
31
|
PATH
|
|
37
32
|
remote: .
|
|
38
33
|
specs:
|
|
39
|
-
vagrant-cachier (0.
|
|
34
|
+
vagrant-cachier (0.8.0)
|
|
40
35
|
|
|
41
36
|
GEM
|
|
42
37
|
remote: https://rubygems.org/
|
|
43
38
|
specs:
|
|
39
|
+
akami (1.2.2)
|
|
40
|
+
gyoku (>= 0.4.0)
|
|
41
|
+
nokogiri
|
|
42
|
+
builder (3.2.2)
|
|
44
43
|
celluloid (0.15.2)
|
|
45
44
|
timers (~> 1.1.0)
|
|
46
45
|
childprocess (0.5.3)
|
|
47
46
|
ffi (~> 1.0, >= 1.0.11)
|
|
48
47
|
erubis (2.7.0)
|
|
49
48
|
ffi (1.9.3)
|
|
50
|
-
|
|
51
|
-
|
|
49
|
+
gssapi (1.0.3)
|
|
50
|
+
ffi (>= 1.0.1)
|
|
51
|
+
gyoku (1.1.1)
|
|
52
|
+
builder (>= 2.1.2)
|
|
53
|
+
httpclient (2.4.0)
|
|
54
|
+
httpi (0.9.7)
|
|
55
|
+
rack
|
|
56
|
+
i18n (0.6.11)
|
|
57
|
+
listen (2.7.9)
|
|
52
58
|
celluloid (>= 0.15.2)
|
|
53
59
|
rb-fsevent (>= 0.9.3)
|
|
54
60
|
rb-inotify (>= 0.9)
|
|
61
|
+
little-plugger (1.1.3)
|
|
55
62
|
log4r (1.1.10)
|
|
63
|
+
logging (1.8.2)
|
|
64
|
+
little-plugger (>= 1.1.3)
|
|
65
|
+
multi_json (>= 1.8.4)
|
|
66
|
+
mini_portile (0.6.0)
|
|
67
|
+
multi_json (1.10.1)
|
|
56
68
|
net-scp (1.1.2)
|
|
57
69
|
net-ssh (>= 2.6.5)
|
|
58
|
-
net-ssh (2.
|
|
59
|
-
|
|
70
|
+
net-ssh (2.9.1)
|
|
71
|
+
nokogiri (1.6.3)
|
|
72
|
+
mini_portile (= 0.6.0)
|
|
73
|
+
nori (1.1.5)
|
|
74
|
+
rack (1.5.2)
|
|
75
|
+
rake (10.3.2)
|
|
60
76
|
rb-fsevent (0.9.4)
|
|
61
|
-
rb-inotify (0.9.
|
|
77
|
+
rb-inotify (0.9.5)
|
|
62
78
|
ffi (>= 0.5.0)
|
|
63
|
-
rb-kqueue (0.2.
|
|
79
|
+
rb-kqueue (0.2.3)
|
|
64
80
|
ffi (>= 0.5.0)
|
|
81
|
+
rubyntlm (0.1.1)
|
|
82
|
+
savon (0.9.5)
|
|
83
|
+
akami (~> 1.0)
|
|
84
|
+
builder (>= 2.1.2)
|
|
85
|
+
gyoku (>= 0.4.0)
|
|
86
|
+
httpi (~> 0.9)
|
|
87
|
+
nokogiri (>= 1.4.0)
|
|
88
|
+
nori (~> 1.0)
|
|
89
|
+
wasabi (~> 1.0)
|
|
65
90
|
timers (1.1.0)
|
|
91
|
+
uuidtools (2.1.4)
|
|
66
92
|
vagrant-omnibus (1.4.1)
|
|
93
|
+
wasabi (1.0.0)
|
|
94
|
+
nokogiri (>= 1.4.0)
|
|
67
95
|
wdm (0.1.0)
|
|
96
|
+
winrm (1.1.3)
|
|
97
|
+
gssapi (~> 1.0.0)
|
|
98
|
+
httpclient (~> 2.2, >= 2.2.0.2)
|
|
99
|
+
logging (~> 1.6, >= 1.6.1)
|
|
100
|
+
nokogiri (~> 1.5)
|
|
101
|
+
rubyntlm (~> 0.1.1)
|
|
102
|
+
savon (= 0.9.5)
|
|
103
|
+
uuidtools (~> 2.1.2)
|
|
68
104
|
|
|
69
105
|
PLATFORMS
|
|
70
106
|
ruby
|
|
@@ -73,7 +109,6 @@ DEPENDENCIES
|
|
|
73
109
|
rake
|
|
74
110
|
vagrant!
|
|
75
111
|
vagrant-cachier!
|
|
76
|
-
vagrant-global-status!
|
|
77
112
|
vagrant-lxc!
|
|
78
113
|
vagrant-omnibus
|
|
79
114
|
vagrant-pristine!
|
data/README.md
CHANGED
|
@@ -27,9 +27,9 @@ Vagrant.configure("2") do |config|
|
|
|
27
27
|
# More info on http://fgrehm.viewdocs.io/vagrant-cachier/usage
|
|
28
28
|
config.cache.scope = :box
|
|
29
29
|
|
|
30
|
-
# If you are using VirtualBox, you might want to use that to enable
|
|
31
|
-
# shared folders. This is also very useful for vagrant-libvirt if you
|
|
32
|
-
# bi-directional sync
|
|
30
|
+
# OPTIONAL: If you are using VirtualBox, you might want to use that to enable
|
|
31
|
+
# NFS for shared folders. This is also very useful for vagrant-libvirt if you
|
|
32
|
+
# want bi-directional sync
|
|
33
33
|
config.cache.synced_folder_opts = {
|
|
34
34
|
type: :nfs,
|
|
35
35
|
# The nolock option can be useful for an NFSv3 client that wants to avoid the
|
|
@@ -49,12 +49,13 @@ http://fgrehm.viewdocs.io/vagrant-cachier.
|
|
|
49
49
|
|
|
50
50
|
## Providers that are known to work
|
|
51
51
|
|
|
52
|
-
* Vagrant's built in VirtualBox
|
|
52
|
+
* Vagrant's built in VirtualBox and Docker providers
|
|
53
53
|
* [vagrant-lxc](https://github.com/fgrehm/vagrant-lxc)
|
|
54
54
|
* [VMware providers](http://www.vagrantup.com/vmware) with NFS enabled (See
|
|
55
55
|
[GH-24](https://github.com/fgrehm/vagrant-cachier/issues/24) for more info)
|
|
56
|
-
* [
|
|
57
|
-
*
|
|
56
|
+
* [vagrant-libvirt](https://github.com/pradels/vagrant-libvirt)
|
|
57
|
+
* [vagrant-kvm](https://github.com/adrahon/vagrant-kvm)
|
|
58
|
+
* _[Let us know if it is compatible with other providers!](https://github.com/fgrehm/vagrant-cachier/issues/new)_
|
|
58
59
|
|
|
59
60
|
_Please note that as of v0.6.0 the plugin will automatically disable any
|
|
60
61
|
previously defined configs for [cloud providers](lib/vagrant-cachier/plugin.rb#L19-22)_
|
data/docs/buckets/apt-lists.md
CHANGED
|
@@ -16,3 +16,12 @@ Vagrant.configure("2") do |config|
|
|
|
16
16
|
config.cache.enable :apt_lists
|
|
17
17
|
end
|
|
18
18
|
```
|
|
19
|
+
|
|
20
|
+
## Heads up!
|
|
21
|
+
|
|
22
|
+
This bucket is automatically disabled for Windows hosts, please have a look at
|
|
23
|
+
the following issues for more information:
|
|
24
|
+
|
|
25
|
+
* https://github.com/fgrehm/vagrant-cachier/issues/106
|
|
26
|
+
* https://github.com/fgrehm/vagrant-cachier/issues/109
|
|
27
|
+
* https://github.com/fgrehm/vagrant-cachier/issues/113
|
data/docs/buckets/composer.md
CHANGED
data/docs/how-does-it-work.md
CHANGED
|
@@ -11,7 +11,7 @@ Regarding configurations, right now the plugin does not make any assumptions for
|
|
|
11
11
|
you and you have to configure things properly from your `Vagrantfile`. In other
|
|
12
12
|
words, _the plugin is disabled by default_.
|
|
13
13
|
|
|
14
|
-
Cache buckets will always be available from `/tmp/vagrant-
|
|
14
|
+
Cache buckets will always be available from `/tmp/vagrant-cache` on your guest and
|
|
15
15
|
the appropriate folders will get symlinked to the right path _after_ the machine is
|
|
16
16
|
up but _right before_ it gets provisioned. We _could_ potentially do it on one go
|
|
17
17
|
and share bucket's folders directly to the right path if we were only using VirtualBox
|
data/docs/index.md
CHANGED
|
@@ -28,9 +28,9 @@ Vagrant.configure("2") do |config|
|
|
|
28
28
|
# More info on the "Usage" link above
|
|
29
29
|
config.cache.scope = :box
|
|
30
30
|
|
|
31
|
-
# If you are using VirtualBox, you might want to use that to enable
|
|
32
|
-
# shared folders. This is also very useful for vagrant-libvirt if you
|
|
33
|
-
# bi-directional sync
|
|
31
|
+
# OPTIONAL: If you are using VirtualBox, you might want to use that to enable
|
|
32
|
+
# NFS for shared folders. This is also very useful for vagrant-libvirt if you
|
|
33
|
+
# want bi-directional sync
|
|
34
34
|
config.cache.synced_folder_opts = {
|
|
35
35
|
type: :nfs,
|
|
36
36
|
# The nolock option can be useful for an NFSv3 client that wants to avoid the
|
|
@@ -33,13 +33,17 @@ module VagrantPlugins
|
|
|
33
33
|
def cache_root
|
|
34
34
|
@cache_root ||= case @env[:machine].config.cache.scope.to_sym
|
|
35
35
|
when :box
|
|
36
|
-
@env[:home_path].join('cache',
|
|
36
|
+
@env[:home_path].join('cache', box_name)
|
|
37
37
|
when :machine
|
|
38
38
|
@env[:machine].data_dir.parent.join('cache')
|
|
39
39
|
else
|
|
40
40
|
raise "Unknown cache scope: '#{@env[:machine].config.cache.scope}'"
|
|
41
41
|
end
|
|
42
42
|
end
|
|
43
|
+
|
|
44
|
+
def box_name
|
|
45
|
+
@env[:machine].config.vm.box
|
|
46
|
+
end
|
|
43
47
|
end
|
|
44
48
|
end
|
|
45
49
|
end
|
|
@@ -20,8 +20,13 @@ module VagrantPlugins
|
|
|
20
20
|
end
|
|
21
21
|
|
|
22
22
|
def chmod_bucket_root(machine)
|
|
23
|
-
|
|
24
|
-
|
|
23
|
+
machine.communicate.sudo 'mkdir -p /tmp/vagrant-cache'
|
|
24
|
+
|
|
25
|
+
# https://github.com/fgrehm/vagrant-cachier/issues/107
|
|
26
|
+
if ! smb_synced_folder_enabled?(machine)
|
|
27
|
+
@logger.info "'chmod'ing bucket root dir to 777..."
|
|
28
|
+
machine.communicate.sudo 'chmod 777 /tmp/vagrant-cache'
|
|
29
|
+
end
|
|
25
30
|
end
|
|
26
31
|
|
|
27
32
|
def configure_cache_buckets(env)
|
|
@@ -41,6 +46,20 @@ module VagrantPlugins
|
|
|
41
46
|
data_file = env[:machine].data_dir.join('cache_dirs')
|
|
42
47
|
data_file.open('w') { |f| f.print env[:cache_dirs].uniq.join("\n") }
|
|
43
48
|
end
|
|
49
|
+
|
|
50
|
+
def smb_synced_folder_enabled?(machine)
|
|
51
|
+
synced_folder_opts = machine.config.cache.synced_folder_opts
|
|
52
|
+
synced_folder_opts ||= {}
|
|
53
|
+
|
|
54
|
+
# If smb was explicitly enabled
|
|
55
|
+
if synced_folder_opts[:type] && synced_folder_opts[:type].to_s == 'smb'
|
|
56
|
+
return true
|
|
57
|
+
elsif machine.provider_name.to_sym == :hyperv
|
|
58
|
+
# If the provider in use is hyperv, the default synced folder is 'smb'
|
|
59
|
+
# unless specified
|
|
60
|
+
return synced_folder_opts[:type] == nil
|
|
61
|
+
end
|
|
62
|
+
end
|
|
44
63
|
end
|
|
45
64
|
end
|
|
46
65
|
end
|
|
@@ -7,6 +7,10 @@ module VagrantPlugins
|
|
|
7
7
|
end
|
|
8
8
|
|
|
9
9
|
def install
|
|
10
|
+
# Apt lists bucket can't be used on windows hosts
|
|
11
|
+
# https://github.com/fgrehm/vagrant-cachier/issues/106
|
|
12
|
+
return if Vagrant::Util::Platform.windows?
|
|
13
|
+
|
|
10
14
|
if guest.capability?(:apt_lists_dir)
|
|
11
15
|
guest_path = guest.capability(:apt_lists_dir)
|
|
12
16
|
|
|
@@ -9,7 +9,7 @@ module VagrantPlugins
|
|
|
9
9
|
def install
|
|
10
10
|
if guest.capability?(:composer_path)
|
|
11
11
|
if composer_path = guest.capability(:composer_path)
|
|
12
|
-
|
|
12
|
+
user_symlink(composer_path)
|
|
13
13
|
end
|
|
14
14
|
else
|
|
15
15
|
@env[:ui].info I18n.t('vagrant_cachier.skipping_bucket', bucket: 'Composer')
|
|
@@ -43,13 +43,13 @@ module VagrantPlugins
|
|
|
43
43
|
end
|
|
44
44
|
|
|
45
45
|
# TODO: "merge" symlink and user_symlink methods
|
|
46
|
-
def symlink(guest_path, bucket_path = "/tmp/vagrant-cache/#{@name}"
|
|
46
|
+
def symlink(guest_path, bucket_path = "/tmp/vagrant-cache/#{@name}")
|
|
47
47
|
return if @env[:cache_dirs].include?(guest_path)
|
|
48
48
|
|
|
49
49
|
@env[:cache_dirs] << guest_path
|
|
50
50
|
comm.execute("mkdir -p #{bucket_path}")
|
|
51
51
|
unless symlink?(guest_path)
|
|
52
|
-
comm.sudo("mkdir -p `dirname #{guest_path}`")
|
|
52
|
+
comm.sudo("mkdir -p `dirname #{guest_path}`")
|
|
53
53
|
if empty_dir?(bucket_path) && !empty_dir?(guest_path)
|
|
54
54
|
# Warm up cache with guest machine data
|
|
55
55
|
comm.sudo("shopt -s dotglob && mv #{guest_path}/* #{bucket_path}")
|
|
@@ -17,14 +17,6 @@ module VagrantPlugins
|
|
|
17
17
|
(@buckets ||= {})[bucket] = opts
|
|
18
18
|
end
|
|
19
19
|
|
|
20
|
-
def enable_nfs=(value)
|
|
21
|
-
@ui.warn "The `enable_nfs` config for vagrant-cachier has been deprecated " \
|
|
22
|
-
"and will be removed on 0.7.0, please use " \
|
|
23
|
-
"`synced_folder_opts = { type: :nfs }` instead.\n"
|
|
24
|
-
|
|
25
|
-
@synced_folder_opts = { type: :nfs } if value
|
|
26
|
-
end
|
|
27
|
-
|
|
28
20
|
def validate(machine)
|
|
29
21
|
errors = _detected_errors
|
|
30
22
|
|
|
@@ -1,5 +1,3 @@
|
|
|
1
|
-
# TODO: Switch to Vagrant.require_version before 1.0.0
|
|
2
|
-
# see: https://github.com/mitchellh/vagrant/blob/bc55081e9ffaa6820113e449a9f76b293a29b27d/lib/vagrant.rb#L202-L228
|
|
3
1
|
unless Gem::Requirement.new('>= 1.4.0').satisfied_by?(Gem::Version.new(Vagrant::VERSION))
|
|
4
2
|
raise 'vagrant-cachier requires Vagrant >= 1.4.0 in order to work!'
|
|
5
3
|
end
|
|
@@ -20,7 +18,7 @@ module VagrantPlugins
|
|
|
20
18
|
# Keep an eye on https://github.com/mitchellh/vagrant/wiki/Available-Vagrant-Plugins#wiki-providers
|
|
21
19
|
# for more.
|
|
22
20
|
CLOUD_PROVIDERS = %w( aws cloudstack digitalocean hp joyent openstack rackspace
|
|
23
|
-
softlayer proxmox managed azure brightbox cloudstack vcloud
|
|
21
|
+
softlayer proxmox managed azure brightbox cloudstack vcloud
|
|
24
22
|
vsphere )
|
|
25
23
|
end
|
|
26
24
|
end
|
data/locales/en.yml
CHANGED
|
@@ -9,11 +9,6 @@ en:
|
|
|
9
9
|
nfs_required: |-
|
|
10
10
|
The '%{bucket}' cache bucket requires NFS to be enabled, please add
|
|
11
11
|
`config.cache.synced_folder_opts = {type: :nfs}` to your Vagrantfile.
|
|
12
|
-
will_fix_machine_cache_dir: |-
|
|
13
|
-
A vagrant-cachier provider specific cache dir was found under
|
|
14
|
-
'%{current_path}' and it will be moved to
|
|
15
|
-
'%{new_path}' as it is the new path for keeping machine
|
|
16
|
-
scoped cache dirs starting with the 0.3.0 version of the plugin.
|
|
17
12
|
unable_to_ssh: |-
|
|
18
13
|
vagrant-cachier was unable to SSH into the VM to remove symlinks!
|
|
19
14
|
backed_by_cloud_provider: |-
|
|
@@ -1,10 +1,14 @@
|
|
|
1
|
-
Vagrant.require_plugin 'vagrant-cachier'
|
|
2
|
-
Vagrant.require_plugin 'vagrant-lxc'
|
|
3
1
|
Vagrant.configure("2") do |config|
|
|
2
|
+
config.vm.provider :virtualbox do |_, override|
|
|
3
|
+
override.vm.box = "chef/ubuntu-14.04"
|
|
4
|
+
end
|
|
5
|
+
|
|
6
|
+
config.vm.provider :lxc do |_, override|
|
|
7
|
+
override.vm.box = "fgrehm/trusty64-lxc"
|
|
8
|
+
end
|
|
9
|
+
|
|
4
10
|
config.cache.auto_detect = true
|
|
5
11
|
config.cache.scope = :machine
|
|
6
12
|
|
|
7
|
-
config.vm.box = 'precise64'
|
|
8
|
-
config.vm.box_url = 'http://files.vagrantup.com/precise64.box'
|
|
9
13
|
config.vm.provision :shell, inline: 'apt-get update && apt-get install -y git'
|
|
10
14
|
end
|
|
@@ -1,8 +1,12 @@
|
|
|
1
|
-
Vagrant.require_plugin 'vagrant-cachier'
|
|
2
|
-
Vagrant.require_plugin 'vagrant-lxc'
|
|
3
1
|
Vagrant.configure("2") do |config|
|
|
2
|
+
config.vm.provider :virtualbox do |_, override|
|
|
3
|
+
override.vm.box = "chef/ubuntu-14.04"
|
|
4
|
+
end
|
|
5
|
+
config.vm.provider :lxc do |_, override|
|
|
6
|
+
override.vm.box = "fgrehm/trusty64-lxc"
|
|
7
|
+
end
|
|
8
|
+
|
|
4
9
|
config.cache.auto_detect = true
|
|
5
|
-
|
|
6
|
-
config.vm.box_url = 'http://files.vagrantup.com/precise64.box'
|
|
10
|
+
|
|
7
11
|
config.vm.provision :shell, inline: 'echo Hello!'
|
|
8
12
|
end
|
|
@@ -1,6 +1,8 @@
|
|
|
1
|
-
Vagrant.require_plugin 'vagrant-cachier'
|
|
2
|
-
Vagrant.require_plugin 'vagrant-lxc'
|
|
3
1
|
Vagrant.configure("2") do |config|
|
|
4
|
-
config.vm.
|
|
5
|
-
|
|
2
|
+
config.vm.provider :virtualbox do |_, override|
|
|
3
|
+
override.vm.box = "chef/ubuntu-14.04"
|
|
4
|
+
end
|
|
5
|
+
config.vm.provider :lxc do |_, override|
|
|
6
|
+
override.vm.box = "fgrehm/trusty64-lxc"
|
|
7
|
+
end
|
|
6
8
|
end
|
|
@@ -1,7 +1,10 @@
|
|
|
1
|
-
Vagrant.require_plugin 'vagrant-cachier'
|
|
2
|
-
Vagrant.require_plugin 'vagrant-lxc'
|
|
3
1
|
Vagrant.configure("2") do |config|
|
|
4
|
-
config.vm.
|
|
5
|
-
|
|
2
|
+
config.vm.provider :virtualbox do |_, override|
|
|
3
|
+
override.vm.box = "chef/ubuntu-14.04"
|
|
4
|
+
end
|
|
5
|
+
config.vm.provider :lxc do |_, override|
|
|
6
|
+
override.vm.box = "fgrehm/trusty64-lxc"
|
|
7
|
+
end
|
|
8
|
+
|
|
6
9
|
config.vm.provision :shell, inline: 'echo Hello!'
|
|
7
10
|
end
|
data/vagrant-cachier.gemspec
CHANGED
|
@@ -18,12 +18,14 @@ Gem::Specification.new do |spec|
|
|
|
18
18
|
spec.test_files = spec.files.grep(%r{^(test|spec|features)/})
|
|
19
19
|
spec.require_paths = ["lib"]
|
|
20
20
|
|
|
21
|
-
spec.post_install_message = %
|
|
21
|
+
spec.post_install_message = %Q{
|
|
22
|
+
Thanks for installing vagrant-cachier #{VagrantPlugins::Cachier::VERSION}!
|
|
23
|
+
|
|
22
24
|
If you are new to vagrant-cachier just follow along with the docs available
|
|
23
25
|
at http://fgrehm.viewdocs.io/vagrant-cachier.
|
|
24
26
|
|
|
25
|
-
If you are a
|
|
26
|
-
backwards incompatible changes
|
|
27
|
+
If you are upgrading from a previous version, please note that plugin has gone
|
|
28
|
+
through many backwards incompatible changes recently. Please check out
|
|
27
29
|
https://github.com/fgrehm/vagrant-cachier/blob/master/CHANGELOG.md
|
|
28
30
|
before continuing and caching all the things :)
|
|
29
31
|
}
|
metadata
CHANGED
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: vagrant-cachier
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 0.
|
|
4
|
+
version: 0.8.0
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- Fabio Rehm
|
|
8
8
|
autorequire:
|
|
9
9
|
bindir: bin
|
|
10
10
|
cert_chain: []
|
|
11
|
-
date: 2014-
|
|
11
|
+
date: 2014-07-21 00:00:00.000000000 Z
|
|
12
12
|
dependencies: []
|
|
13
13
|
description: Caffeine reducer
|
|
14
14
|
email:
|
|
@@ -91,10 +91,10 @@ homepage: https://github.com/fgrehm/vagrant-cachier
|
|
|
91
91
|
licenses:
|
|
92
92
|
- MIT
|
|
93
93
|
metadata: {}
|
|
94
|
-
post_install_message: "\n
|
|
95
|
-
the docs available\n at http://fgrehm.viewdocs.io/vagrant-cachier.\n\n
|
|
96
|
-
are a
|
|
97
|
-
incompatible changes
|
|
94
|
+
post_install_message: "\n Thanks for installing vagrant-cachier 0.8.0!\n\n If you
|
|
95
|
+
are new to vagrant-cachier just follow along with the docs available\n at http://fgrehm.viewdocs.io/vagrant-cachier.\n\n
|
|
96
|
+
\ If you are upgrading from a previous version, please note that plugin has gone\n
|
|
97
|
+
\ through many backwards incompatible changes recently. Please check out\n https://github.com/fgrehm/vagrant-cachier/blob/master/CHANGELOG.md\n
|
|
98
98
|
\ before continuing and caching all the things :)\n "
|
|
99
99
|
rdoc_options: []
|
|
100
100
|
require_paths:
|