-
Notifications
You must be signed in to change notification settings - Fork 148
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
[Help Wanted] Possible to add a list of hostnames and IPs? #223
Comments
the attached commit allows to use:
To define external hosts entries within the vagrant-hostmanager plugin |
I'm very interested in this feature. I would like to test it and give you feedback. How can I install your version? Is there a command to install your version of the plugin? |
Hello @utrotzek , I can think of two approaches to install the plugin:
|
@javier-lopez This patch is working for me. Would it be possible to get rid of the outer array structure? config.hostmanager.extra_hosts = [ '172.28.128.100', ['db.dev']]
instead of
config.hostmanager.extra_hosts = [[ '172.28.128.100', ['db.dev']]] |
@foozmeat done, I've also uploaded the modified version to https://rubygems.org/gems/vagrant-hostmanager-ext while (if) the changes get merged. To test it run:
|
@javier-lopez sorry for the late response. Thanks for the hint and uploading to rubygems. Unfortunately I get the following error message when running
With the original plugin I installed it using
Do you have an idea what could be wrong? I have vagrant v1.9.2 installed. |
Is it possible to add a list of hostnames and IPs to my vagrant box / hostsync with vagrant-hostmanager?
Eg.
config.hostmanager.add_host '10.0.2.3', ['myotherhost.vagrantup.internal', 'myotherhost'] config.hostmanager.add_host '10.0.2.4', ['mysecondhost.vagrantup.internal', 'mysecondhost']
The text was updated successfully, but these errors were encountered: