vagrantup 1.1.1 → 1.1.2
Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: af927382eaead2363e3871f7aaf0320a518fadb0
|
4
|
+
data.tar.gz: a682a141ebf2c1a9103845c5a42b61c12cb1cdce
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 8fde20ba01e9cd1e2d4786efd0f79495dd86182ec8f9c6596ea326f1dd3fd8044ec86e88419a663fe334074011125269df11261622b11fc91cbe8d4ba3d06e3c
|
7
|
+
data.tar.gz: bb7f3ee7e718ce7feb1b12004cf7a753ea2563615d7fa8bed174ee1c0cee656eae99a7f35cdadb78770528d62960c1ab63ea93496fda9dc7f6690c9d370ae1f8
|
data/CHANGELOG.md
CHANGED
@@ -1,3 +1,13 @@
|
|
1
|
+
## 1.1.2 (March 18, 2013)
|
2
|
+
|
3
|
+
BUG FIXES:
|
4
|
+
|
5
|
+
- When not specifying a cookbooks_path for chef-solo, an error won't
|
6
|
+
be shown if "cookbooks" folder is missing.
|
7
|
+
- Fix typo for exception when no host-only network with NFS. [GH-1448]
|
8
|
+
- Use UNSET_VALUE/nil with args on shell provisioner by default since
|
9
|
+
`[]` was too truthy. [GH-1447]
|
10
|
+
|
1
11
|
## 1.1.1 (March 18, 2013)
|
2
12
|
|
3
13
|
IMPROVEMENTS:
|
data/lib/vagrant/version.rb
CHANGED
@@ -10,10 +10,21 @@ module VagrantPlugins
|
|
10
10
|
def call(env)
|
11
11
|
@app.call(env)
|
12
12
|
|
13
|
-
|
14
|
-
env[:
|
13
|
+
using_nfs = false
|
14
|
+
env[:machine].config.vm.synced_folders.each do |id, opts|
|
15
|
+
if opts[:nfs]
|
16
|
+
using_nfs = true
|
17
|
+
break
|
18
|
+
end
|
19
|
+
end
|
15
20
|
|
16
|
-
|
21
|
+
if using_nfs
|
22
|
+
@logger.info("Using NFS, preparing NFS settings by reading host IP and machine IP")
|
23
|
+
env[:nfs_host_ip] = read_host_ip(env[:machine])
|
24
|
+
env[:nfs_machine_ip] = read_machine_ip(env[:machine])
|
25
|
+
|
26
|
+
raise Vagrant::Errors::NFSNoHostonlyNetwork if !env[:nfs_machine_ip]
|
27
|
+
end
|
17
28
|
end
|
18
29
|
|
19
30
|
# Returns the IP address of the first host only network adapter
|
@@ -22,11 +22,14 @@ module VagrantPlugins
|
|
22
22
|
@encrypted_data_bag_secret = UNSET_VALUE
|
23
23
|
@encrypted_data_bag_secret_key_path = UNSET_VALUE
|
24
24
|
@nfs = UNSET_VALUE
|
25
|
+
|
26
|
+
@__defaulted_cookbooks_path = false
|
25
27
|
end
|
26
28
|
|
27
29
|
def finalize!
|
28
30
|
if @cookbooks_path == UNSET_VALUE
|
29
31
|
@cookbooks_path = [[:host, "cookbooks"], [:vm, "cookbooks"]]
|
32
|
+
@__defaulted_cookbooks_path = true
|
30
33
|
end
|
31
34
|
|
32
35
|
@data_bags_path = [] if @data_bags_path == UNSET_VALUE
|
@@ -52,13 +55,15 @@ module VagrantPlugins
|
|
52
55
|
errors << I18n.t("vagrant.config.chef.run_list_empty") if \
|
53
56
|
!run_list || run_list.empty?
|
54
57
|
|
55
|
-
|
56
|
-
|
57
|
-
|
58
|
+
if !@__defaulted_cookbooks_path
|
59
|
+
@cookbooks_path.each do |type, path|
|
60
|
+
next if type != :host
|
61
|
+
expanded_path = File.expand_path(path, machine.env.root_path)
|
58
62
|
|
59
|
-
|
60
|
-
|
61
|
-
|
63
|
+
if !File.exist?(expanded_path)
|
64
|
+
errors << I18n.t("vagrant.config.chef.cookbooks_path_missing",
|
65
|
+
:path => expanded_path)
|
66
|
+
end
|
62
67
|
end
|
63
68
|
end
|
64
69
|
|
@@ -7,13 +7,14 @@ module VagrantPlugins
|
|
7
7
|
attr_accessor :args
|
8
8
|
|
9
9
|
def initialize
|
10
|
-
@args =
|
10
|
+
@args = UNSET_VALUE
|
11
11
|
@inline = UNSET_VALUE
|
12
12
|
@path = UNSET_VALUE
|
13
13
|
@upload_path = UNSET_VALUE
|
14
14
|
end
|
15
15
|
|
16
16
|
def finalize!
|
17
|
+
@args = nil if @args == UNSET_VALUE
|
17
18
|
@inline = nil if @inline == UNSET_VALUE
|
18
19
|
@path = nil if @path == UNSET_VALUE
|
19
20
|
@upload_path = "/tmp/vagrant-shell" if @upload_path == UNSET_VALUE
|