vagrantup 0.9.0 → 0.9.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/CHANGELOG.md +8 -0
- data/README.md +1 -1
- data/lib/vagrant.rb +14 -0
- data/lib/vagrant/action/vm/nfs.rb +0 -9
- data/lib/vagrant/command/box.rb +1 -1
- data/lib/vagrant/guest/debian.rb +2 -2
- data/lib/vagrant/guest/redhat.rb +1 -1
- data/lib/vagrant/provisioners/puppet_server.rb +7 -2
- data/lib/vagrant/version.rb +1 -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: 8a1ab63ade94fbaeef7d8c36c7344c54e53e30ad
|
4
|
+
data.tar.gz: c8b5017e6b7d55697bb967156ecc74b8cd0e76d0
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 06c4699c24af3f202c36fcbeb9830c21def65454b0be6b5d711426b752fc4594f10b5b4c14fe7fa74863e0359a07230b447b944197189307193e8037986d6106
|
7
|
+
data.tar.gz: a2e2670c55989a362a11967605e037542fb53b4e84b0a4dcedb7e656c825281448b6ae77e46168c0ad4c7c9b981edcea7eb09dad95992372edf543c53f19656f
|
data/CHANGELOG.md
CHANGED
@@ -1,3 +1,11 @@
|
|
1
|
+
## 0.9.1 (January 18, 2012)
|
2
|
+
|
3
|
+
- Use `ifconfig device down` instead of `ifdown`. [GH-649]
|
4
|
+
- Clearer invalid log level error. [GH-645]
|
5
|
+
- Fix exception raised with NFS `recover` method.
|
6
|
+
- Fix `ui` `NoMethodError` exception in puppet server.
|
7
|
+
- Fix `vagrant box help` on Ruby 1.8.7. [GH-647]
|
8
|
+
|
1
9
|
## 0.9.0 (January 17, 2012)
|
2
10
|
|
3
11
|
- VirtualBox 4.0 support backported in addition to supporting VirtualBox 4.1.
|
data/README.md
CHANGED
@@ -10,7 +10,7 @@ Vagrant is a tool for building and distributing virtualized development environm
|
|
10
10
|
By providing automated creation and provisioning of virtual machines using [Oracle’s VirtualBox](http://www.virtualbox.org),
|
11
11
|
Vagrant provides the tools to create and configure lightweight, reproducible, and portable
|
12
12
|
virtual environments. For more information, see the part of the getting started guide
|
13
|
-
on “[Why Vagrant?](http://vagrantup.com/docs/getting-started/
|
13
|
+
on “[Why Vagrant?](http://vagrantup.com/docs/getting-started/why.html)”
|
14
14
|
|
15
15
|
## Quick Start
|
16
16
|
|
data/lib/vagrant.rb
CHANGED
@@ -14,7 +14,21 @@ if ENV["VAGRANT_LOG"] && ENV["VAGRANT_LOG"] != ""
|
|
14
14
|
# This means that the logging constant wasn't found,
|
15
15
|
# which is fine. We just keep `level` as `nil`. But
|
16
16
|
# we tell the user.
|
17
|
+
level = nil
|
18
|
+
end
|
19
|
+
|
20
|
+
# Some constants, such as "true" resolve to booleans, so the
|
21
|
+
# above error checking doesn't catch it. This will check to make
|
22
|
+
# sure that the log level is an integer, as Log4r requires.
|
23
|
+
level = nil if !level.is_a?(Integer)
|
24
|
+
|
25
|
+
if !level
|
26
|
+
# We directly write to stderr here because the VagrantError system
|
27
|
+
# is not setup yet.
|
17
28
|
$stderr.puts "Invalid VAGRANT_LOG level is set: #{ENV["VAGRANT_LOG"]}"
|
29
|
+
$stderr.puts ""
|
30
|
+
$stderr.puts "Please use one of the standard log levels: debug, info, warn, or error"
|
31
|
+
exit 1
|
18
32
|
end
|
19
33
|
|
20
34
|
# Set the logging level on all "vagrant" namespaced
|
@@ -36,15 +36,6 @@ module Vagrant
|
|
36
36
|
mount_folders if !folders.empty?
|
37
37
|
end
|
38
38
|
|
39
|
-
def recover(env)
|
40
|
-
# Ignore any VagrantErrors, because they were expected and
|
41
|
-
# will cause the VM to stick around.
|
42
|
-
return if env["vagrant.error"].is_a?(Errors::VagrantError)
|
43
|
-
|
44
|
-
# Otherwise, clear the NFS exports.
|
45
|
-
clear_nfs_exports(env)
|
46
|
-
end
|
47
|
-
|
48
39
|
# Returns the folders which are to be synced via NFS.
|
49
40
|
def folders
|
50
41
|
@folders ||= {}
|
data/lib/vagrant/command/box.rb
CHANGED
@@ -41,7 +41,7 @@ module Vagrant
|
|
41
41
|
# Add the available subcommands as separators in order to print them
|
42
42
|
# out as well.
|
43
43
|
keys = []
|
44
|
-
@subcommands.each { |key, value| keys << key }
|
44
|
+
@subcommands.each { |key, value| keys << key.to_s }
|
45
45
|
|
46
46
|
keys.sort.each do |key|
|
47
47
|
opts.separator " #{key}"
|
data/lib/vagrant/guest/debian.rb
CHANGED
@@ -38,7 +38,7 @@ module Vagrant
|
|
38
38
|
# each specifically, we avoid reconfiguring eth0 (the NAT interface) so
|
39
39
|
# SSH never dies.
|
40
40
|
interfaces.each do |interface|
|
41
|
-
vm.channel.sudo("/sbin/
|
41
|
+
vm.channel.sudo("/sbin/ifconfig eth#{interface} down 2> /dev/null")
|
42
42
|
end
|
43
43
|
|
44
44
|
vm.channel.sudo("cat /tmp/vagrant-network-entry >> /etc/network/interfaces")
|
@@ -50,7 +50,7 @@ module Vagrant
|
|
50
50
|
end
|
51
51
|
|
52
52
|
def change_host_name(name)
|
53
|
-
if !vm.channel.test
|
53
|
+
if !vm.channel.test("hostname --fqdn | grep '^#{name}$' || hostname --short | grep '^#{name}$'")
|
54
54
|
vm.channel.sudo("sed -r -i 's/^(127[.]0[.]1[.]1[[:space:]]+).*$/\\1#{name} #{name.split('.')[0]}/' /etc/hosts")
|
55
55
|
vm.channel.sudo("sed -i 's/.*$/#{name.split('.')[0]}/' /etc/hostname")
|
56
56
|
vm.channel.sudo("hostname -F /etc/hostname")
|
data/lib/vagrant/guest/redhat.rb
CHANGED
@@ -39,7 +39,7 @@ module Vagrant
|
|
39
39
|
# each specifically, we avoid reconfiguring eth0 (the NAT interface) so
|
40
40
|
# SSH never dies.
|
41
41
|
interfaces.each do |interface|
|
42
|
-
vm.channel.sudo("/sbin/
|
42
|
+
vm.channel.sudo("/sbin/ifconfig eth#{interface} down 2> /dev/null")
|
43
43
|
vm.channel.sudo("cat /tmp/vagrant-network-entry_#{interface} >> #{network_scripts_dir}/ifcfg-eth#{interface}")
|
44
44
|
vm.channel.sudo("/sbin/ifup eth#{interface}")
|
45
45
|
end
|
@@ -44,9 +44,14 @@ module Vagrant
|
|
44
44
|
|
45
45
|
command = "puppetd #{options} --server #{config.puppet_server} --certname #{cn}"
|
46
46
|
|
47
|
-
env
|
47
|
+
env[:ui].info I18n.t("vagrant.provisioners.puppet_server.running_puppetd")
|
48
48
|
env[:vm].channel.sudo(command) do |type, data|
|
49
|
-
|
49
|
+
# Output the data with the proper color based on the stream.
|
50
|
+
color = type == :stdout ? :green : :red
|
51
|
+
|
52
|
+
# Note: Be sure to chomp the data to avoid the newlines that the
|
53
|
+
# Chef outputs.
|
54
|
+
env[:ui].info(data.chomp, :color => color, :prefix => false)
|
50
55
|
end
|
51
56
|
end
|
52
57
|
end
|
data/lib/vagrant/version.rb
CHANGED