Finished up fixes. Removed some artifacts.

This commit is contained in:
cammoraton 2014-05-06 08:48:01 -04:00
parent 5345c1479a
commit 6d6282f1be
1 changed files with 1 additions and 2 deletions

View File

@ -34,7 +34,7 @@ module VagrantPlugins
# Render and upload the network entry file to a deterministic # Render and upload the network entry file to a deterministic
# temporary location. # temporary location.
# use fedora for now # use fedora for now
entry = TemplateRenderer.render("guests/fedora/network_#{network[:type]}", entry = TemplateRenderer.render("guests/redhat/network_#{network[:type]}",
:options => network) :options => network)
temp = Tempfile.new("vagrant") temp = Tempfile.new("vagrant")
@ -49,7 +49,6 @@ module VagrantPlugins
# each specifically, we avoid reconfiguring eth0 (the NAT interface) so # each specifically, we avoid reconfiguring eth0 (the NAT interface) so
# SSH never dies. # SSH never dies.
interfaces.each do |interface| interfaces.each do |interface|
puts interface.inspect
retryable(:on => Vagrant::Errors::VagrantError, :tries => 3, :sleep => 2) do retryable(:on => Vagrant::Errors::VagrantError, :tries => 3, :sleep => 2) do
machine.communicate.sudo("cat /tmp/vagrant-network-entry_#{interface} >> #{network_scripts_dir}/ifcfg-#{interface}") machine.communicate.sudo("cat /tmp/vagrant-network-entry_#{interface} >> #{network_scripts_dir}/ifcfg-#{interface}")
machine.communicate.sudo("/sbin/ifdown #{interface}", :error_check => true) machine.communicate.sudo("/sbin/ifdown #{interface}", :error_check => true)