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

allow setting target host for vm #281

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

alclonky
Copy link

allows loadbalancing vms on the esx hosts

we are using it like

...

(1..30).each do |i|
  config.vm.define "client-#{i}" do |client|
    client.vm.provider "vsphere"
    client.vm.provider :vsphere do |vsphere|
      vsphere.name = "client-#{i}"
      if i.even?
        vsphere.target_host = 'esxhost1'
      else
        vsphere.target_host = 'esxhost2'
      end
    end
  end
end

...

@edmcman
Copy link

edmcman commented Mar 25, 2019

You might also be interested in my pull request if you use DRS: #232

@alclonky
Copy link
Author

You might also be interested in my pull request if you use DRS: #232

I do not have a licences which provides DRS, thats why i needed this feature

@alclonky
Copy link
Author

seems to be duplicate of #257
why isn't it merged yet?

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