suzieq icon indicating copy to clipboard operation
suzieq copied to clipboard

Add vcenter as inventory source

Open tgupta3 opened this issue 1 year ago • 2 comments

Related Issue

issue #928

Description

Add vcenter support to suzieq. This will fetch the relevant VMs and their IPs that can be used to collect required data. The VM should have a custom attribute key (default is suzieq), the value of the key doesn't matter, in order for it to be part of the inventory.

Dependency added - pyvnomi

Type of change

Please delete options that are not relevant.

  • New feature (non-breaking change which adds functionality)

New Behavior

A new vcenter source can be added like this

sources:
- name: vsphere-devices
  type: vcenter
  url: https://<url_vcenter>
  username: <trim>
  password: plain:<trim>
  ssl-verify: False
  attributes:
    - "monitored"

Discussion: Benefits and Drawbacks

Vmware is commonly used in on-prem. This would allow monitoring of linux devices without specifying the devices individually. The change is backwards compatible.

Proposed Release Note Entry

Add vcenter source for inventory.

Double Check

  • [ x] I have read the comments and followed the CONTRIBUTING.md.
  • [ x] I have explained my PR according to the information in the comments or in a linked issue.
  • [ x] My PR source branch is created from the develop branch.
  • [ x] My PR targets the develop branch.
  • [ x] All my commits have --signoff applied

tgupta3 avatar May 11 '24 01:05 tgupta3

@tgupta3 Can you please rebase to latest deveop?

ddutt avatar Jun 03 '24 01:06 ddutt

@tgupta3 Can you please rebase to latest deveop?

Done

tgupta3 avatar Jun 03 '24 16:06 tgupta3