suzieq
suzieq copied to clipboard
Add vcenter as inventory source
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
developbranch. - [ x] My PR targets the
developbranch. - [ x] All my commits have
--signoffapplied
@tgupta3 Can you please rebase to latest deveop?
@tgupta3 Can you please rebase to latest deveop?
Done