Skip to content

Commit

Permalink
example for vms inventory (#426)
Browse files Browse the repository at this point in the history
* example for vms inventory

* ansible cfg

* Move cfg to inventory example folder

* Minor name changes

* Minor fix

---------

Co-authored-by: Gevorg-Khachatryaan <Gevorg1050.1>
Co-authored-by: Pradeepsingh Bhati <[email protected]>
  • Loading branch information
Gevorg-Khachatryan-97 and bhati-pradeep authored Oct 30, 2023
1 parent 7171027 commit f5e9dca
Show file tree
Hide file tree
Showing 2 changed files with 20 additions and 0 deletions.
7 changes: 7 additions & 0 deletions examples/inventory/ansible.cfg
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
[defaults]
inventory = nutanix.yaml

[inventory]
enable_plugins = nutanix.ncp.ntnx_prism_vm_inventory


13 changes: 13 additions & 0 deletions examples/inventory/nutanix.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
plugin: nutanix.ncp.ntnx_prism_vm_inventory
nutanix_hostname: <pc_ip>
nutanix_username: <username>
nutanix_password: <password>
validate_certs: false
data: {"offset": 0, "length": 1000}
groups:
group_1: "'<name_prefix>' in name"
group_2: "'<vm_name>'==name"
keyed_groups:
- prefix: "host"
separator: ':'
key: "ansible_host"

0 comments on commit f5e9dca

Please sign in to comment.