Skip to content
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

Provisioner should update all hosts #142

Closed
wants to merge 1 commit into from

Conversation

jess-sol
Copy link

This would be useful because when a new machine is created/provisioned, it makes sense that it be added to all the other machines' hostfiles, allowing them to communicate with it.
If a machine is reloaded and gets a new IP, and the host-manager provisioner is set to always run, it'd also be beneficial for the provisioner to update the IP on all hosts, not just the one being reloaded and possibly master.

If possible, this would be a good provisioner option, something like config.vm.provision 'hostmanager', update: "all", run: "always". I don't know how to accomplish this though, I'm new to Vagrant plugins.

The hostmanager provisioner should attempt to update all hosts, not just the one being provisioned and maybe the host.
@seth-reeser
Copy link
Member

Your best bet is to align your methodology with Configuration Management best practices, your best bet is to use config.vm.provision :hostmanager in your vm definition.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants