{"action":"created","issue":{"url":"https://api.github.com/repos/smdahlen/vagrant-hostmanager/issues/159","labels_url":"https://api.github.com/repos/smdahlen/vagrant-hostmanager/issues/159/labels{/name}","comments_url":"https://api.github.com/repos/smdahlen/vagrant-hostmanager/issues/159/comments","events_url":"https://api.github.com/repos/smdahlen/vagrant-hostmanager/issues/159/events","html_url":"https://github.com/smdahlen/vagrant-hostmanager/issues/159","id":98246699,"number":159,"title":"Hostfile on host not updated on destroy of a running machine","user":{"login":"EvanK","id":84145,"avatar_url":"https://avatars.githubusercontent.com/u/84145?v=3","gravatar_id":"","url":"https://api.github.com/users/EvanK","html_url":"https://github.com/EvanK","followers_url":"https://api.github.com/users/EvanK/followers","following_url":"https://api.github.com/users/EvanK/following{/other_user}","gists_url":"https://api.github.com/users/EvanK/gists{/gist_id}","starred_url":"https://api.github.com/users/EvanK/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/EvanK/subscriptions","organizations_url":"https://api.github.com/users/EvanK/orgs","repos_url":"https://api.github.com/users/EvanK/repos","events_url":"https://api.github.com/users/EvanK/events{/privacy}","received_events_url":"https://api.github.com/users/EvanK/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/smdahlen/vagrant-hostmanager/labels/enhancement%20-%20best%20practice","name":"enhancement - best practice","color":"009800"}],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":3,"created_at":"2015-07-30T19:43:14Z","updated_at":"2015-10-13T15:17:16Z","closed_at":null,"body":"Vagrant: 1.7.2\r\nHostmanager: 1.6.0\r\nProvider: Virtualbox 4.3.30\r\nHost OS: OSX 10.9.5\r\nGuest OS: Ubuntu 14.04\r\n\r\n---\r\n\r\nOn `vagrant up`, the hostfile entries are created on both host and guest, but on `vagrant destroy` (without halt, suspend, or any other machine action), the entries are _not_ removed from the host.\r\n\r\nThe relevant lines from my Vagrantfile:\r\n\r\n```ruby\r\nVagrant.configure(\"2\") do |config|\r\n  config.hostmanager.enabled           = true\r\n  config.hostmanager.include_offline   = true\r\n  config.hostmanager.ignore_private_ip = false\r\n  config.hostmanager.manage_host       = true\r\n\r\n  config.vm.box = \"ubuntu/trusty64\"\r\n\r\n  config.vm.define :local do |box|\r\n    box.vm.hostname = \"local.site1.com\"\r\n\r\n    box.vm.network :private_network, ip: \"192.168.12.126\"\r\n    box.vm.network :forwarded_port, guest: 22, id: 'ssh', host: 2126, auto_correct: true\r\n  end\r\n\r\n  config.vm.provision :hostmanager\r\nend\r\n```"},"comment":{"url":"https://api.github.com/repos/smdahlen/vagrant-hostmanager/issues/comments/147746854","html_url":"https://github.com/smdahlen/vagrant-hostmanager/issues/159#issuecomment-147746854","issue_url":"https://api.github.com/repos/smdahlen/vagrant-hostmanager/issues/159","id":147746854,"user":{"login":"radub","id":60108,"avatar_url":"https://avatars.githubusercontent.com/u/60108?v=3","gravatar_id":"","url":"https://api.github.com/users/radub","html_url":"https://github.com/radub","followers_url":"https://api.github.com/users/radub/followers","following_url":"https://api.github.com/users/radub/following{/other_user}","gists_url":"https://api.github.com/users/radub/gists{/gist_id}","starred_url":"https://api.github.com/users/radub/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/radub/subscriptions","organizations_url":"https://api.github.com/users/radub/orgs","repos_url":"https://api.github.com/users/radub/repos","events_url":"https://api.github.com/users/radub/events{/privacy}","received_events_url":"https://api.github.com/users/radub/received_events","type":"User","site_admin":false},"created_at":"2015-10-13T15:17:16Z","updated_at":"2015-10-13T15:17:16Z","body":"Vagrant: 1.7.4\r\nHostmanager: 1.6.0\r\nProvider: Virtualbox 5\r\nHost OS: OSX 10.11\r\nGuest OS: Ubuntu 14.04\r\n\r\n```/etc/hosts``` file is updated when running either ```vagrant up``` or ```vagrant destroy```"}}