Skip to content

Conversation

@Roguelazer
Copy link

We have separate hostmanager configuration stanzas for different Providers; right now, if you set a hostmanager config on a provider's override block, it is completely ignored.

This patch fixes it.

I'm not sure if there's some subtle reason that I missed; if so, please let me know and we can brainstorm some other way to fix it.

Example config:

Vagrant.configure(VAGRANTFILE_API_VERSION) do |config|
  config.vm.box = "some-box-name"
  config.hostmanager.ip_resolver = default_proc_used_on_default_provisioner

  config.vm.provider "virtualbox" do |vb, override|
    override.hostmanager.ip_resolver = some_other_proc
  end
end

@Roguelazer
Copy link
Author

This is still preventing hostmanager from working on Vagrantfiles with provider overrides.

@seth-reeser
Copy link
Member

I will investigate and test this in the next few days and release if appropriate. Stay tuned.

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.

2 participants