Giter Site home page Giter Site logo

Comments (4)

dpehrson avatar dpehrson commented on May 19, 2024

I have noticed this behavior as well.

from vagrant-hostmanager.

aberfeldy avatar aberfeldy commented on May 19, 2024

+1
my hostfile looks like garbage now because no old entries are removed on destroy etc..

from vagrant-hostmanager.

timrobertson100 avatar timrobertson100 commented on May 19, 2024

+1

from vagrant-hostmanager.

pbitty avatar pbitty commented on May 19, 2024

PR #52 was merged a few days ago and should mostly fix this issue.

It will ensure that the entries in /etc/hosts are the latest ones and anything that should not be there (for that vagrant environment) is removed.

We haven't found a way of reliably detecting halted or suspended machines (see this comment on #56), but destroyed machines will definitely be removed. Machines that are taken out of the Vagrantfile (even if they are still running) will also be removed from the hosts file when you run vagrant hostmanager.

A new gem should be out soon, hopefully within the next week. If you'd like to try it already, you can install it from source like this:

git clone https://github.com/smdahlen/vagrant-hostmanager.git
cd vagrant-hostmanager
git checkout 93fd35
bundle install
bundle exec rake gem:build
vagrant plugin install pkg/vagrant-hostmanager-1.3.0.gem

I'm closing this for now. If anyone has a suggestion on how to detect halted/suspended machines, please open a new issue and we'll go from there. :)

from vagrant-hostmanager.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.