vagrant/plugins
Seth Vargo 41d61120a5
guests/arch: Change hostname in one command
This commit updates the procedure for changing the hostname on arch
guests to occur in a single command. Previously, setting the hostname
and adding the value of the hostname to the /etc/hosts file was done in
two different uploads. This reduces the cycle to a single upload, making
provisioning a bit faster.

Additionally, this changes the behavior of the /etc/hosts file to:

1. Not remove localhost as an alias of 127.0.0.1
2. Prepend our custom hostname before localhost

The resulting /etc/hosts file will look something like:

127.0.0.1 my-host.example.com my-host
127.0.0.1 localhost.mydomain localhost

Tested against `terrywang/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: Change hostname 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.