-
Notifications
You must be signed in to change notification settings - Fork 129
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
Support for multiple private_network
adapters
#58
Comments
…ames, with backwards-compatible syntax for existing setups (see this issue for details: agiledivider#58)
@mefellows we have exactly the same requirement, down to separate IPs for AU and NZ :). Would be grateful if you got a chance to craft up a suitable PR, otherwise I'll have a go based on your work. |
Hi @chuckd, take a look at https://github.com/SEEK-Jobs/vagrant-multi-hostsupdater. We use it a SEEK and it works nicely. There is an old PR for this project but there hasn't been any activity in a while. |
Ah, nice, thanks @mefellows, looks perfect, I'll give that a go. |
Hi @mefellows! This looks like it would be a good addition and I can definitely see the need for this as @chuckd does. Would you be willing to resubmit a PR branched from or submitted to |
Hi @cgsmith - sorry I don't know how I missed this! I'll take a look at the fork and see what I can do. Given this has good visibility it would be nice to contribute back. |
Hi guys! I would also really like to see this feature land, so I resubmitted a PR branched from The code is slightly different from @mefellows' commit to handle
The original behavior is not changed when an array is given for the The comments in README.md have been shamelessly stolen from @mefellows' PR. I hope this can help. |
This has been merged in and is part of the release. |
Given the following Vagrant setup, vagrant-hostsupdater produces an invalid
/etc/hosts
file where different hostnames need to be bound to different IP addresses within the guest:The
/etc/hosts
file will look something like:It would be great if support for mapping IPs to hostnames were added:
e.g. a syntax something like:
would produce a hosts file like:
The text was updated successfully, but these errors were encountered: