Fix documentation
This commit is contained in:
parent
9c984b6abb
commit
8a07234527
21
README.md
21
README.md
|
@ -40,19 +40,22 @@ to true.
|
||||||
A machine's host name is defined by `config.vm.hostname`. If this is not
|
A machine's host name is defined by `config.vm.hostname`. If this is not
|
||||||
set, it falls back to the symbol defining the machine in the Vagrantfile.
|
set, it falls back to the symbol defining the machine in the Vagrantfile.
|
||||||
|
|
||||||
In addition, the hostmanager.aliases configuration option can be used to provide aliases for your host names.
|
In addition, the `hostmanager.aliases` configuration attribute can be used
|
||||||
|
to provide aliases for your host names.
|
||||||
|
|
||||||
Example configuration:
|
Example configuration:
|
||||||
|
|
||||||
Vagrant.configure("2") do |config|
|
```ruby
|
||||||
config.hostmanager.auto_update = true
|
Vagrant.configure("2") do |config|
|
||||||
config.hostmanager.ignore_private_ip = false
|
config.hostmanager.auto_update = true
|
||||||
config.vm.define "example-box" do |node|
|
config.hostmanager.ignore_private_ip = false
|
||||||
node.vm.hostname = "example-box-hostname"
|
config.vm.define "example-box" do |node|
|
||||||
node.vm.network :private_network, ip: "192.168.42.42"
|
node.vm.hostname = "example-box-hostname"
|
||||||
node.hostmanager.aliases = %w(example-box.localdomain example-box-alias)
|
node.vm.network :private_network, ip: "192.168.42.42"
|
||||||
end
|
node.hostmanager.aliases = %w(example-box.localdomain example-box-alias)
|
||||||
end
|
end
|
||||||
|
end
|
||||||
|
```
|
||||||
|
|
||||||
Contribute
|
Contribute
|
||||||
----------
|
----------
|
||||||
|
|
Loading…
Reference in New Issue