No description
Find a file
2023-01-27 16:44:56 -05:00
.github Add changelog generation and release instructions 2023-01-27 15:33:56 -05:00
lib pin to vmpooler 2.4 2022-07-25 13:00:26 -05:00
scripts Initial commit migrating from VMPooler proper 2021-11-29 16:03:09 -05:00
spec remove upstream spec tests 2022-07-25 14:47:51 -05:00
.github_changelog_generator Add changelog generation and release instructions 2023-01-27 15:33:56 -05:00
.gitignore Initial commit migrating from VMPooler proper 2021-11-29 16:03:09 -05:00
.rubocop.yml Fix naming, add docs, add missing test file 2021-12-01 15:59:03 -05:00
.rubocop_todo.yml Fix naming, add docs, add missing test file 2021-12-01 15:59:03 -05:00
CHANGELOG.md Add changelog generation and release instructions 2023-01-27 15:33:56 -05:00
CODEOWNERS Remove DIO as codeowners 2022-08-26 09:47:20 -04:00
Gemfile Initial commit migrating from VMPooler proper 2021-11-29 16:03:09 -05:00
Gemfile.lock Merge branch 'main' into dependabot/bundler/rubocop-1.28.2 2022-07-27 08:59:50 -05:00
LICENSE Fix naming, add docs, add missing test file 2021-12-01 15:59:03 -05:00
Rakefile Initial commit migrating from VMPooler proper 2021-11-29 16:03:09 -05:00
README.md Add changelog generation and release instructions 2023-01-27 15:33:56 -05:00
update-changelog Add changelog generation and release instructions 2023-01-27 15:33:56 -05:00
vmpooler-provider-vsphere.gemspec vmpooler should be a dependency 2023-01-27 16:44:56 -05:00

vmpooler-provider-vsphere

This is a provider for VMPooler allows using vSphere as a source of machines. This provider was originally part of the main VMPooler code base but was extracted to be a standalone gem so that development could be done independently of VMPooler itself.

Usage

Include this gem in the same Gemfile that you use to install VMPooler itself and then define one or more pools with the provider key set to vsphere. VMPooler will take care of the rest.

Examples of deploying VMPooler with this provider can be found in the puppetlabs/vmpooler-deployment repository.

Custom VM Config Attribute

This provider sets a custom attribute on the VM called guestinfo.hostname to the name of the generated VM, which can be queried from inside the guest OS if VMware Tools is isntalled. For example:

macOS: "/Library/Application Support/VMware Tools/vmware-tools-daemon" --cmd "info-get guestinfo.hostname" Linux or Windows Guest: vmtoolsd --cmd "info-get guestinfo.hostname"

See the VMware Tools Administration docs for more information about querying information from the GuestInfo variable.

Releasing

Follow these steps to publish a new GitHub release, and build and push the gem to https://rubygems.org.

  1. Run ./update-changelog to update CHANGELOG.md.
  2. Bump the "VERSION" in lib/vmpooler-provider-vsphere/version.rb appropriately based on changes in CHANGELOG.md since the last release.
  3. Commit and push changes to a new branch, then open a pull request against main and be sure to add the "maintenance" label.
  4. After the pull request is approved and merged, then navigate to Actions --> Release Gem --> run workflow --> Branch: main --> Run workflow.

License

vmpooler-provider-vsphere is distributed under the Apache License, Version 2.0. See the LICENSE file for more details.