Comments (3)
@scollier the hostmanager plugin will ensure the /etc/hosts files matches the vagrant reality of defined machines, IOW what you see when you run vagrant status
. This means even if a machine is "destroyed", it's still defined. You define machines in omv by setting the vms variable and/or count variable in omv.yaml
. If you don't want a machine to appear in /etc/hosts remove it from the omv.yaml definition.
Please note, when you change this, the vms will be renumbered if you haven't statically set IP addresses.
So if you remove master 2, master3 will get the ip 192.168.123.102.
Lastly, please explain the problem you are having that entries in /etc/hosts are causing you :)
from oh-my-vagrant.
The problem is that the message states that ==> node1: Updating /etc/hosts file on active guest machines...
it is cleaning up the environment. It's not causing any immediate issues, but it's certainly not adding anything useful. I'd rather not have entries in my hosts file that don't exist.
Now, if the host file is configured per defined machines, then that's one thing. However, the message says active
guest machines. It doesn't say defined
machines.
from oh-my-vagrant.
@scollier I understand your point, however those are things/design choices (even if they are bugs) that vagrant defined, not oh-my-vagrant. OMV just wraps whatever vagrant does to make that part easier. I'd love to offer you a better solution, but for the moment, I have no ideas.
Either send a patch here or upstream if you think of something, and open a new ticket if there's a fix I didn't think of.
Cheers!
from oh-my-vagrant.
Related Issues (20)
- omv --version reports version of Vagrant and not of omv itself HOT 1
- add port forwarding to omv.yaml HOT 2
- [bug] shell script seems broken HOT 2
- Not parseable Vagrantfile in 0.0.31 HOT 5
- Add a new share type for NFSv4
- RFE: Add the ability for the user to specifiy a list of shares
- Problematic /etc/hosts file entry in provisioned VM HOT 7
- When using atomic host as guest, second iface won't come up automatically HOT 11
- [RFE] Ability to configure various libvirt provisioner parameters HOT 5
- How to define shell script in `omv.yaml` HOT 2
- goern, send a patch! HOT 2
- Oh-my-vagrant should consider using official CentOS vagrant box from CentOS community HOT 3
- I should be able to use https://atlas.hashicorp.com/ with omv HOT 4
- Need to put some documentation on why we need patched version of vagrant-hostmanager plugin HOT 3
- Fedora naming schema lead to unidentified atomic host HOT 1
- Ansible runs N number of times (where N=vms.size) HOT 2
- Do not try to unsubscribe uninitialized machines HOT 2
- puppet repos by default HOT 1
- /etc/hosts entry for omv HOT 3
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from oh-my-vagrant.