oscar-stack / vagrant-hosts

Manage static DNS on vagrant guests
Other
317 stars 26 forks source link

Documentation on how to configure add_localhost_hostnames #41

Closed razorsedge closed 9 years ago

razorsedge commented 10 years ago

From [GH-24] [GH-25] Add option to add hostnames for 127.0.1.1 How should I configure oscar since the below snippit does not seem to work? I have had to hardcode @add_localhost_hostnames = false in lib/vagrant-hosts/config.rb line 50 to get the desired results.


---
roles:
  pe-puppet-master:
    private_networks:
      - {ip: '0.0.0.0', auto_network: true}
    provisioners:
      - {type: hosts, autoconfigure: true, add_localhost_hostnames: false}
  # snip
Sharpie commented 9 years ago

You had the correct syntax, the problem was that the Config Builder model shipped with vagrant-hosts wasn't set up correctly and did not pick that value up.

This has been fixed in version 2.2.4. Thanks for the bug report!