vagrant/plugins
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
..
commands core/boxes: Do not update the same box twice 2016-05-31 23:08:51 -04:00
communicators Remove custom tempfile class 2016-05-30 23:21:47 -04:00
guests guests/arch: Configure networks in one command 2016-06-06 11:58:24 -04:00
hosts Add a note about why we will always leak RDP tmpfiles 2016-05-28 23:53:20 -04:00
kernel_v1 Support environment variable forwarding, fixes #4131 2015-11-19 16:25:54 -08:00
kernel_v2 Allow customization of keys_only & paranoid SSH 2016-05-29 18:03:03 -04:00
providers provider/docker: Add -u flag to exec 2016-05-31 20:05:27 -04:00
provisioners provisioners/ansible(both): fix ansible config files presence checks 2016-06-01 06:40:23 +02:00
pushes Use a hash for directory lookups 2016-03-17 20:48:08 -05:00
synced_folders Fix for problem where the host_info.ps1 script returns a string instead of a list of IPs 2015-12-17 14:40:50 -06:00
README.md Add README to plugin directory 2012-04-18 17:48:06 -07:00

README.md

Vagrant Core Plugins

These are plugins that ship with Vagrant. Vagrant core uses its own plugin system to power a lot of the core pieces that ship with Vagrant. Each plugin will have its own README which explains its specific role.