vagrant/plugins/guests
Seth Vargo d77ad5c941
guests/arch: Configure networks in one command
This commit updates the procedure for configuring arch networks to occur
in a single command. Previously, each network was configured
independently. If, for some reason, one of the networks destroyed the
SSH connection, the box would be irrecoverable. This commit does not
alleviate that behavior, but attempts to mitigate it by running all
network-related configuration commands in a single communicator (SSH)
session.

The new procedure looks like this:

1. Upload a temp file to /tmp/vagrant-network-id... for each interface
  on the guest.
2. Compile a commands array (of bash) to execute after all network
  configurations have been uploaded.
3. Concatenate all the commands together in a single communicator
  session.

This was tested against `terrywant/archlinux` using the following Vagrantfile:

```ruby
Vagrant.configure(2) do |config|
  config.vm.box = "terrywang/archlinux"
  config.vm.hostname = "banana-ramama.example.com"

  config.vm.network "private_network", type: "dhcp"

  config.vm.network "private_network", ip: "33.33.33.10"

  config.vm.provision "file", source: "Vagrantfile", destination: "/tmp/vf"
  config.vm.provision "shell", inline: "echo hi"
end
```
2016-06-06 11:58:24 -04:00
..
arch guests/arch: Configure networks in one command 2016-06-06 11:58:24 -04:00
atomic Add Atomic guest support 2015-05-19 12:55:44 +02:00
coreos Prefix tempfiles with vagrant- 2016-05-31 00:18:16 -04:00
darwin Move "cant_read_mac_addresses" error to the global space 2015-10-09 14:57:41 +03:00
debian Prefix tempfiles with vagrant- 2016-05-31 00:18:16 -04:00
esxi Use -f argument to rm to force-remove files. 2014-08-29 10:51:31 +02:00
fedora Prefix tempfiles with vagrant- 2016-05-31 00:18:16 -04:00
freebsd Prefix tempfiles with vagrant- 2016-05-31 00:18:16 -04:00
funtoo Prefix tempfiles with vagrant- 2016-05-31 00:18:16 -04:00
gentoo Prefix tempfiles with vagrant- 2016-05-31 00:18:16 -04:00
linux Do not interpolate in SMB linux heredoc 2016-02-29 07:19:45 -05:00
mint guests/mint: don't need to inherit from ubuntu class 2014-05-06 12:50:35 -07:00
netbsd Prefix tempfiles with vagrant- 2016-05-31 00:18:16 -04:00
nixos Prefix tempfiles with vagrant- 2016-05-31 00:18:16 -04:00
omnios Add mount_nfs_folder capability to omnios guests 2014-03-20 17:06:49 -04:00
openbsd Prefix tempfiles with vagrant- 2016-05-31 00:18:16 -04:00
photon Added tests 2015-04-20 14:56:26 -07:00
pld fix network detection on pld-linux 2015-08-21 12:49:36 +03:00
redhat Prefix tempfiles with vagrant- 2016-05-31 00:18:16 -04:00
slackware Prefix tempfiles with vagrant- 2016-05-31 00:18:16 -04:00
smartos Ensure rsync_post has find permissions on smartos 2014-08-29 14:17:28 -07:00
solaris Add insert/remove public key guest capability for solaris (identical to linux) 2015-01-13 21:45:06 -05:00
solaris11 guests/solaris11: fix suexec inheritence [GH-5247] 2015-07-06 14:23:24 -06:00
suse Prefix tempfiles with vagrant- 2016-05-31 00:18:16 -04:00
tinycore ooops missed something while branching 2016-02-04 17:22:28 +01:00
trisquel add trisquel guest plugin as derivative of ubuntu - Issue #6842 2016-01-10 08:21:16 -06:00
ubuntu Better Ubuntu systemd detection 2015-08-31 17:24:13 -04:00
windows Use SSL and HTTPS links where appropriate 2016-01-25 13:14:54 -05:00