Merge pull request #3 from nagas/improvement/add-localhost.localdomain
add localhost.localdomain alias as it is required by some services
This commit is contained in:
commit
dd1c3fa76e
|
@ -23,7 +23,7 @@ module VagrantPlugins
|
||||||
# create the temporary hosts file
|
# create the temporary hosts file
|
||||||
path = env.tmp_path.join('hosts')
|
path = env.tmp_path.join('hosts')
|
||||||
File.open(path, 'w') do |file|
|
File.open(path, 'w') do |file|
|
||||||
file << "127.0.0.1\tlocalhost\n"
|
file << "127.0.0.1\tlocalhost\slocalhost.localdomain\n"
|
||||||
|
|
||||||
# add a hosts entry for each active machine matching the provider
|
# add a hosts entry for each active machine matching the provider
|
||||||
env.active_machines.each do |name, p|
|
env.active_machines.each do |name, p|
|
||||||
|
|
Loading…
Reference in New Issue