-
Notifications
You must be signed in to change notification settings - Fork 64
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
DNS management should be done with a modified vagrant-hostmanager instead of Puppet #68
Comments
I was able to do this with this Ansible code:
|
@cgwalters Sweet... Actually oh-my-vagrant has ansible support although there might be at least one bug so it needs love / testing. This feature could be plugged in this way though. Note, the configuration is to set the "second" (static) network which doesn't exist initially, where as this I think is using the default IP's. I feel this should probably be done without ansible though to remove this dependency and so that when you're monkeying with ansible this stays out of the way, but that's just my opinion, and I would gladly accept patches to do it this way if someone so wishes. |
I've written and tested this and it is now available in a feature branch: https://github.com/purpleidea/oh-my-vagrant/tree/feat/hostmanager The one catch is that it needs a modified vagrant-hostmanager. Those patches are available in: https://github.com/purpleidea/vagrant-hostmanager/tree/feat/extras That has been sent "upstream" as this PR: devopsgroup-io/vagrant-hostmanager#145 If there are any issues, I would appreciate help in getting them fixed. The +ive note, is that I tested this, and with my patches and this feature branch, DNS seems to work great! If someone would like the ability to do this with ansible instead of hostmanager, I'd happily accept that patch too, and make it configurable. |
build vagrant-hostmanager+feat/extras and it seems to work for me. using oh-my-vagrant+feat/hostmanager seems to work to, I up'd, destroy'd a few machine. The only thing that is confusing me is that there is a host that is not managed by OMV:
Even changing the domain in omv.yaml and |
I'm guessing you're referring to:
and wondering what that is? In addition to the host names of all available machines, it also creates on extra entry with that IP, and the hostname == omv-namespace. So your namespace is probably: ose3onah This last entry is used as a VIP when needed by certain applications. Make sense? |
If devopsgroup-io/vagrant-hostmanager#145 isn't merged soon, who wants to fork (for now) and put a new version of this project on rubygems? We can name it vagrant-hm2. Alternatively, we could distribute a tiny shell script with omv that "live" patches the ~/.vagrant.d/gems/gems/vagrant-hostmanager directory in an idempotent way. Yuck, but doable. In parallel, who can package this for Fedora, including my patch so that it's part of the existing vagrant+vagrant-libvirt RPM's. @goern <-- want to follow up on this? |
Since the DNS hostmanager patches are in git master, I'm going to close this. |
Currently /etc/hosts is managed with puppet and the shell provider because it was an easy hack to setup when this tool was first written.
Since omv has become more generally useful, we should patch it so that puppet isn't required in the base image. This is needed to support images without puppet such as atomic.
Some patches were needed for vagrant-hostmanager:
https://github.com/purpleidea/vagrant-hostmanager
They need to be tested and cleaned up (available in feat branches)'
Omv then needs to add this feature. Also available in a feature branch.
If you want to work on this, please ping me, and I'll make sure my latest testing version is online.
Cheers!
The text was updated successfully, but these errors were encountered: