Skip to content

Commit

Permalink
add esxi host inventory plugin
Browse files Browse the repository at this point in the history
  • Loading branch information
mikemorency committed Dec 16, 2024
1 parent bb1aba5 commit b4b6338
Show file tree
Hide file tree
Showing 12 changed files with 1,184 additions and 0 deletions.
3 changes: 3 additions & 0 deletions changelogs/fragments/91-add-esxi_host-inventory.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
---
minor_changes:
- esxi_host - Added inventory plugin to gather info about ESXi hosts
40 changes: 40 additions & 0 deletions plugins/doc_fragments/plugin_base_options.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,40 @@
# -*- coding: utf-8 -*-

# Copyright: (c) 2016, Charles Paul <[email protected]>
# Copyright: (c) 2018, Ansible Project
# Copyright: (c) 2019, Abhijeet Kasurde <[email protected]>
# GNU General Public License v3.0+ (see LICENSES/GPL-3.0-or-later.txt or https://www.gnu.org/licenses/gpl-3.0.txt)
# SPDX-License-Identifier: GPL-3.0-or-later

from __future__ import absolute_import, division, print_function
__metaclass__ = type


class ModuleDocFragment(object):
# This document fragment serves as a partial base for all vmware plugins. It should be used in addition to the base fragment, vmware.vmware.base_options
# since that contains the actual argument descriptions and defaults. This just defines the environment variables since plugins have something
# like the module spec where that is usually done.
DOCUMENTATION = r'''
options:
hostname:
env:
- name: VMWARE_HOST
username:
env:
- name: VMWARE_USER
password:
env:
- name: VMWARE_PASSWORD
validate_certs:
env:
- name: VMWARE_VALIDATE_CERTS
port:
env:
- name: VMWARE_PORT
proxy_host:
env:
- name: VMWARE_PROXY_HOST
proxy_port:
env:
- name: VMWARE_PROXY_PORT
'''
Loading

0 comments on commit b4b6338

Please sign in to comment.