From 41459933ad646275745b3aa6bd95b41971c317cf Mon Sep 17 00:00:00 2001 From: Gevorg-Khachatryaan Date: Mon, 9 Oct 2023 11:19:05 +0400 Subject: [PATCH 1/5] example for vms inventory --- examples/inventory/nutanix.yml | 13 +++++++++++++ 1 file changed, 13 insertions(+) create mode 100644 examples/inventory/nutanix.yml diff --git a/examples/inventory/nutanix.yml b/examples/inventory/nutanix.yml new file mode 100644 index 00000000..eb8dfcac --- /dev/null +++ b/examples/inventory/nutanix.yml @@ -0,0 +1,13 @@ +plugin: nutanix.ncp.ntnx_prism_vm_inventory +nutanix_host: +nutanix_username: +nutanix_password: +validate_certs: false +data: {"offset": 0, "length": 1000} +groups: + group_1: "'' in name" + group_2: "''==name" +keyed_groups: + - prefix: "host" + separator: ':' + key: "ansible_host" \ No newline at end of file From 15b8a1a948b82beffe48f3e12b254c450c9cfb0a Mon Sep 17 00:00:00 2001 From: Gevorg-Khachatryaan Date: Wed, 25 Oct 2023 15:58:02 +0400 Subject: [PATCH 2/5] ansible cfg --- ansible.cfg | 7 +++++++ 1 file changed, 7 insertions(+) create mode 100644 ansible.cfg diff --git a/ansible.cfg b/ansible.cfg new file mode 100644 index 00000000..7c5781ba --- /dev/null +++ b/ansible.cfg @@ -0,0 +1,7 @@ +[defaults] +inventory = nutanix.yaml + +[inventory] +enable_plugins = nutanix.ncp.ntnx_prism_vm_inventory + + From d59b8f79c775cd4d43af0321afc90fcd752e2ca9 Mon Sep 17 00:00:00 2001 From: Pradeepsingh Bhati Date: Tue, 31 Oct 2023 01:22:54 +0530 Subject: [PATCH 3/5] Move cfg to inventory example folder --- ansible.cfg => examples/inventory/ansible.cfg | 0 1 file changed, 0 insertions(+), 0 deletions(-) rename ansible.cfg => examples/inventory/ansible.cfg (100%) diff --git a/ansible.cfg b/examples/inventory/ansible.cfg similarity index 100% rename from ansible.cfg rename to examples/inventory/ansible.cfg From 02c23f155d437312a2f9479aa505c079fad413a1 Mon Sep 17 00:00:00 2001 From: Pradeepsingh Bhati Date: Tue, 31 Oct 2023 01:24:12 +0530 Subject: [PATCH 4/5] Minor name changes --- examples/inventory/{nutanix.yml => nutanix.yaml} | 0 1 file changed, 0 insertions(+), 0 deletions(-) rename examples/inventory/{nutanix.yml => nutanix.yaml} (100%) diff --git a/examples/inventory/nutanix.yml b/examples/inventory/nutanix.yaml similarity index 100% rename from examples/inventory/nutanix.yml rename to examples/inventory/nutanix.yaml From e4cb2542f224494f4366fa261b3b70b704ebff25 Mon Sep 17 00:00:00 2001 From: Pradeepsingh Bhati Date: Tue, 31 Oct 2023 01:29:23 +0530 Subject: [PATCH 5/5] Minor fix --- examples/inventory/nutanix.yaml | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/examples/inventory/nutanix.yaml b/examples/inventory/nutanix.yaml index eb8dfcac..b38ba655 100644 --- a/examples/inventory/nutanix.yaml +++ b/examples/inventory/nutanix.yaml @@ -1,7 +1,7 @@ plugin: nutanix.ncp.ntnx_prism_vm_inventory -nutanix_host: -nutanix_username: -nutanix_password: +nutanix_hostname: +nutanix_username: +nutanix_password: validate_certs: false data: {"offset": 0, "length": 1000} groups: