Sha256: 8b495524daf98c256091ff983d5ef0f0d3e0692bf8e28f1266c7f7929a98cda2
Contents?: true
Size: 951 Bytes
Versions: 6
Compression:
Stored size: 951 Bytes
Contents
require "tempfile" require "vagrant/util/template_renderer" module VagrantPlugins module GuestArch module Cap class ConfigureNetworks include Vagrant::Util def self.configure_networks(machine, networks) networks.each do |network| entry = TemplateRenderer.render("guests/arch/network_#{network[:type]}", :options => network) temp = Tempfile.new("vagrant") temp.binmode temp.write(entry) temp.close machine.communicate.upload(temp.path, "/tmp/vagrant_network") machine.communicate.sudo("ln -sf /dev/null /etc/udev/rules.d/80-net-name-slot.rules") machine.communicate.sudo("mv /tmp/vagrant_network /etc/netctl/eth#{network[:interface]}") machine.communicate.sudo("netctl start eth#{network[:interface]}") end end end end end end
Version data entries
6 entries across 6 versions & 2 rubygems