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

Generate a requisition from vSphere #8

Open
agalue opened this issue Aug 23, 2019 · 1 comment
Open

Generate a requisition from vSphere #8

agalue opened this issue Aug 23, 2019 · 1 comment

Comments

@agalue
Copy link
Owner

agalue commented Aug 23, 2019

Similar to the DNS use case, it would be useful to connect to vCenter and generate a requisition similar to how the VMWare Integration in OpenNMS would do it.

It turns out that VMWare have a Go Library to manage anything on a vSphere environment:

https://github.com/vmware/govmomi

@agalue
Copy link
Owner Author

agalue commented Sep 3, 2019

The idea would having commands like this:

onmsctl inventory vmware allNodes
onmsctl inventory vmware --only-hosts --requisition myHosts generate 10.0.0.1
onmsctl inventory vmware --only-vms --requisition myVMs generate 10.0.0.1

The user should pass the vCenter IP or FQDN as well as the name of the requisition as a parameter. If the name of the requisition is omitted, the name of the vCenter host will be used.

Of course, the user can provide:

  • --username user to connect to vCenter
  • --password the password of the user used to connect to vCenter
  • --insecure to avoid validating the HTTPS certificate of the vCenter API

That will generate a YAML with the requisition, but the format can be changed accordingly.

@agalue agalue changed the title Generate a Requisition from vSphere Generate a requisition from vSphere Sep 5, 2019
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

No branches or pull requests

1 participant