Skip to content

Commit

Permalink
Merge pull request #386 from f9n/patch-1
Browse files Browse the repository at this point in the history
Add usage of vm_hostname to Readme.md
  • Loading branch information
Seth Thomas committed Nov 16, 2018
2 parents 70b35f2 + b66e10f commit 1cad7a7
Showing 1 changed file with 23 additions and 4 deletions.
27 changes: 23 additions & 4 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -563,10 +563,6 @@ driver:
Sets the internal hostname for the instance. This is not used when connecting
to the Vagrant virtual machine.

For more details on this setting please read the
[config.vm.hostname](http://docs.vagrantup.com/v2/vagrantfile/machine_settings.html)
section of the Vagrant documentation.

To prevent this value from being rendered in the default Vagrantfile, you can
set this value to `false`.

Expand All @@ -575,6 +571,29 @@ instance was called "default-fuzz-9" will produce a default `vm_hostname` value
of `"default-fuzz-9"`. For Windows-based platforms, a default of `nil` is used
to save on boot time and potential rebooting.

```yaml
---
platforms:
- name: ubuntu-16.04
driver:
vm_hostname: server1.example.com
```

will generate a Vagrantfile configuration similar to:

```ruby
Vagrant.configure("2") do |config|
# ...

config.vm.hostname = "server1.example.com"
end
```

For more details on this setting please read the
[config.vm.hostname](http://docs.vagrantup.com/v2/vagrantfile/machine_settings.html)
section of the Vagrant documentation.


## <a name="unsupported"></a> Unsupported Hypervisors

The following providers are reported to work but are unsupported:
Expand Down

0 comments on commit 1cad7a7

Please sign in to comment.