vagrantup 0.7.3 → 0.7.4
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/CHANGELOG.md +7 -0
- data/lib/vagrant/action/vm/nfs.rb +1 -0
- data/lib/vagrant/provisioners/chef_server.rb +3 -1
- data/lib/vagrant/ssh.rb +1 -1
- data/lib/vagrant/version.rb +1 -1
- data/templates/chef_server_client.erb +12 -0
- data/test/vagrant/action/vm/forward_ports_test.rb +2 -1
- data/test/vagrant/provisioners/chef_server_test.rb +2 -1
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 4e775ed74e4bd2eebb4fbdc54beb67fee6444e15
|
4
|
+
data.tar.gz: 0b904bc2ac9657ab99bc22cda65bc792bed11146
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: e3470fbb21d44021ad01756245efe09f7583e440e70290ee82ee712714adc78a2191cb7686f8a5e95a77d133aaea6ed3becd832b5b5dc2271625164f55704c6c
|
7
|
+
data.tar.gz: f11fd6bdc251ed86a588650f53daa25c54f2057cfbb331d637199a6426ba85cd4a98985751ed9104dd9412e4ac07a4560abba9f08c7cc1c2cf27e9e2918dbec9
|
data/CHANGELOG.md
CHANGED
@@ -1,3 +1,10 @@
|
|
1
|
+
## 0.7.4 (May 12, 2011)
|
2
|
+
|
3
|
+
- Chef environments support (for Chef 0.10) [GH-358]
|
4
|
+
- Suppress the "added to known hosts" message for SSH [GH-354]
|
5
|
+
- Ruby 1.8.6 support [GH-352]
|
6
|
+
- Chef proxy settings now work for chef server [GH-335]
|
7
|
+
|
1
8
|
## 0.7.3 (April 19, 2011)
|
2
9
|
|
3
10
|
- Retry all SSH on Net::SSH::Disconnect in case SSH is just restarting. [GH-313]
|
@@ -115,6 +115,7 @@ module Vagrant
|
|
115
115
|
|
116
116
|
# Only mount the folders which have a guest path specified
|
117
117
|
am_folders = folders.select { |name, folder| folder[:guestpath] }
|
118
|
+
am_folders = Hash[*am_folders.flatten] if am_folders.is_a?(Array)
|
118
119
|
@env["vm"].system.mount_nfs(host_ip, Hash[am_folders])
|
119
120
|
end
|
120
121
|
|
@@ -14,6 +14,7 @@ module Vagrant
|
|
14
14
|
attr_accessor :client_key_path
|
15
15
|
attr_accessor :file_cache_path
|
16
16
|
attr_accessor :file_backup_path
|
17
|
+
attr_accessor :environment
|
17
18
|
|
18
19
|
def initialize
|
19
20
|
super
|
@@ -71,7 +72,8 @@ module Vagrant
|
|
71
72
|
:validation_key => guest_validation_key_path,
|
72
73
|
:client_key => config.client_key_path,
|
73
74
|
:file_cache_path => config.file_cache_path,
|
74
|
-
:file_backup_path => config.file_backup_path
|
75
|
+
:file_backup_path => config.file_backup_path,
|
76
|
+
:environment => config.environment
|
75
77
|
})
|
76
78
|
end
|
77
79
|
|
data/lib/vagrant/ssh.rb
CHANGED
@@ -42,7 +42,7 @@ module Vagrant
|
|
42
42
|
# Command line options
|
43
43
|
command_options = ["-p #{options[:port]}", "-o UserKnownHostsFile=/dev/null",
|
44
44
|
"-o StrictHostKeyChecking=no", "-o IdentitiesOnly=yes",
|
45
|
-
"-i #{options[:private_key_path]}"]
|
45
|
+
"-i #{options[:private_key_path]}", "-o LogLevel=ERROR"]
|
46
46
|
command_options << "-o ForwardAgent=yes" if env.config.ssh.forward_agent
|
47
47
|
|
48
48
|
if env.config.ssh.forward_x11
|
data/lib/vagrant/version.rb
CHANGED
@@ -10,9 +10,21 @@ validation_client_name "<%= validation_client_name %>"
|
|
10
10
|
validation_key "<%= validation_key %>"
|
11
11
|
client_key "<%= client_key %>"
|
12
12
|
|
13
|
+
<% unless environment.nil? %>
|
14
|
+
environment "<%= environment %>"
|
15
|
+
<% end %>
|
16
|
+
|
13
17
|
file_cache_path "<%= file_cache_path %>"
|
14
18
|
file_backup_path "<%= file_backup_path %>"
|
15
19
|
|
20
|
+
http_proxy <%= http_proxy.inspect %>
|
21
|
+
http_proxy_user <%= http_proxy_user.inspect %>
|
22
|
+
http_proxy_pass <%= http_proxy_pass.inspect %>
|
23
|
+
https_proxy <%= https_proxy.inspect %>
|
24
|
+
https_proxy_user <%= https_proxy_user.inspect %>
|
25
|
+
https_proxy_pass <%= https_proxy_pass.inspect %>
|
26
|
+
no_proxy <%= no_proxy.inspect %>
|
27
|
+
|
16
28
|
pid_file "/var/run/chef/chef-client.pid"
|
17
29
|
|
18
30
|
Mixlib::Log::Formatter.show_time = true
|
@@ -169,7 +169,8 @@ class ForwardPortsVMActionTest < Test::Unit::TestCase
|
|
169
169
|
end
|
170
170
|
|
171
171
|
should "forward ports" do
|
172
|
-
name
|
172
|
+
name = @env.env.config.vm.forwarded_ports.keys.first
|
173
|
+
opts = @env.env.config.vm.forwarded_ports[name]
|
173
174
|
|
174
175
|
adapters = []
|
175
176
|
adapter = mock("adapter")
|
@@ -161,7 +161,8 @@ class ChefServerProvisionerTest < Test::Unit::TestCase
|
|
161
161
|
:validation_key => @action.guest_validation_key_path,
|
162
162
|
:client_key => @config.client_key_path,
|
163
163
|
:file_cache_path => @config.file_cache_path,
|
164
|
-
:file_backup_path => @config.file_backup_path
|
164
|
+
:file_backup_path => @config.file_backup_path,
|
165
|
+
:environment => @config.environment
|
165
166
|
})
|
166
167
|
|
167
168
|
@action.setup_server_config
|