-
Notifications
You must be signed in to change notification settings - Fork 147
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
Fix host file management for Linux and Windows hosts #234
Conversation
+1 for the PR. Any progress on getting this merged? |
@seth-reeser bumping this PR in lieu of #229 - we're still impacted by this. Any update? |
I had to add quotes to line 68 to handle paths that have spaces in them, so that copy will work:
PR here: |
Spaces are such a pesky problem :) |
Guys, any progress on merging this PR? I'm also stuck with #231 |
@jugatsu You can locally check out this PR and then use |
Thanks everyone I just learned how to checkout a PR and do
I personally renamed the resulting gem to -hotfixed.gem and checked it into my team's shared vagrant box sourcecontrol, for now. It was ~25k in size. |
Hey @seth-reeser - sorry to keep bugging you, but it would be helpful to get this merge accepted! Any further changes or testing that I can do to help the process along? Thanks! |
I'm using JasonRitchie's script as part of the setup. That's the only way things work for our devs, both on linux and on macs. |
Please merge! This fix helps us, and for the moment we have to distribute a custom build of the plugin to our devs. |
v1.8.7 has been released with this merged. |
This PR (correctly this time!) resolves #232 #228 #231 and #229.
My initial commit fixed windows, but broke linux and I didn't catch it during testing as I was only running hostmaster on the windows box. This morning I realized the breakage on the linux side and fixed that. Rather than creating /tmp/hosts for linux hosts I opted to just put the
hosts.#{machine.name}
directly in /tmp as on windows we're already moving it, and adding the rm for linux hosts.I tested with 3 nodes several times to ensure this worked as expected:
RHEL7
CentOS 6
Windows 2012