diff --git a/plugins/module_utils/v4/base_info_module.py b/plugins/module_utils/v4/base_info_module.py index 67e4b776..b9b44ebd 100644 --- a/plugins/module_utils/v4/base_info_module.py +++ b/plugins/module_utils/v4/base_info_module.py @@ -1,5 +1,9 @@ -# Copyright: 2021, Ansible Project -# Simplified BSD License (see licenses/simplified_bsd.txt or https://opensource.org/licenses/BSD-2-Clause ) +#!/usr/bin/python +# -*- coding: utf-8 -*- + +# Copyright: (c) 2024, Nutanix +# GNU General Public License v3.0+ (see COPYING or https://www.gnu.org/licenses/gpl-3.0.txt) + from __future__ import absolute_import, division, print_function from copy import deepcopy diff --git a/plugins/module_utils/v4/clusters_mgmt/api_client.py b/plugins/module_utils/v4/clusters_mgmt/api_client.py index 1459fc76..ea0b4900 100644 --- a/plugins/module_utils/v4/clusters_mgmt/api_client.py +++ b/plugins/module_utils/v4/clusters_mgmt/api_client.py @@ -1,3 +1,9 @@ +#!/usr/bin/python +# -*- coding: utf-8 -*- + +# Copyright: (c) 2024, Nutanix +# GNU General Public License v3.0+ (see COPYING or https://www.gnu.org/licenses/gpl-3.0.txt) + from __future__ import absolute_import, division, print_function __metaclass__ = type diff --git a/plugins/module_utils/v4/clusters_mgmt/helpers.py b/plugins/module_utils/v4/clusters_mgmt/helpers.py index aebbe21c..59341ce3 100644 --- a/plugins/module_utils/v4/clusters_mgmt/helpers.py +++ b/plugins/module_utils/v4/clusters_mgmt/helpers.py @@ -1,3 +1,9 @@ +#!/usr/bin/python +# -*- coding: utf-8 -*- + +# Copyright: (c) 2024, Nutanix +# GNU General Public License v3.0+ (see COPYING or https://www.gnu.org/licenses/gpl-3.0.txt) + from __future__ import absolute_import, division, print_function __metaclass__ = type diff --git a/plugins/module_utils/v4/clusters_mgmt/spec/clusters.py b/plugins/module_utils/v4/clusters_mgmt/spec/clusters.py index e9e6e57f..dec9093b 100644 --- a/plugins/module_utils/v4/clusters_mgmt/spec/clusters.py +++ b/plugins/module_utils/v4/clusters_mgmt/spec/clusters.py @@ -1,5 +1,9 @@ -# Copyright: 2021, Ansible Project -# Simplified BSD License (see licenses/simplified_bsd.txt or https://opensource.org/licenses/BSD-2-Clause ) +#!/usr/bin/python +# -*- coding: utf-8 -*- + +# Copyright: (c) 2024, Nutanix +# GNU General Public License v3.0+ (see COPYING or https://www.gnu.org/licenses/gpl-3.0.txt) + from __future__ import absolute_import, division, print_function __metaclass__ = type diff --git a/plugins/module_utils/v4/constants.py b/plugins/module_utils/v4/constants.py index 9825e668..9c9b90bc 100644 --- a/plugins/module_utils/v4/constants.py +++ b/plugins/module_utils/v4/constants.py @@ -1,4 +1,7 @@ -# This file is part of Ansible +#!/usr/bin/python +# -*- coding: utf-8 -*- + +# Copyright: (c) 2024, Nutanix # GNU General Public License v3.0+ (see COPYING or https://www.gnu.org/licenses/gpl-3.0.txt) from __future__ import absolute_import, division, print_function diff --git a/plugins/module_utils/v4/data_protection/api_client.py b/plugins/module_utils/v4/data_protection/api_client.py index 2e3f4c93..bf25588c 100644 --- a/plugins/module_utils/v4/data_protection/api_client.py +++ b/plugins/module_utils/v4/data_protection/api_client.py @@ -1,3 +1,9 @@ +#!/usr/bin/python +# -*- coding: utf-8 -*- + +# Copyright: (c) 2024, Nutanix +# GNU General Public License v3.0+ (see COPYING or https://www.gnu.org/licenses/gpl-3.0.txt) + from __future__ import absolute_import, division, print_function __metaclass__ = type diff --git a/plugins/module_utils/v4/data_protection/helpers.py b/plugins/module_utils/v4/data_protection/helpers.py index 7f6929ee..19f8fb47 100644 --- a/plugins/module_utils/v4/data_protection/helpers.py +++ b/plugins/module_utils/v4/data_protection/helpers.py @@ -1,3 +1,9 @@ +#!/usr/bin/python +# -*- coding: utf-8 -*- + +# Copyright: (c) 2024, Nutanix +# GNU General Public License v3.0+ (see COPYING or https://www.gnu.org/licenses/gpl-3.0.txt) + from __future__ import absolute_import, division, print_function __metaclass__ = type diff --git a/plugins/module_utils/v4/flow/api_client.py b/plugins/module_utils/v4/flow/api_client.py index 3d2f61a2..45e46172 100644 --- a/plugins/module_utils/v4/flow/api_client.py +++ b/plugins/module_utils/v4/flow/api_client.py @@ -1,3 +1,9 @@ +#!/usr/bin/python +# -*- coding: utf-8 -*- + +# Copyright: (c) 2024, Nutanix +# GNU General Public License v3.0+ (see COPYING or https://www.gnu.org/licenses/gpl-3.0.txt) + from __future__ import absolute_import, division, print_function __metaclass__ = type diff --git a/plugins/module_utils/v4/flow/helpers.py b/plugins/module_utils/v4/flow/helpers.py index 67eeff1f..ab9b809d 100644 --- a/plugins/module_utils/v4/flow/helpers.py +++ b/plugins/module_utils/v4/flow/helpers.py @@ -1,3 +1,9 @@ +#!/usr/bin/python +# -*- coding: utf-8 -*- + +# Copyright: (c) 2024, Nutanix +# GNU General Public License v3.0+ (see COPYING or https://www.gnu.org/licenses/gpl-3.0.txt) + from __future__ import absolute_import, division, print_function __metaclass__ = type diff --git a/plugins/module_utils/v4/iam/api_client.py b/plugins/module_utils/v4/iam/api_client.py index 266ce802..f6b234c3 100644 --- a/plugins/module_utils/v4/iam/api_client.py +++ b/plugins/module_utils/v4/iam/api_client.py @@ -1,3 +1,9 @@ +#!/usr/bin/python +# -*- coding: utf-8 -*- + +# Copyright: (c) 2024, Nutanix +# GNU General Public License v3.0+ (see COPYING or https://www.gnu.org/licenses/gpl-3.0.txt) + from __future__ import absolute_import, division, print_function __metaclass__ = type diff --git a/plugins/module_utils/v4/iam/helpers.py b/plugins/module_utils/v4/iam/helpers.py index a7d4fc55..2141a6be 100644 --- a/plugins/module_utils/v4/iam/helpers.py +++ b/plugins/module_utils/v4/iam/helpers.py @@ -1,3 +1,9 @@ +#!/usr/bin/python +# -*- coding: utf-8 -*- + +# Copyright: (c) 2024, Nutanix +# GNU General Public License v3.0+ (see COPYING or https://www.gnu.org/licenses/gpl-3.0.txt) + from __future__ import absolute_import, division, print_function __metaclass__ = type @@ -6,6 +12,15 @@ def get_authorization_policy(module, api_instance, ext_id): + """ + This method will return authorization policy info using ext_id. + Args: + module (object): Ansible module object + api_instance (object): Authorization policy api instance + ext_id (str): External id of authorization policy + Returns: + authorization_policy_info (dict): Authorization policy info + """ try: return api_instance.get_authorization_policy_by_id(extId=ext_id).data except Exception as e: diff --git a/plugins/module_utils/v4/network/api_client.py b/plugins/module_utils/v4/network/api_client.py index cb1eed25..c156cf64 100644 --- a/plugins/module_utils/v4/network/api_client.py +++ b/plugins/module_utils/v4/network/api_client.py @@ -1,3 +1,9 @@ +#!/usr/bin/python +# -*- coding: utf-8 -*- + +# Copyright: (c) 2024, Nutanix +# GNU General Public License v3.0+ (see COPYING or https://www.gnu.org/licenses/gpl-3.0.txt) + from __future__ import absolute_import, division, print_function __metaclass__ = type diff --git a/plugins/module_utils/v4/network/helpers.py b/plugins/module_utils/v4/network/helpers.py index df599699..dfc37eec 100644 --- a/plugins/module_utils/v4/network/helpers.py +++ b/plugins/module_utils/v4/network/helpers.py @@ -1,3 +1,9 @@ +#!/usr/bin/python +# -*- coding: utf-8 -*- + +# Copyright: (c) 2024, Nutanix +# GNU General Public License v3.0+ (see COPYING or https://www.gnu.org/licenses/gpl-3.0.txt) + from __future__ import absolute_import, division, print_function __metaclass__ = type diff --git a/plugins/module_utils/v4/prism/pc_api_client.py b/plugins/module_utils/v4/prism/pc_api_client.py index 311aded9..9da763af 100644 --- a/plugins/module_utils/v4/prism/pc_api_client.py +++ b/plugins/module_utils/v4/prism/pc_api_client.py @@ -1,3 +1,9 @@ +#!/usr/bin/python +# -*- coding: utf-8 -*- + +# Copyright: (c) 2024, Nutanix +# GNU General Public License v3.0+ (see COPYING or https://www.gnu.org/licenses/gpl-3.0.txt) + from __future__ import absolute_import, division, print_function __metaclass__ = type diff --git a/plugins/module_utils/v4/prism/tasks.py b/plugins/module_utils/v4/prism/tasks.py index 6342ce33..f83b632d 100644 --- a/plugins/module_utils/v4/prism/tasks.py +++ b/plugins/module_utils/v4/prism/tasks.py @@ -1,5 +1,9 @@ -# This file is part of Ansible +#!/usr/bin/python +# -*- coding: utf-8 -*- + +# Copyright: (c) 2024, Nutanix # GNU General Public License v3.0+ (see COPYING or https://www.gnu.org/licenses/gpl-3.0.txt) + from __future__ import absolute_import, division, print_function from copy import deepcopy diff --git a/plugins/module_utils/v4/sdk_mock.py b/plugins/module_utils/v4/sdk_mock.py index 49d0ed3d..b60bb595 100644 --- a/plugins/module_utils/v4/sdk_mock.py +++ b/plugins/module_utils/v4/sdk_mock.py @@ -1,3 +1,9 @@ +#!/usr/bin/python +# -*- coding: utf-8 -*- + +# Copyright: (c) 2024, Nutanix +# GNU General Public License v3.0+ (see COPYING or https://www.gnu.org/licenses/gpl-3.0.txt) + from __future__ import absolute_import, division, print_function __metaclass__ = type diff --git a/plugins/module_utils/v4/spec_generator.py b/plugins/module_utils/v4/spec_generator.py index f19d2e9f..12e3de1c 100644 --- a/plugins/module_utils/v4/spec_generator.py +++ b/plugins/module_utils/v4/spec_generator.py @@ -1,5 +1,9 @@ -# This file is part of Ansible +#!/usr/bin/python +# -*- coding: utf-8 -*- + +# Copyright: (c) 2024, Nutanix # GNU General Public License v3.0+ (see COPYING or https://www.gnu.org/licenses/gpl-3.0.txt) + from __future__ import absolute_import, division, print_function __metaclass__ = type diff --git a/plugins/module_utils/v4/utils.py b/plugins/module_utils/v4/utils.py index 5cceea35..ff5df56c 100644 --- a/plugins/module_utils/v4/utils.py +++ b/plugins/module_utils/v4/utils.py @@ -1,4 +1,7 @@ -# This file is part of Ansible +#!/usr/bin/python +# -*- coding: utf-8 -*- + +# Copyright: (c) 2024, Nutanix # GNU General Public License v3.0+ (see COPYING or https://www.gnu.org/licenses/gpl-3.0.txt) from __future__ import absolute_import, division, print_function diff --git a/plugins/module_utils/v4/vmm/api_client.py b/plugins/module_utils/v4/vmm/api_client.py index 859eb796..0a4ab16d 100644 --- a/plugins/module_utils/v4/vmm/api_client.py +++ b/plugins/module_utils/v4/vmm/api_client.py @@ -1,3 +1,9 @@ +#!/usr/bin/python +# -*- coding: utf-8 -*- + +# Copyright: (c) 2024, Nutanix +# GNU General Public License v3.0+ (see COPYING or https://www.gnu.org/licenses/gpl-3.0.txt) + from __future__ import absolute_import, division, print_function __metaclass__ = type diff --git a/plugins/module_utils/v4/vmm/helpers.py b/plugins/module_utils/v4/vmm/helpers.py index 8f8f7c1d..3f9a3e1a 100644 --- a/plugins/module_utils/v4/vmm/helpers.py +++ b/plugins/module_utils/v4/vmm/helpers.py @@ -1,3 +1,9 @@ +#!/usr/bin/python +# -*- coding: utf-8 -*- + +# Copyright: (c) 2024, Nutanix +# GNU General Public License v3.0+ (see COPYING or https://www.gnu.org/licenses/gpl-3.0.txt) + from __future__ import absolute_import, division, print_function __metaclass__ = type @@ -6,6 +12,15 @@ def get_vm(module, api_instance, ext_id): + """ + Get VM by ext_id + Args: + module: Ansible module + api_instance: VmApi instance from ntnx_vmm_py_client sdk + ext_id: ext_id of VM + Returns: + vm (obj): VM info object + """ try: return api_instance.get_vm_by_id(extId=ext_id).data except Exception as e: @@ -17,6 +32,16 @@ def get_vm(module, api_instance, ext_id): def get_nic(module, api_instance, ext_id, vm_ext_id): + """ + Get NIC by ext_id + Args: + module: Ansible module + api_instance: VmApi instance from ntnx_vmm_py_client sdk + ext_id: ext_id of NIC + vm_ext_id: ext_id of VM + Returns: + nic (obj): NIC info object + """ try: return api_instance.get_nic_by_id(vmExtId=vm_ext_id, extId=ext_id).data except Exception as e: @@ -28,6 +53,15 @@ def get_nic(module, api_instance, ext_id, vm_ext_id): def get_ngt_status(module, api_instance, vm_ext_id): + """ + Get NGT info by vm ext_id + Args: + module: Ansible module + api_instance: VmApi instance from ntnx_vmm_py_client sdk + vm_ext_id: ext_id of VM + Returns: + ngt (obj): NGT info object + """ try: return api_instance.get_guest_tools_by_id(extId=vm_ext_id).data except Exception as e: @@ -39,6 +73,16 @@ def get_ngt_status(module, api_instance, vm_ext_id): def get_disk(module, api_instance, ext_id, vm_ext_id): + """ + Get Disk by ext_id + Args: + module: Ansible module + api_instance: VmApi instance from ntnx_vmm_py_client sdk + ext_id: ext_id of Disk + vm_ext_id: ext_id of VM + Returns: + disk (obj): Disk info object + """ try: return api_instance.get_disk_by_id(vmExtId=vm_ext_id, extId=ext_id).data except Exception as e: @@ -50,6 +94,16 @@ def get_disk(module, api_instance, ext_id, vm_ext_id): def get_serial_port(module, api_instance, ext_id, vm_ext_id): + """ + Get Serial Port by ext_id + Args: + module: Ansible module + api_instance: VmApi instance from ntnx_vmm_py_client sdk + ext_id: ext_id of Serial Port + vm_ext_id: ext_id of VM + Returns: + serial_port (obj): Serial Port info object + """ try: return api_instance.get_serial_port_by_id(vmExtId=vm_ext_id, extId=ext_id).data except Exception as e: @@ -61,6 +115,15 @@ def get_serial_port(module, api_instance, ext_id, vm_ext_id): def get_template(module, api_instance, ext_id): + """ + Get Template by ext_id + Args: + module: Ansible module + api_instance: VmApi instance from ntnx_vmm_py_client sdk + ext_id: ext_id of Template + Returns: + template (obj): Template info object + """ try: return api_instance.get_template_by_id(extId=ext_id).data except Exception as e: @@ -72,6 +135,16 @@ def get_template(module, api_instance, ext_id): def get_cd_rom(module, api_instance, ext_id, vm_ext_id): + """ + Get CD ROM by ext_id + Args: + module: Ansible module + api_instance: VmApi instance from ntnx_vmm_py_client sdk + ext_id: ext_id of CD ROM + vm_ext_id: ext_id of VM + Returns: + cd_rom (obj): CD ROM info object + """ try: return api_instance.get_cd_rom_by_id(vmExtId=vm_ext_id, extId=ext_id).data except Exception as e: @@ -83,6 +156,16 @@ def get_cd_rom(module, api_instance, ext_id, vm_ext_id): def get_gpu(module, api_instance, ext_id, vm_ext_id): + """ + Get GPU by ext_id + Args: + module: Ansible module + api_instance: VmApi instance from ntnx_vmm_py_client sdk + ext_id: ext_id of GPU + vm_ext_id: ext_id of VM + Returns: + gpu (obj): GPU info object + """ try: return api_instance.get_gpu_by_id(vmExtId=vm_ext_id, extId=ext_id).data except Exception as e: diff --git a/plugins/module_utils/v4/vmm/spec/vms.py b/plugins/module_utils/v4/vmm/spec/vms.py index 79c60048..4d9b3948 100644 --- a/plugins/module_utils/v4/vmm/spec/vms.py +++ b/plugins/module_utils/v4/vmm/spec/vms.py @@ -1,5 +1,9 @@ -# Copyright: 2021, Ansible Project -# Simplified BSD License (see licenses/simplified_bsd.txt or https://opensource.org/licenses/BSD-2-Clause ) +#!/usr/bin/python +# -*- coding: utf-8 -*- + +# Copyright: (c) 2024, Nutanix +# GNU General Public License v3.0+ (see COPYING or https://www.gnu.org/licenses/gpl-3.0.txt) + from __future__ import absolute_import, division, print_function __metaclass__ = type diff --git a/plugins/module_utils/v4/volumes/api_client.py b/plugins/module_utils/v4/volumes/api_client.py index d589b7e5..f644af1c 100644 --- a/plugins/module_utils/v4/volumes/api_client.py +++ b/plugins/module_utils/v4/volumes/api_client.py @@ -1,3 +1,9 @@ +#!/usr/bin/python +# -*- coding: utf-8 -*- + +# Copyright: (c) 2024, Nutanix +# GNU General Public License v3.0+ (see COPYING or https://www.gnu.org/licenses/gpl-3.0.txt) + from __future__ import absolute_import, division, print_function __metaclass__ = type diff --git a/plugins/module_utils/v4/volumes/helpers.py b/plugins/module_utils/v4/volumes/helpers.py index 48fe27d3..ff1cde4f 100644 --- a/plugins/module_utils/v4/volumes/helpers.py +++ b/plugins/module_utils/v4/volumes/helpers.py @@ -1,3 +1,9 @@ +#!/usr/bin/python +# -*- coding: utf-8 -*- + +# Copyright: (c) 2024, Nutanix +# GNU General Public License v3.0+ (see COPYING or https://www.gnu.org/licenses/gpl-3.0.txt) + from __future__ import absolute_import, division, print_function __metaclass__ = type diff --git a/plugins/module_utils/v4/volumes/spec/volume_group.py b/plugins/module_utils/v4/volumes/spec/volume_group.py index bfd5436d..a9a4a522 100644 --- a/plugins/module_utils/v4/volumes/spec/volume_group.py +++ b/plugins/module_utils/v4/volumes/spec/volume_group.py @@ -1,5 +1,9 @@ -# Copyright: 2021, Ansible Project -# Simplified BSD License (see licenses/simplified_bsd.txt or https://opensource.org/licenses/BSD-2-Clause ) +#!/usr/bin/python +# -*- coding: utf-8 -*- + +# Copyright: (c) 2024, Nutanix +# GNU General Public License v3.0+ (see COPYING or https://www.gnu.org/licenses/gpl-3.0.txt) + from __future__ import absolute_import, division, print_function __metaclass__ = type diff --git a/plugins/modules/ntnx_address_groups_info_v2.py b/plugins/modules/ntnx_address_groups_info_v2.py index 624e8f1b..72ba19ab 100644 --- a/plugins/modules/ntnx_address_groups_info_v2.py +++ b/plugins/modules/ntnx_address_groups_info_v2.py @@ -1,8 +1,9 @@ #!/usr/bin/python # -*- coding: utf-8 -*- -# Copyright: (c) 2021, Prem Karat +# Copyright: (c) 2024, Nutanix # GNU General Public License v3.0+ (see COPYING or https://www.gnu.org/licenses/gpl-3.0.txt) + from __future__ import absolute_import, division, print_function __metaclass__ = type @@ -15,6 +16,7 @@ description: - Fetch specific address group info using external ID - Fetch list of multiple address groups info if external ID is not provided with optional filters + - This module uses PC v4 APIs based SDKs options: ext_id: description: @@ -24,14 +26,13 @@ - nutanix.ncp.ntnx_credentials - nutanix.ncp.ntnx_info_v2 author: - - Prem Karat (@premkarat) - Gevorg Khachatryan (@Gevorg-Khachatryan-97) - Alaa Bishtawi (@alaa-bish) - George Ghawali (@george-ghawali) """ EXAMPLES = r""" - name: Fetch address groups using external id - ntnx_address_groups_info_v2: + nutanix.ncp.ntnx_address_groups_info_v2: state: present nutanix_host: "{{ ip }}" nutanix_username: "{{ username }}" @@ -40,7 +41,7 @@ register: result - name: List all address groups - ntnx_address_groups_info_v2: + nutanix.ncp.ntnx_address_groups_info_v2: state: present nutanix_host: "{{ ip }}" nutanix_username: "{{ username }}" diff --git a/plugins/modules/ntnx_address_groups_v2.py b/plugins/modules/ntnx_address_groups_v2.py index fc0be1f1..d0353cc3 100644 --- a/plugins/modules/ntnx_address_groups_v2.py +++ b/plugins/modules/ntnx_address_groups_v2.py @@ -1,8 +1,9 @@ #!/usr/bin/python # -*- coding: utf-8 -*- -# Copyright: (c) 2021, Prem Karat +# Copyright: (c) 2024, Nutanix # GNU General Public License v3.0+ (see COPYING or https://www.gnu.org/licenses/gpl-3.0.txt) + from __future__ import absolute_import, division, print_function __metaclass__ = type @@ -10,9 +11,11 @@ DOCUMENTATION = r""" --- module: ntnx_address_groups_v2 -short_description: "Create, Update, Delete address groups" +short_description: Create, Update, Delete address groups version_added: 2.0.0 -description: "Create, Update, Delete address groups" +description: + - Create, Update, Delete address groups + - This module uses PC v4 APIs based SDKs options: state: description: @@ -70,7 +73,6 @@ - nutanix.ncp.ntnx_credentials - nutanix.ncp.ntnx_operations_v2 author: - - Prem Karat (@premkarat) - Gevorg Khachatryan (@Gevorg-Khachatryan-97) - Alaa Bishtawi (@alaa-bish) - George Ghawali (@george-ghawali) @@ -78,7 +80,7 @@ EXAMPLES = r""" - name: Create address group - ntnx_address_groups_v2: + nutanix.ncp.ntnx_address_groups_v2: nutanix_host: "{{ ip }}" nutanix_username: "{{ username }}" nutanix_password: "{{ password }}" @@ -92,7 +94,7 @@ prefix_length: 32 - name: delete address group - ntnx_address_groups_v2: + nutanix.ncp.ntnx_address_groups_v2: state: present nutanix_host: "{{ ip }}" nutanix_username: "{{ username }}" diff --git a/plugins/modules/ntnx_authorization_policies_info_v2.py b/plugins/modules/ntnx_authorization_policies_info_v2.py index c25f498d..4aecaf00 100644 --- a/plugins/modules/ntnx_authorization_policies_info_v2.py +++ b/plugins/modules/ntnx_authorization_policies_info_v2.py @@ -1,8 +1,9 @@ #!/usr/bin/python # -*- coding: utf-8 -*- -# Copyright: (c) 2021, Prem Karat +# Copyright: (c) 2024, Nutanix # GNU General Public License v3.0+ (see COPYING or https://www.gnu.org/licenses/gpl-3.0.txt) + from __future__ import absolute_import, division, print_function __metaclass__ = type @@ -17,6 +18,7 @@ - It will fetch specific authorization policy if external ID is provided - It will fetch multiple authorization policies if external ID is not provided - Use filters to fetch specific authorization policies + - This module uses PC v4 APIs based SDKs options: ext_id: description: @@ -27,13 +29,12 @@ - nutanix.ncp.ntnx_credentials - nutanix.ncp.ntnx_info_v2 author: - - Prem Karat (@premkarat) - Gevorg Khachatryan (@Gevorg-Khachatryan-97) - Alaa Bishtawi (@alaa-bish) """ EXAMPLES = r""" - name: Get 10 auth policies - ntnx_authorization_policies_info_v2: + nutanix.ncp.ntnx_authorization_policies_info_v2: nutanix_host: "{{ nutanix_host }}" nutanix_username: "{{ username }}" nutanix_password: "{{ password }}" @@ -42,7 +43,7 @@ ignore_errors: true - name: Get specific auth policy - ntnx_authorization_policies_info_v2: + nutanix.ncp.ntnx_authorization_policies_info_v2: nutanix_host: "{{ nutanix_host }}" nutanix_username: "{{ username }}" nutanix_password: "{{ password }}" @@ -51,7 +52,7 @@ ignore_errors: true - name: Fetch using filters - ntnx_authorization_policies_info_v2: + nutanix.ncp.ntnx_authorization_policies_info_v2: nutanix_host: "{{ nutanix_host }}" nutanix_username: "{{ username }}" nutanix_password: "{{ password }}" diff --git a/plugins/modules/ntnx_authorization_policies_v2.py b/plugins/modules/ntnx_authorization_policies_v2.py index f54ba795..719ce6b0 100644 --- a/plugins/modules/ntnx_authorization_policies_v2.py +++ b/plugins/modules/ntnx_authorization_policies_v2.py @@ -1,8 +1,9 @@ #!/usr/bin/python # -*- coding: utf-8 -*- -# Copyright: (c) 2021, Prem Karat +# Copyright: (c) 2024, Nutanix # GNU General Public License v3.0+ (see COPYING or https://www.gnu.org/licenses/gpl-3.0.txt) + from __future__ import absolute_import, division, print_function __metaclass__ = type @@ -13,6 +14,7 @@ short_description: Manage Nutanix PC IAM authorization policies description: - This module allows you to create, update, and delete authorization policies in Nutanix PC. + - This module uses PC v4 APIs based SDKs version_added: "2.0.0" options: state: @@ -75,7 +77,6 @@ - nutanix.ncp.ntnx_credentials - nutanix.ncp.ntnx_operations_v2 author: - - Prem Karat (@premkarat) - Gevorg Khachatryan (@Gevorg-Khachatryan-97) - Alaa Bishtawi (@alaa-bish) - Pradeepsingh Bhati (@bhati-pradeep) diff --git a/plugins/modules/ntnx_categories_info_v2.py b/plugins/modules/ntnx_categories_info_v2.py index 3e903bc0..6bf10c2b 100644 --- a/plugins/modules/ntnx_categories_info_v2.py +++ b/plugins/modules/ntnx_categories_info_v2.py @@ -1,8 +1,9 @@ #!/usr/bin/python # -*- coding: utf-8 -*- -# Copyright: (c) 2021, Prem Karat +# Copyright: (c) 2024, Nutanix # GNU General Public License v3.0+ (see COPYING or https://www.gnu.org/licenses/gpl-3.0.txt) + from __future__ import absolute_import, division, print_function __metaclass__ = type @@ -12,7 +13,9 @@ module: ntnx_categories_info_v2 short_description: Nutanix PC categories info module version_added: 2.0.0 -description: 'Get categories info' +description: + - Get categories info + - This module uses PC v4 APIs based SDKs options: ext_id: description: @@ -27,19 +30,18 @@ - nutanix.ncp.ntnx_credentials - nutanix.ncp.ntnx_info_v2 author: - - Prem Karat (@premkarat) - Gevorg Khachatryan (@Gevorg-Khachatryan-97) - Alaa Bishtawi (@alaa-bish) """ EXAMPLES = r""" - name: list all categories - ntnx_categories_info_v2: + nutanix.ncp.ntnx_categories_info_v2: nutanix_host: nutanix_username: nutanix_password: - name: List all categories with keyname & expand associations - ntnx_categories_info_v2: + nutanix.ncp.ntnx_categories_info_v2: nutanix_host: nutanix_username: nutanix_password: diff --git a/plugins/modules/ntnx_categories_v2.py b/plugins/modules/ntnx_categories_v2.py index 0d1c2bb1..7f35cbc8 100644 --- a/plugins/modules/ntnx_categories_v2.py +++ b/plugins/modules/ntnx_categories_v2.py @@ -1,8 +1,9 @@ #!/usr/bin/python # -*- coding: utf-8 -*- -# Copyright: (c) 2021, Prem Karat +# Copyright: (c) 2024, Nutanix # GNU General Public License v3.0+ (see COPYING or https://www.gnu.org/licenses/gpl-3.0.txt) + from __future__ import absolute_import, division, print_function __metaclass__ = type @@ -14,6 +15,7 @@ version_added: "2.0.0" description: - This module allows you to create, update, and delete categories in Nutanix Prism Central. + - This module uses PC v4 APIs based SDKs options: ext_id: description: @@ -52,14 +54,13 @@ - nutanix.ncp.ntnx_credentials - nutanix.ncp.ntnx_operations_v2 author: - - Prem Karat (@premkarat) - Gevorg Khachatryan (@Gevorg-Khachatryan-97) - Alaa Bishtawi (@alaa-bish) """ EXAMPLES = r""" - name: Create category key & value - ntnx_categories_v2: + nutanix.ncp.ntnx_categories_v2: nutanix_host: nutanix_username: nutanix_password: @@ -68,7 +69,7 @@ description: "ansible test" - name: Update category value and description - ntnx_categories_v2: + nutanix.ncp.ntnx_categories_v2: nutanix_host: nutanix_username: nutanix_password: @@ -78,7 +79,7 @@ description: "ansible test New value" - name: Delete created category key value pair - ntnx_categories_v2: + nutanix.ncp.ntnx_categories_v2: nutanix_host: nutanix_username: nutanix_password: diff --git a/plugins/modules/ntnx_clusters_info_v2.py b/plugins/modules/ntnx_clusters_info_v2.py index ad35d3ce..8a35ca5a 100644 --- a/plugins/modules/ntnx_clusters_info_v2.py +++ b/plugins/modules/ntnx_clusters_info_v2.py @@ -1,8 +1,9 @@ #!/usr/bin/python # -*- coding: utf-8 -*- -# Copyright: (c) 2021, Prem Karat +# Copyright: (c) 2024, Nutanix # GNU General Public License v3.0+ (see COPYING or https://www.gnu.org/licenses/gpl-3.0.txt) + from __future__ import absolute_import, division, print_function __metaclass__ = type @@ -16,6 +17,7 @@ - This module retrieves information about Nutanix clusters from PC. - Fetch particular cluster info using external ID - Fetch multiple clusters info with/without using filters, limit, etc. + - This module uses PC v4 APIs based SDKs options: ext_id: description: @@ -27,13 +29,12 @@ - nutanix.ncp.ntnx_credentials - nutanix.ncp.ntnx_info_v2 author: - - Prem Karat (@premkarat) - Pradeepsingh Bhati (@bhati-pradeep) """ EXAMPLES = r""" - name: fetch cluster info using external ID - ntnx_clusters_info_v2: + nutanix.ncp.ntnx_clusters_info_v2: nutanix_host: nutanix_username: nutanix_password: @@ -41,14 +42,14 @@ register: result - name: fetch all clusters info - ntnx_clusters_info_v2: + nutanix.ncp.ntnx_clusters_info_v2: nutanix_host: nutanix_username: nutanix_password: register: result - name: fetch all clusters info with filter - ntnx_clusters_info_v2: + nutanix.ncp.ntnx_clusters_info_v2: nutanix_host: nutanix_username: nutanix_password: diff --git a/plugins/modules/ntnx_clusters_nodes_v2.py b/plugins/modules/ntnx_clusters_nodes_v2.py index 16450de2..51df2add 100644 --- a/plugins/modules/ntnx_clusters_nodes_v2.py +++ b/plugins/modules/ntnx_clusters_nodes_v2.py @@ -1,8 +1,9 @@ #!/usr/bin/python # -*- coding: utf-8 -*- -# Copyright: (c) 2021, Prem Karat +# Copyright: (c) 2024, Nutanix # GNU General Public License v3.0+ (see COPYING or https://www.gnu.org/licenses/gpl-3.0.txt) + from __future__ import absolute_import, division, print_function __metaclass__ = type @@ -12,6 +13,7 @@ short_description: Add or Remove nodes from cluster using Nutanix PC description: - This module allows you to manage Nutanix cluster nodes. + - This module uses PC v4 APIs based SDKs version_added: "2.0.0" options: node_params: @@ -464,14 +466,13 @@ - nutanix.ncp.ntnx_credentials - nutanix.ncp.ntnx_operations_v2 author: - - Prem Karat (@premkarat) - Alaa Bishtawi (@alaabishtawi) - George Ghawali (@george-ghawali) """ EXAMPLES = r""" - name: Expand cluster - ntnx_clusters_nodes_v2: + nutanix.ncp.ntnx_clusters_nodes_v2: nutanix_host: nutanix_username: nutanix_password: @@ -523,7 +524,7 @@ register: result - name: Remove node from cluster - ntnx_clusters_nodes_v2: + nutanix.ncp.ntnx_clusters_nodes_v2: nutanix_host: nutanix_username: nutanix_password: diff --git a/plugins/modules/ntnx_clusters_v2.py b/plugins/modules/ntnx_clusters_v2.py index 92ac6297..b8795212 100644 --- a/plugins/modules/ntnx_clusters_v2.py +++ b/plugins/modules/ntnx_clusters_v2.py @@ -1,8 +1,9 @@ #!/usr/bin/python # -*- coding: utf-8 -*- -# Copyright: (c) 2021, Prem Karat +# Copyright: (c) 2024, Nutanix # GNU General Public License v3.0+ (see COPYING or https://www.gnu.org/licenses/gpl-3.0.txt) + from __future__ import absolute_import, division, print_function __metaclass__ = type @@ -13,6 +14,7 @@ short_description: Manage Nutanix clusters in Prism Central description: - This module allows you to create, update, and destroy Nutanix clusters using Prism Central. + - This module uses PC v4 APIs based SDKs version_added: "2.0.0" options: state: @@ -747,13 +749,12 @@ - nutanix.ncp.ntnx_credentials - nutanix.ncp.ntnx_operations_v2 author: - - Prem Karat (@premkarat) - Pradeepsingh Bhati (@bhati-pradeep) """ EXAMPLES = r""" - name: Create cluster - ntnx_clusters_v2: + nutanix.ncp.ntnx_clusters_v2: nutanix_host: nutanix_username: nutanix_password: @@ -771,7 +772,7 @@ domain_awareness_level: "DISK" - name: Create cluster with network configuration - ntnx_clusters_v2: + nutanix.ncp.ntnx_clusters_v2: nutanix_host: nutanix_username: nutanix_password: @@ -803,7 +804,7 @@ timeout: 1800 - name: Update cluster - ntnx_clusters_v2: + nutanix.ncp.ntnx_clusters_v2: nutanix_host: nutanix_username: nutanix_password: @@ -822,7 +823,7 @@ domain_awareness_level: "DISK" - name: Destroy cluster - ntnx_clusters_v2: + nutanix.ncp.ntnx_clusters_v2: nutanix_host: nutanix_username: nutanix_password: diff --git a/plugins/modules/ntnx_directory_services_info_v2.py b/plugins/modules/ntnx_directory_services_info_v2.py index d412fa56..d9fe978a 100644 --- a/plugins/modules/ntnx_directory_services_info_v2.py +++ b/plugins/modules/ntnx_directory_services_info_v2.py @@ -1,8 +1,9 @@ #!/usr/bin/python # -*- coding: utf-8 -*- -# Copyright: (c) 2021, Prem Karat +# Copyright: (c) 2024, Nutanix # GNU General Public License v3.0+ (see COPYING or https://www.gnu.org/licenses/gpl-3.0.txt) + from __future__ import absolute_import, division, print_function __metaclass__ = type @@ -15,6 +16,7 @@ description: - This module is used to fetch directory services. - Fetch a directory service using ext_id or multiple directory services. + - This module uses PC v4 APIs based SDKs options: ext_id: description: @@ -27,14 +29,13 @@ - nutanix.ncp.ntnx_credentials - nutanix.ncp.ntnx_info_v2 author: - - Prem Karat (@premkarat) - Gevorg Khachatryan (@Gevorg-Khachatryan-97) - Alaa Bishtawi (@alaa-bish) - George Ghawali (@george-ghawali) """ EXAMPLES = r""" - name: List all directory services - ntnx_directory_services_info_v2: + nutanix.ncp.ntnx_directory_services_info_v2: nutanix_host: "{{ ip }}" nutanix_username: "{{ username }}" nutanix_password: "{{ password }}" @@ -42,7 +43,7 @@ register: result - name: Fetch directory service by ext_id - ntnx_directory_services_info_v2: + nutanix.ncp.ntnx_directory_services_info_v2: nutanix_host: "{{ ip }}" nutanix_username: "{{ username }}" nutanix_password: "{{ password }}" @@ -51,7 +52,7 @@ register: result - name: List all directory services with filter - ntnx_directory_services_info_v2: + nutanix.ncp.ntnx_directory_services_info_v2: nutanix_host: "{{ ip }}" nutanix_username: "{{ username }}" nutanix_password: "{{ password }}" diff --git a/plugins/modules/ntnx_directory_services_v2.py b/plugins/modules/ntnx_directory_services_v2.py index 1d5061ce..8a954d8a 100644 --- a/plugins/modules/ntnx_directory_services_v2.py +++ b/plugins/modules/ntnx_directory_services_v2.py @@ -1,8 +1,9 @@ #!/usr/bin/python # -*- coding: utf-8 -*- -# Copyright: (c) 2021, Prem Karat +# Copyright: (c) 2024, Nutanix # GNU General Public License v3.0+ (see COPYING or https://www.gnu.org/licenses/gpl-3.0.txt) + from __future__ import absolute_import, division, print_function __metaclass__ = type @@ -14,6 +15,7 @@ version_added: "2.0.0" description: - This module is used to create, update and delete directory services in Nutanix PC. + - This module uses PC v4 APIs based SDKs options: state: description: @@ -137,7 +139,6 @@ - nutanix.ncp.ntnx_credentials - nutanix.ncp.ntnx_operations_v2 author: - - Prem Karat (@premkarat) - Gevorg Khachatryan (@Gevorg-Khachatryan-97) - Alaa Bishtawi (@alaa-bish) - George Ghawali (@george-ghawali) @@ -145,7 +146,7 @@ EXAMPLES = r""" - name: Create ACTIVE_DIRECTORY service - ntnx_directory_services_v2: + nutanix.ncp.ntnx_directory_services_v2: nutanix_host: "{{ ip }}" nutanix_username: "{{ username }}" nutanix_password: "{{ password }}" @@ -161,7 +162,7 @@ register: result - name: Update ACTIVE_DIRECTORY service - ntnx_directory_services_v2: + nutanix.ncp.ntnx_directory_services_v2: nutanix_host: "{{ ip }}" nutanix_username: "{{ username }}" nutanix_password: "{{ password }}" @@ -180,7 +181,7 @@ register: result - name: Delete ACTIVE_DIRECTORY service - ntnx_directory_services_v2: + nutanix.ncp.ntnx_directory_services_v2: nutanix_host: "{{ ip }}" nutanix_username: "{{ username }}" nutanix_password: "{{ password }}" diff --git a/plugins/modules/ntnx_discover_unconfigured_nodes_v2.py b/plugins/modules/ntnx_discover_unconfigured_nodes_v2.py index 6201fabc..1e08cae1 100644 --- a/plugins/modules/ntnx_discover_unconfigured_nodes_v2.py +++ b/plugins/modules/ntnx_discover_unconfigured_nodes_v2.py @@ -1,8 +1,9 @@ #!/usr/bin/python # -*- coding: utf-8 -*- -# Copyright: (c) 2021, Prem Karat +# Copyright: (c) 2024, Nutanix # GNU General Public License v3.0+ (see COPYING or https://www.gnu.org/licenses/gpl-3.0.txt) + from __future__ import absolute_import, division, print_function __metaclass__ = type @@ -12,6 +13,7 @@ short_description: Discover unconfigured nodes from Nutanix Prism Central description: - Discover unconfigured nodes from Nutanix Prism Central. + - This module uses PC v4 APIs based SDKs version_added: "2.0.0" options: address_type: @@ -84,14 +86,13 @@ - nutanix.ncp.ntnx_credentials - nutanix.ncp.ntnx_operations_v2 author: - - Prem Karat (@premkarat) - Alaa Bishtawi (@alaabishtawi) - George Ghawali (@george-ghawali) """ EXAMPLES = r""" - name: Discover unconfigured node - ntnx_discover_unconfigured_nodes_v2: + nutanix.ncp.ntnx_discover_unconfigured_nodes_v2: nutanix_host: nutanix_username: nutanix_password: diff --git a/plugins/modules/ntnx_floating_ips_info_v2.py b/plugins/modules/ntnx_floating_ips_info_v2.py index ada7efc6..6f53540b 100644 --- a/plugins/modules/ntnx_floating_ips_info_v2.py +++ b/plugins/modules/ntnx_floating_ips_info_v2.py @@ -1,8 +1,9 @@ #!/usr/bin/python # -*- coding: utf-8 -*- -# Copyright: (c) 2021, Prem Karat +# Copyright: (c) 2024, Nutanix # GNU General Public License v3.0+ (see COPYING or https://www.gnu.org/licenses/gpl-3.0.txt) + from __future__ import absolute_import, division, print_function __metaclass__ = type @@ -12,7 +13,9 @@ module: ntnx_floating_ips_info_v2 short_description: floating_ip info module version_added: 2.0.0 -description: 'Get floating_ips info' +description: + - Get floating_ips info + - This module uses PC v4 APIs based SDKs options: ext_id: description: @@ -26,20 +29,19 @@ - nutanix.ncp.ntnx_credentials - nutanix.ncp.ntnx_info_v2 author: - - Prem Karat (@premkarat) - Gevorg Khachatryan (@Gevorg-Khachatryan-97) - Alaa Bishtawi (@alaa-bish) """ EXAMPLES = r""" - name: List Floating_ips - ntnx_floating_ips_info_v2: + nutanix.ncp.ntnx_floating_ips_info_v2: nutanix_host: "{{ ip }}" nutanix_username: "{{ username }}" nutanix_password: "{{ password }}" validate_certs: false - name: Get floating_ips using ext_id - ntnx_floating_ips_info_v2: + nutanix.ncp.ntnx_floating_ips_info_v2: nutanix_host: "{{ ip }}" nutanix_username: "{{ username }}" nutanix_password: "{{ password }}" diff --git a/plugins/modules/ntnx_floating_ips_v2.py b/plugins/modules/ntnx_floating_ips_v2.py index 396f5628..f61dd6de 100644 --- a/plugins/modules/ntnx_floating_ips_v2.py +++ b/plugins/modules/ntnx_floating_ips_v2.py @@ -1,8 +1,9 @@ #!/usr/bin/python # -*- coding: utf-8 -*- -# Copyright: (c) 2021, Prem Karat +# Copyright: (c) 2024, Nutanix # GNU General Public License v3.0+ (see COPYING or https://www.gnu.org/licenses/gpl-3.0.txt) + from __future__ import absolute_import, division, print_function __metaclass__ = type @@ -16,6 +17,7 @@ - Create, Update, Delete floating_ips - For floating IP create and delete, module will return tasks status in response after operation. - For floating IP update, module will return floating IP info if C(wait) is true, else task status. + - This module uses PC v4 APIs based SDKs options: state: description: @@ -137,14 +139,13 @@ - nutanix.ncp.ntnx_credentials - nutanix.ncp.ntnx_operations_v2 author: - - Prem Karat (@premkarat) - Gevorg Khachatryan (@Gevorg-Khachatryan-97) - Alaa Bishtawi (@alaa-bish) """ EXAMPLES = r""" - name: Create floating ip using private IP in VPC - ntnx_floating_ips_v2: + nutanix.ncp.ntnx_floating_ips_v2: nutanix_host: "{{ ip }}" nutanix_username: "{{ username }}" nutanix_password: "{{ password }}" @@ -160,7 +161,7 @@ vpc_reference: "33dba56c-f123-4ec6-8b38-901e1cf716c2" - name: Delete floating IP - ntnx_floating_ips_v2: + nutanix.ncp.ntnx_floating_ips_v2: nutanix_host: "{{ ip }}" nutanix_username: "{{ username }}" nutanix_password: "{{ password }}" @@ -169,7 +170,7 @@ ext_id: "33dba56c-f123-4ec6-8b38-901e1cf716c2" - name: Create floating ip with external subnet and vm nic reference - ntnx_floating_ips_v2: + nutanix.ncp.ntnx_floating_ips_v2: nutanix_host: "{{ ip }}" nutanix_username: "{{ username }}" nutanix_password: "{{ password }}" diff --git a/plugins/modules/ntnx_gpus_info_v2.py b/plugins/modules/ntnx_gpus_info_v2.py index 30c4e1c5..878f1990 100644 --- a/plugins/modules/ntnx_gpus_info_v2.py +++ b/plugins/modules/ntnx_gpus_info_v2.py @@ -1,7 +1,7 @@ #!/usr/bin/python # -*- coding: utf-8 -*- -# Copyright: (c) 2021, Prem Karat +# Copyright: (c) 2024, Nutanix # GNU General Public License v3.0+ (see COPYING or https://www.gnu.org/licenses/gpl-3.0.txt) from __future__ import absolute_import, division, print_function @@ -14,6 +14,7 @@ short_description: Fetches GPU(s) information attached to VM in a Nutanix prism central. description: - This module fetches GPU(s) information attached to a virtual machine in a Nutanix Prism Central. + - This module uses PC v4 APIs based SDKs options: ext_id: description: @@ -30,14 +31,13 @@ - nutanix.ncp.ntnx_credentials - nutanix.ncp.ntnx_info_v2 author: - - Prem Karat (@premkarat) - George Ghawali (@george-ghawali) """ EXAMPLES = r""" - name: Fetch GPU information by GPU external ID and VM external ID - ntnx_gpus_info_v2: + nutanix.ncp.ntnx_gpus_info_v2: nutanix_host: "{{ ip }}" nutanix_username: "{{ username }}" nutanix_password: "{{ password }}" @@ -47,7 +47,7 @@ register: result - name: Fetch all GPUs attached to a VM - ntnx_gpus_info_v2: + nutanix.ncp.ntnx_gpus_info_v2: nutanix_host: "{{ ip }}" nutanix_username: "{{ username }}" nutanix_password: "{{ password }}" @@ -56,7 +56,7 @@ register: result - name: Fetch all GPUs attached to a VM using filter - ntnx_gpus_info_v2: + nutanix.ncp.ntnx_gpus_info_v2: nutanix_host: "{{ ip }}" nutanix_username: "{{ username }}" nutanix_password: "{{ password }}" diff --git a/plugins/modules/ntnx_gpus_v2.py b/plugins/modules/ntnx_gpus_v2.py index 9e9e0a42..adfeef3a 100644 --- a/plugins/modules/ntnx_gpus_v2.py +++ b/plugins/modules/ntnx_gpus_v2.py @@ -1,7 +1,7 @@ #!/usr/bin/python # -*- coding: utf-8 -*- -# Copyright: (c) 2021, Prem Karat +# Copyright: (c) 2024, Nutanix # GNU General Public License v3.0+ (see COPYING or https://www.gnu.org/licenses/gpl-3.0.txt) from __future__ import absolute_import, division, print_function @@ -14,6 +14,7 @@ short_description: Module to attach/detach GPUs to/from VMs in Nutanix prism central. description: - This module allows you to attach or detach GPUs to or from virtual machines in Nutanix Prism Central. + - This module uses PC v4 APIs based SDKs options: state: description: @@ -62,13 +63,12 @@ - nutanix.ncp.ntnx_credentials - nutanix.ncp.ntnx_operations_v2 author: - - Prem Karat (@premkarat) - George Ghawali (@george-ghawali) """ EXAMPLES = r""" - name: Attach GPU to VM - ntnx_gpus_v2: + nutanix.ncp.ntnx_gpus_v2: nutanix_host: "{{ ip }}" nutanix_username: "{{ username }}" nutanix_password: "{{ password }}" @@ -81,7 +81,7 @@ vendor: NVIDIA - name: Detach GPU from VM - ntnx_gpus_v2: + nutanix.ncp.ntnx_gpus_v2: nutanix_host: "{{ ip }}" nutanix_username: "{{ username }}" nutanix_password: "{{ password }}" diff --git a/plugins/modules/ntnx_hosts_info_v2.py b/plugins/modules/ntnx_hosts_info_v2.py index 3e3469e7..3b6c5c8d 100644 --- a/plugins/modules/ntnx_hosts_info_v2.py +++ b/plugins/modules/ntnx_hosts_info_v2.py @@ -1,8 +1,9 @@ #!/usr/bin/python # -*- coding: utf-8 -*- -# Copyright: (c) 2021, Prem Karat +# Copyright: (c) 2024, Nutanix # GNU General Public License v3.0+ (see COPYING or https://www.gnu.org/licenses/gpl-3.0.txt) + from __future__ import absolute_import, division, print_function __metaclass__ = type @@ -16,6 +17,7 @@ - This module retrieves information about Nutanix hosts from PC. - Fetch particular host info using external ID. - Fetch multiple hosts info with/without using filters, limit, etc. + - This module uses PC v4 APIs based SDKs options: ext_id: description: @@ -31,13 +33,12 @@ - nutanix.ncp.ntnx_credentials - nutanix.ncp.ntnx_info_v2 author: - - Prem Karat (@premkarat) - Pradeepsingh Bhati (@bhati-pradeep) """ EXAMPLES = r""" - name: Get host by external ID - ntnx_hosts_info_v2: + nutanix.ncp.ntnx_hosts_info_v2: nutanix_host: nutanix_username: nutanix_password: @@ -45,7 +46,7 @@ register: result - name: Get hosts by cluster external ID - ntnx_hosts_info_v2: + nutanix.ncp.ntnx_hosts_info_v2: nutanix_host: nutanix_username: nutanix_password: @@ -53,14 +54,14 @@ register: result - name: List all hosts - ntnx_hosts_info_v2: + nutanix.ncp.ntnx_hosts_info_v2: nutanix_host: nutanix_username: nutanix_password: register: result - name: List all hosts with filter - ntnx_hosts_info_v2: + nutanix.ncp.ntnx_hosts_info_v2: nutanix_host: nutanix_username: nutanix_password: diff --git a/plugins/modules/ntnx_image_placement_policies_info_v2.py b/plugins/modules/ntnx_image_placement_policies_info_v2.py index a5cb77f6..8f5cbe40 100644 --- a/plugins/modules/ntnx_image_placement_policies_info_v2.py +++ b/plugins/modules/ntnx_image_placement_policies_info_v2.py @@ -1,8 +1,9 @@ #!/usr/bin/python # -*- coding: utf-8 -*- -# Copyright: (c) 2021, Prem Karat +# Copyright: (c) 2024, Nutanix # GNU General Public License v3.0+ (see COPYING or https://www.gnu.org/licenses/gpl-3.0.txt) + from __future__ import absolute_import, division, print_function __metaclass__ = type @@ -15,6 +16,7 @@ - Pradeepsingh Bhati (@bhati-pradeep) description: - This module fetches information about Nutanix PC image placement policies. + - This module uses PC v4 APIs based SDKs options: ext_id: description: @@ -28,7 +30,7 @@ EXAMPLES = r""" - name: Get image placement policy by ID - ntnx_image_placement_policies_info_v2: + nutanix.ncp.ntnx_image_placement_policies_info_v2: nutanix_host: "{{ ip }}" nutanix_username: "{{ username }}" nutanix_password: "{{ password }}" @@ -36,7 +38,7 @@ ext_id: "policy-12345" - name: Get all image placement policies - ntnx_image_placement_policies_info_v2: + nutanix.ncp.ntnx_image_placement_policies_info_v2: nutanix_host: "{{ ip }}" nutanix_username: "{{ username }}" nutanix_password: "{{ password }}" diff --git a/plugins/modules/ntnx_image_placement_policies_v2.py b/plugins/modules/ntnx_image_placement_policies_v2.py index 4e5048f8..f2bda2cd 100644 --- a/plugins/modules/ntnx_image_placement_policies_v2.py +++ b/plugins/modules/ntnx_image_placement_policies_v2.py @@ -1,7 +1,7 @@ #!/usr/bin/python # -*- coding: utf-8 -*- -# Copyright: (c) 2021, Prem Karat +# Copyright: (c) 2024, Nutanix # GNU General Public License v3.0+ (see COPYING or https://www.gnu.org/licenses/gpl-3.0.txt) from __future__ import absolute_import, division, print_function @@ -14,6 +14,7 @@ description: - This module allows you to create, update, and delete image placement policies in Nutanix Prism Central. - This module allows you to suspend and resume image placement policies in Nutanix Prism Central. + - This module uses PC v4 APIs based SDKs version_added: "2.0.0" author: - Pradeepsingh Bhati (@bhati-pradeep) @@ -126,7 +127,7 @@ EXAMPLES = r""" - name: Create an image placement policy - ntnx_image_placement_policies_v2: + nutanix.ncp.ntnx_image_placement_policies_v2: nutanix_host: "{{ ip }}" nutanix_username: "{{ username }}" nutanix_password: "{{ password }}" @@ -149,7 +150,7 @@ wait: true - name: Delete an image placement policy - ntnx_image_placement_policies_v2: + nutanix.ncp.ntnx_image_placement_policies_v2: nutanix_host: "{{ ip }}" nutanix_username: "{{ username }}" nutanix_password: "{{ password }}" diff --git a/plugins/modules/ntnx_images_info_v2.py b/plugins/modules/ntnx_images_info_v2.py index 907cb322..7283e30f 100644 --- a/plugins/modules/ntnx_images_info_v2.py +++ b/plugins/modules/ntnx_images_info_v2.py @@ -1,8 +1,9 @@ #!/usr/bin/python # -*- coding: utf-8 -*- -# Copyright: (c) 2021, Prem Karat +# Copyright: (c) 2024, Nutanix # GNU General Public License v3.0+ (see COPYING or https://www.gnu.org/licenses/gpl-3.0.txt) + from __future__ import absolute_import, division, print_function __metaclass__ = type @@ -13,9 +14,9 @@ description: - This module fetches information about Nutanix images. - The module can fetch information about all images or a specific image. + - This module uses PC v4 APIs based SDKs version_added: "2.0.0" author: - - Prem Karat (@premkarat) - Pradeepsingh Bhati (@bhati-pradeep) options: ext_id: @@ -30,14 +31,14 @@ EXAMPLES = r""" - name: Fetch information about all images - ntnx_images_info_v2: + nutanix.ncp.ntnx_images_info_v2: nutanix_host: "{{ ip }}" nutanix_username: "{{ username }}" nutanix_password: "{{ password }}" validate_certs: false - name: Fetch information about a specific image - ntnx_images_info_v2: + nutanix.ncp.ntnx_images_info_v2: ext_id: abc123 nutanix_host: "{{ ip }}" nutanix_username: "{{ username }}" diff --git a/plugins/modules/ntnx_images_v2.py b/plugins/modules/ntnx_images_v2.py index e58de0ce..f6a3e8ea 100644 --- a/plugins/modules/ntnx_images_v2.py +++ b/plugins/modules/ntnx_images_v2.py @@ -1,8 +1,9 @@ #!/usr/bin/python # -*- coding: utf-8 -*- -# Copyright: (c) 2021, Prem Karat +# Copyright: (c) 2024, Nutanix # GNU General Public License v3.0+ (see COPYING or https://www.gnu.org/licenses/gpl-3.0.txt) + from __future__ import absolute_import, division, print_function __metaclass__ = type @@ -13,9 +14,9 @@ short_description: Manage Nutanix Prism Central images. description: - This module allows you to create, update, and delete images in Nutanix. + - This module uses PC v4 APIs based SDKs version_added: "2.0.0" author: - - Prem Karat (@premkarat) - Pradeepsingh Bhati (@bhati-pradeep) options: state: @@ -163,7 +164,7 @@ EXAMPLES = r""" - name: Create an image - ntnx_images_v2: + nutanix.ncp.ntnx_images_v2: nutanix_host: "{{ ip }}" nutanix_username: "{{ username }}" nutanix_password: "{{ password }}" @@ -191,7 +192,7 @@ state: present - name: Update an image - ntnx_images_v2: + nutanix.ncp.ntnx_images_v2: nutanix_host: "{{ ip }}" nutanix_username: "{{ username }}" nutanix_password: "{{ password }}" @@ -202,7 +203,7 @@ state: present - name: Delete an image - ntnx_images_v2: + nutanix.ncp.ntnx_images_v2: nutanix_host: "{{ ip }}" nutanix_username: "{{ username }}" nutanix_password: "{{ password }}" diff --git a/plugins/modules/ntnx_nodes_network_info_v2.py b/plugins/modules/ntnx_nodes_network_info_v2.py index f49bde99..a8bc90f3 100644 --- a/plugins/modules/ntnx_nodes_network_info_v2.py +++ b/plugins/modules/ntnx_nodes_network_info_v2.py @@ -1,8 +1,9 @@ #!/usr/bin/python # -*- coding: utf-8 -*- -# Copyright: (c) 2021, Prem Karat +# Copyright: (c) 2024, Nutanix # GNU General Public License v3.0+ (see COPYING or https://www.gnu.org/licenses/gpl-3.0.txt) + from __future__ import absolute_import, division, print_function __metaclass__ = type @@ -12,6 +13,7 @@ short_description: Get netowrk information for uncofigured cluster nodes description: - This module allows you to Get netowrk information for uncofigured cluster nodes. + - This module uses PC v4 APIs based SDKs version_added: "2.0.0" options: cluster_ext_id: @@ -178,15 +180,107 @@ - nutanix.ncp.ntnx_credentials - nutanix.ncp.ntnx_operations_v2 author: - - Prem Karat (@premkarat) - Alaa Bishtawi (@alaabishtawi) - George Ghawali (@george-ghawali) """ EXAMPLES = r""" +- name: Get network information for uncofigured cluster nodes + nutanix.ncp.ntnx_nodes_network_info_v2: + nutanix_host: + nutanix_username: + nutanix_password: + cluster_ext_id: 00061de6-1234-4321-1122-ac1f6b6f97e2 + node_list: + - cvm_ip: + ipv4: + value: "10.0.0.1" + hypervisor_ip: + ipv4: + value: "10.0.0.2" + request_type: "expand_cluster" """ RETURN = r""" +response: + description: + - Response for getting network information for uncofigured cluster nodes. + type: dict + returned: always + sample: + { + "ext_id": "54fbdaf3-972d-4d1c-4413-005a9fe1fc1d", + "links": null, + "response": { + "network_info": { + "hci": [ + { + "hypervisor_type": "AHV", + "name": "br0", + "networks": [ + "Management" + ] + } + ], + "so": [ + { + "hypervisor_type": "AHV", + "name": "br0", + "networks": [ + "Management" + ] + } + ] + }, + "uplinks": [ + { + "cvm_ip": { + "ipv4": { + "prefix_length": 32, + "value": "10.39.6.77" + }, + "ipv6": null + }, + "uplink_list": [ + { + "mac": "00:e0:ed:36:41:a8", + "name": "eth2" + }, + { + "mac": "0c:c4:7a:c7:c2:0b", + "name": "eth1" + }, + { + "mac": "00:e0:ed:36:41:a9", + "name": "eth3" + }, + { + "mac": "0c:c4:7a:c7:c2:0a", + "name": "eth0" + } + ] + } + ], + "warnings": null + }, + "task_response_type": "NETWORKING_DETAILS", + "tenant_id": null + } +error: + description: The error message if an error occurs. + type: str + returned: when an error occurs + +cluster_ext_id: + description: The external ID of the cluster. + type: str + returned: always + +task_ext_id: + description: The external ID of the task. + type: str + returned: always + """ diff --git a/plugins/modules/ntnx_operations_info_v2.py b/plugins/modules/ntnx_operations_info_v2.py index 4286d33a..a25cf4a8 100644 --- a/plugins/modules/ntnx_operations_info_v2.py +++ b/plugins/modules/ntnx_operations_info_v2.py @@ -1,8 +1,9 @@ #!/usr/bin/python # -*- coding: utf-8 -*- -# Copyright: (c) 2021, Prem Karat +# Copyright: (c) 2024, Nutanix # GNU General Public License v3.0+ (see COPYING or https://www.gnu.org/licenses/gpl-3.0.txt) + from __future__ import absolute_import, division, print_function __metaclass__ = type @@ -15,6 +16,7 @@ description: - This module is used to get operations info - It can be used to get all operations info or specific permission info using external id + - This module uses PC v4 APIs based SDKs options: ext_id: description: @@ -25,7 +27,6 @@ - nutanix.ncp.ntnx_credentials - nutanix.ncp.ntnx_info_v2 author: - - Prem Karat (@premkarat) - Gevorg Khachatryan (@Gevorg-Khachatryan-97) - Alaa Bishtawi (@alaa-bish) - George Ghawali (@george-ghawali) @@ -33,7 +34,7 @@ EXAMPLES = r""" - name: List all operations - ntnx_operations_info_v2: + nutanix.ncp.ntnx_operations_info_v2: nutanix_host: "{{ ip }}" nutanix_username: "{{ username }}" nutanix_password: "{{ password }}" @@ -41,7 +42,7 @@ register: result - name: Fetch permission info using external id - ntnx_operations_info_v2: + nutanix.ncp.ntnx_operations_info_v2: nutanix_host: "{{ ip }}" nutanix_username: "{{ username }}" nutanix_password: "{{ password }}" @@ -50,7 +51,7 @@ register: result - name: List operations using filter criteria - ntnx_operations_info_v2: + nutanix.ncp.ntnx_operations_info_v2: nutanix_host: "{{ ip }}" nutanix_username: "{{ username }}" nutanix_password: "{{ password }}" diff --git a/plugins/modules/ntnx_pbrs_info_v2.py b/plugins/modules/ntnx_pbrs_info_v2.py index 65b6f4e4..82fa5b64 100644 --- a/plugins/modules/ntnx_pbrs_info_v2.py +++ b/plugins/modules/ntnx_pbrs_info_v2.py @@ -1,8 +1,9 @@ #!/usr/bin/python # -*- coding: utf-8 -*- -# Copyright: (c) 2021, Prem Karat +# Copyright: (c) 2024, Nutanix # GNU General Public License v3.0+ (see COPYING or https://www.gnu.org/licenses/gpl-3.0.txt) + from __future__ import absolute_import, division, print_function __metaclass__ = type @@ -16,6 +17,7 @@ - Fetch a single or list of all routing policies - if ext_id is provided, it will return the routing policy info - if ext_id is not provided, it will return the list of all routing policies + - This module uses PC v4 APIs based SDKs options: ext_id: description: @@ -25,24 +27,23 @@ - nutanix.ncp.ntnx_credentials - nutanix.ncp.ntnx_info_v2 author: - - Prem Karat (@premkarat) - Gevorg Khachatryan (@Gevorg-Khachatryan-97) - Alaa Bishtawi (@alaa-bish) """ EXAMPLES = r""" - name: List all pbrs - ntnx_pbrs_info_v2: + nutanix.ncp.ntnx_pbrs_info_v2: register: result ignore_errors: true - name: List pbrs using name filter criteria - ntnx_pbrs_info_v2: + nutanix.ncp.ntnx_pbrs_info_v2: filter: "name eq 'test_policy_name'" register: result ignore_errors: true - name: List pbrs using ext_id - ntnx_pbrs_info_v2: + nutanix.ncp.ntnx_pbrs_info_v2: ext_id: '47ca25c3-9d27-4b94-b6b1-dfa5b25660b4' register: result ignore_errors: true diff --git a/plugins/modules/ntnx_pbrs_v2.py b/plugins/modules/ntnx_pbrs_v2.py index ab342072..5f7d4e97 100644 --- a/plugins/modules/ntnx_pbrs_v2.py +++ b/plugins/modules/ntnx_pbrs_v2.py @@ -1,8 +1,9 @@ #!/usr/bin/python # -*- coding: utf-8 -*- -# Copyright: (c) 2021, Prem Karat +# Copyright: (c) 2024, Nutanix # GNU General Public License v3.0+ (see COPYING or https://www.gnu.org/licenses/gpl-3.0.txt) + from __future__ import absolute_import, division, print_function __metaclass__ = type @@ -12,7 +13,9 @@ module: ntnx_pbrs_v2 short_description: Module for create, update and delete of Policy based routing. version_added: 2.0.0 -description: "Create, Update, Delete Routing Policies" +description: + - Create, Update, Delete Routing Policies + - This module uses PC v4 APIs based SDKs options: state: description: @@ -377,14 +380,13 @@ - nutanix.ncp.ntnx_credentials - nutanix.ncp.ntnx_operations_v2 author: - - Prem Karat (@premkarat) - Gevorg Khachatryan (@Gevorg-Khachatryan-97) - Alaa Bishtawi (@alaa-bish) """ EXAMPLES = r""" - name: Create PBR with vpc, custom source network, external destination, reroute action and udp port rangelist - ntnx_pbrs_v2: + nutanix.ncp.ntnx_pbrs_v2: nutanix_host: "{{ ip }}" nutanix_username: "{{ username }}" nutanix_password: "{{ password }}" @@ -427,7 +429,7 @@ ignore_errors: true - name: Create a routing policy for a VPC to permit certain source for certain destination - ntnx_pbrs_v2: + nutanix.ncp.ntnx_pbrs_v2: nutanix_host: "{{ ip }}" nutanix_username: "{{ username }}" nutanix_password: "{{ password }}" @@ -459,7 +461,7 @@ - name: Create PBR with vpc, any source, any destination, any protocol and deny action - ntnx_pbrs_v2: + nutanix.ncp.ntnx_pbrs_v2: nutanix_host: "{{ ip }}" nutanix_username: "{{ username }}" nutanix_password: "{{ password }}" @@ -481,7 +483,7 @@ register: result - name: Update PBR name ,description, priority - ntnx_pbrs_v2: + nutanix.ncp.ntnx_pbrs_v2: state: present ext_id: "33dba56c-f123-4ec6-8b38-901e1cf716c2" priority: "156" @@ -491,7 +493,7 @@ ignore_errors: true - name: Delete created pbr - ntnx_pbrs_v2: + nutanix.ncp.ntnx_pbrs_v2: nutanix_host: "{{ ip }}" nutanix_username: "{{ username }}" nutanix_password: "{{ password }}" diff --git a/plugins/modules/ntnx_pc_registration_v2.py b/plugins/modules/ntnx_pc_registration_v2.py index 5d809ead..27760c7e 100644 --- a/plugins/modules/ntnx_pc_registration_v2.py +++ b/plugins/modules/ntnx_pc_registration_v2.py @@ -1,8 +1,9 @@ #!/usr/bin/python # -*- coding: utf-8 -*- -# Copyright: (c) 2021, Prem Karat +# Copyright: (c) 2024, Nutanix # GNU General Public License v3.0+ (see COPYING or https://www.gnu.org/licenses/gpl-3.0.txt) + from __future__ import absolute_import, division, print_function __metaclass__ = type @@ -15,6 +16,7 @@ description: - Registers a domain manager (Prism Central) instance to other entities like PE and PC - Unregisteration of a domain manager (Prism Central) instance is not supported + - This module uses PC v4 APIs based SDKs options: wait: description: Wait for the operation to complete. @@ -218,13 +220,12 @@ - nutanix.ncp.ntnx_credentials - nutanix.ncp.ntnx_operations_v2 author: - - Prem Karat (@premkarat) - George Ghawali (@george-ghawali) """ EXAMPLES = r""" - name: PE PC registration - ntnx_pc_registration_v2: + nutanix.ncp.ntnx_pc_registration_v2: nutanix_host: nutanix_username: nutanix_password: diff --git a/plugins/modules/ntnx_recovery_point_replicate_v2.py b/plugins/modules/ntnx_recovery_point_replicate_v2.py index 9ecc1708..a9608b73 100644 --- a/plugins/modules/ntnx_recovery_point_replicate_v2.py +++ b/plugins/modules/ntnx_recovery_point_replicate_v2.py @@ -1,8 +1,9 @@ #!/usr/bin/python # -*- coding: utf-8 -*- -# Copyright: (c) 2021, Prem Karat +# Copyright: (c) 2024, Nutanix # GNU General Public License v3.0+ (see COPYING or https://www.gnu.org/licenses/gpl-3.0.txt) + from __future__ import absolute_import, division, print_function __metaclass__ = type @@ -14,6 +15,7 @@ version_added: 2.0.0 description: - Replicate recovery points using external ID + - This module uses PC v4 APIs based SDKs options: ext_id: description: @@ -33,13 +35,12 @@ - nutanix.ncp.ntnx_credentials - nutanix.ncp.ntnx_operations_v2 author: - - Prem Karat (@premkarat) - Abhinav Bansal (@abhinavbansal29) - Pradeepsingh Bhati (@bhati-pradeep) """ EXAMPLES = r""" - name: Replicate a Recovery Point - ntnx_recovery_point_replicate_v2: + nutanix.ncp.ntnx_recovery_point_replicate_v2: nutanix_host: "{{ ip }}" nutanix_username: "{{ username }}" nutanix_password: "{{ password }}" diff --git a/plugins/modules/ntnx_recovery_point_restore_v2.py b/plugins/modules/ntnx_recovery_point_restore_v2.py index 3f9ec2e4..07075ecf 100644 --- a/plugins/modules/ntnx_recovery_point_restore_v2.py +++ b/plugins/modules/ntnx_recovery_point_restore_v2.py @@ -1,8 +1,9 @@ #!/usr/bin/python # -*- coding: utf-8 -*- -# Copyright: (c) 2021, Prem Karat +# Copyright: (c) 2024, Nutanix # GNU General Public License v3.0+ (see COPYING or https://www.gnu.org/licenses/gpl-3.0.txt) + from __future__ import absolute_import, division, print_function __metaclass__ = type @@ -12,7 +13,9 @@ module: ntnx_recovery_point_restore_v2 short_description: Restore recovery points, Creates a clone of the VM/VG from the selected recovery point version_added: 2.0.0 -description: "Restore recovery points using external ID" +description: + - Restore recovery points using external ID + - This module uses PC v4 APIs based SDKs options: ext_id: description: @@ -61,13 +64,12 @@ - nutanix.ncp.ntnx_credentials - nutanix.ncp.ntnx_operations_v2 author: - - Prem Karat (@premkarat) - Abhinav Bansal (@abhinavbansal29) - Pradeepsingh Bhati (@bhati-pradeep) """ EXAMPLES = r""" - name: Restore one of the VM recovery point from a recovery point - ntnx_recovery_point_restore_v2: + nutanix.ncp.ntnx_recovery_point_restore_v2: nutanix_host: "{{ ip }}" nutanix_username: "{{ username }}" nutanix_password: "{{ password }}" diff --git a/plugins/modules/ntnx_recovery_points_info_v2.py b/plugins/modules/ntnx_recovery_points_info_v2.py index a3c660c2..4ceddfd4 100644 --- a/plugins/modules/ntnx_recovery_points_info_v2.py +++ b/plugins/modules/ntnx_recovery_points_info_v2.py @@ -1,8 +1,9 @@ #!/usr/bin/python # -*- coding: utf-8 -*- -# Copyright: (c) 2021, Prem Karat +# Copyright: (c) 2024, Nutanix # GNU General Public License v3.0+ (see COPYING or https://www.gnu.org/licenses/gpl-3.0.txt) + from __future__ import absolute_import, division, print_function __metaclass__ = type @@ -15,6 +16,7 @@ description: - Fetch specific recovery point info using external ID - Fetch list of multiple recovery points info if external ID is not provided with optional filters + - This module uses PC v4 APIs based SDKs options: ext_id: description: @@ -24,13 +26,12 @@ - nutanix.ncp.ntnx_credentials - nutanix.ncp.ntnx_info_v2 author: - - Prem Karat (@premkarat) - Abhinav Bansal (@abhinavbansal29) - Pradeepsingh Bhati (@bhati-pradeep) """ EXAMPLES = r""" - name: Fetch recovery point using external id - ntnx_recovery_points_info_v2: + nutanix.ncp.ntnx_recovery_points_info_v2: nutanix_host: "{{ ip }}" nutanix_username: "{{ username }}" nutanix_password: "{{ password }}" @@ -38,14 +39,14 @@ register: result - name: List all recovery points - ntnx_recovery_points_info_v2: + nutanix.ncp.ntnx_recovery_points_info_v2: nutanix_host: "{{ ip }}" nutanix_username: "{{ username }}" nutanix_password: "{{ password }}" register: result - name: Fetch details for a Recovery Point using Filters - ntnx_recovery_points_info_v2: + nutanix.ncp.ntnx_recovery_points_info_v2: nutanix_host: "{{ ip }}" nutanix_username: "{{ username }}" nutanix_password: "{{ password }}" diff --git a/plugins/modules/ntnx_recovery_points_v2.py b/plugins/modules/ntnx_recovery_points_v2.py index 2a8758ee..4f30c436 100644 --- a/plugins/modules/ntnx_recovery_points_v2.py +++ b/plugins/modules/ntnx_recovery_points_v2.py @@ -1,8 +1,9 @@ #!/usr/bin/python # -*- coding: utf-8 -*- -# Copyright: (c) 2021, Prem Karat +# Copyright: (c) 2024, Nutanix # GNU General Public License v3.0+ (see COPYING or https://www.gnu.org/licenses/gpl-3.0.txt) + from __future__ import absolute_import, division, print_function __metaclass__ = type @@ -12,7 +13,9 @@ module: ntnx_recovery_points_v2 short_description: Create, Update, Delete recovery points version_added: 2.0.0 -description: Create, Update Expiry Date, Delete recovery points +description: + - Create, Update Expiry Date, Delete recovery points + - This module uses PC v4 APIs based SDKs options: state: description: @@ -110,14 +113,13 @@ - nutanix.ncp.ntnx_credentials - nutanix.ncp.ntnx_operations_v2 author: - - Prem Karat (@premkarat) - Abhinav Bansal (@abhinavbansal29) - Pradeepsingh Bhati (@bhati-pradeep) """ EXAMPLES = r""" - name: Create Recovery Point for 2 VMs and 2 Volume Groups - ntnx_recovery_points_v2: + nutanix.ncp.ntnx_recovery_points_v2: nutanix_host: "{{ ip }}" nutanix_username: "{{ username }}" nutanix_password: "{{ password }}" @@ -134,7 +136,7 @@ - volume_group_ext_id: "2d3e4f5a-6b7c-8d9e-0f1a-2b3c4d5e6f7g" - name: Update a Recovery Point - ntnx_recovery_points_v2: + nutanix.ncp.ntnx_recovery_points_v2: nutanix_host: "{{ ip }}" nutanix_username: "{{ username }}" nutanix_password: "{{ password }}" @@ -143,7 +145,7 @@ expiration_time: "2024-11-30T14:15:22Z" - name: Delete a Recovery Point - ntnx_recovery_points_v2: + nutanix.ncp.ntnx_recovery_points_v2: nutanix_host: "{{ ip }}" nutanix_username: "{{ username }}" nutanix_password: "{{ password }}" diff --git a/plugins/modules/ntnx_roles_info_v2.py b/plugins/modules/ntnx_roles_info_v2.py index dbe7bd21..66d81d46 100644 --- a/plugins/modules/ntnx_roles_info_v2.py +++ b/plugins/modules/ntnx_roles_info_v2.py @@ -1,8 +1,9 @@ #!/usr/bin/python # -*- coding: utf-8 -*- -# Copyright: (c) 2021, Prem Karat +# Copyright: (c) 2024, Nutanix # GNU General Public License v3.0+ (see COPYING or https://www.gnu.org/licenses/gpl-3.0.txt) + from __future__ import absolute_import, division, print_function __metaclass__ = type @@ -12,7 +13,9 @@ module: ntnx_roles_info_v2 short_description: Get roles info version_added: 2.0.0 -description: Get roles info using roles external ID or list all roles +description: + - Get roles info using roles external ID or list all roles + - This module uses PC v4 APIs based SDKs options: ext_id: description: @@ -24,14 +27,13 @@ - nutanix.ncp.ntnx_credentials - nutanix.ncp.ntnx_info_v2 author: - - Prem Karat (@premkarat) - Gevorg Khachatryan (@Gevorg-Khachatryan-97) - Alaa Bishtawi (@alaa-bish) - George Ghawali (@george-ghawali) """ EXAMPLES = r""" - name: List roles - ntnx_roles_info_v2: + nutanix.ncp.ntnx_roles_info_v2: nutanix_host: "{{ ip }}" nutanix_username: "{{ username }}" nutanix_password: "{{ password }}" @@ -39,7 +41,7 @@ register: result - name: Fetch role using uuid criteria - ntnx_roles_info_v2: + nutanix.ncp.ntnx_roles_info_v2: nutanix_host: "{{ ip }}" nutanix_username: "{{ username }}" nutanix_password: "{{ password }}" @@ -48,7 +50,7 @@ register: result - name: List roles using filter - ntnx_roles_info_v2: + nutanix.ncp.ntnx_roles_info_v2: nutanix_host: "{{ ip }}" nutanix_username: "{{ username }}" nutanix_password: "{{ password }}" diff --git a/plugins/modules/ntnx_roles_v2.py b/plugins/modules/ntnx_roles_v2.py index 8232d50e..250555c9 100644 --- a/plugins/modules/ntnx_roles_v2.py +++ b/plugins/modules/ntnx_roles_v2.py @@ -1,8 +1,9 @@ #!/usr/bin/python # -*- coding: utf-8 -*- -# Copyright: (c) 2021, Prem Karat +# Copyright: (c) 2024, Nutanix # GNU General Public License v3.0+ (see COPYING or https://www.gnu.org/licenses/gpl-3.0.txt) + from __future__ import absolute_import, division, print_function __metaclass__ = type @@ -12,6 +13,7 @@ short_description: Create, update, and delete roles. description: - This module allows you to create, update, and delete roles. + - This module uses PC v4 APIs based SDKs version_added: "2.0.0" options: state: @@ -60,7 +62,6 @@ - nutanix.ncp.ntnx_credentials - nutanix.ncp.ntnx_operations_v2 author: - - Prem Karat (@premkarat) - Pradeepsingh Bhati (@bhati-pradeep) - Alaa Bishtawi (@alaa-bish) - George Ghawali (@george-ghawali) @@ -68,7 +69,7 @@ EXAMPLES = r""" - name: Create roles with operations - ntnx_roles_v2: + nutanix.ncp.ntnx_roles_v2: nutanix_host: "{{ ip }}" nutanix_username: "{{ username }}" nutanix_password: "{{ password }}" @@ -81,7 +82,7 @@ - "0194fbfd-a5d1-49f8-46f4-e4b01d0abe47" - name: Update all fields - ntnx_roles_v2: + nutanix.ncp.ntnx_roles_v2: nutanix_host: "{{ ip }}" nutanix_username: "{{ username }}" nutanix_password: "{{ password }}" @@ -94,7 +95,7 @@ - "0194fbfd-a5d1-49f8-46f4-e4b01d0abe47" - name: delete role - ntnx_roles_v2: + nutanix.ncp.ntnx_roles_v2: nutanix_host: "{{ ip }}" nutanix_username: "{{ username }}" nutanix_password: "{{ password }}" diff --git a/plugins/modules/ntnx_route_tables_info_v2.py b/plugins/modules/ntnx_route_tables_info_v2.py index 9fe65a1a..3c3e39b7 100644 --- a/plugins/modules/ntnx_route_tables_info_v2.py +++ b/plugins/modules/ntnx_route_tables_info_v2.py @@ -1,8 +1,9 @@ #!/usr/bin/python # -*- coding: utf-8 -*- -# Copyright: (c) 2021, Prem Karat +# Copyright: (c) 2024, Nutanix # GNU General Public License v3.0+ (see COPYING or https://www.gnu.org/licenses/gpl-3.0.txt) + from __future__ import absolute_import, division, print_function __metaclass__ = type @@ -12,7 +13,9 @@ module: ntnx_route_tables_info_v2 short_description: Route tables info module version_added: 2.0.0 -description: This module fetches route tables information +description: + - This module fetches route tables information + - This module uses PC v4 APIs based SDKs options: ext_id: description: @@ -22,14 +25,13 @@ - nutanix.ncp.ntnx_credentials - nutanix.ncp.ntnx_info_v2 author: - - Prem Karat (@premkarat) - Gevorg Khachatryan (@Gevorg-Khachatryan-97) - Alaa Bishtawi (@alaa-bish) - George Ghawali (@george-ghawali) """ EXAMPLES = r""" - name: List all route tables - ntnx_route_tables_info_v2: + nutanix.ncp.ntnx_route_tables_info_v2: nutanix_host: "{{ ip }}" nutanix_username: "{{ username }}" nutanix_password: "{{ password }}" @@ -37,7 +39,7 @@ register: route_tables - name: Fetch route table by external_id - ntnx_route_tables_info_v2: + nutanix.ncp.ntnx_route_tables_info_v2: nutanix_host: "{{ ip }}" nutanix_username: "{{ username }}" nutanix_password: "{{ password }}" @@ -46,7 +48,7 @@ register: route_table - name: List all route tables with filter - ntnx_route_tables_info_v2: + nutanix.ncp.ntnx_route_tables_info_v2: nutanix_host: "{{ ip }}" nutanix_username: "{{ username }}" nutanix_password: "{{ password }}" diff --git a/plugins/modules/ntnx_routes_info_v2.py b/plugins/modules/ntnx_routes_info_v2.py index 83105a39..21c43c03 100644 --- a/plugins/modules/ntnx_routes_info_v2.py +++ b/plugins/modules/ntnx_routes_info_v2.py @@ -1,8 +1,9 @@ #!/usr/bin/python # -*- coding: utf-8 -*- -# Copyright: (c) 2021, Prem Karat +# Copyright: (c) 2024, Nutanix # GNU General Public License v3.0+ (see COPYING or https://www.gnu.org/licenses/gpl-3.0.txt) + from __future__ import absolute_import, division, print_function __metaclass__ = type @@ -12,7 +13,9 @@ module: ntnx_routes_info_v2 short_description: Routes info module version_added: 2.0.0 -description: This module fetches routes information +description: + - This module fetches routes information + - This module uses PC v4 APIs based SDKs options: ext_id: description: @@ -27,14 +30,13 @@ - nutanix.ncp.ntnx_credentials - nutanix.ncp.ntnx_info_v2 author: - - Prem Karat (@premkarat) - Gevorg Khachatryan (@Gevorg-Khachatryan-97) - Alaa Bishtawi (@alaa-bish) - George Ghawali (@george-ghawali) """ EXAMPLES = r""" - name: List all routes - ntnx_routes_info_v2: + nutanix.ncp.ntnx_routes_info_v2: nutanix_host: "{{ ip }}" nutanix_username: "{{ username }}" nutanix_password: "{{ password }}" @@ -43,7 +45,7 @@ register: result - name: Fetch route by external ID - ntnx_routes_info_v2: + nutanix.ncp.ntnx_routes_info_v2: nutanix_host: "{{ ip }}" nutanix_username: "{{ username }}" nutanix_password: "{{ password }}" @@ -54,7 +56,7 @@ ignore_errors: true - name: List all routes with filter - ntnx_routes_info_v2: + nutanix.ncp.ntnx_routes_info_v2: nutanix_host: "{{ ip }}" nutanix_username: "{{ username }}" nutanix_password: "{{ password }}" @@ -64,7 +66,7 @@ register: result - name: List all routes with limit - ntnx_routes_info_v2: + nutanix.ncp.ntnx_routes_info_v2: nutanix_host: "{{ ip }}" nutanix_username: "{{ username }}" nutanix_password: "{{ password }}" diff --git a/plugins/modules/ntnx_routes_v2.py b/plugins/modules/ntnx_routes_v2.py index 25084d7e..e93445fb 100644 --- a/plugins/modules/ntnx_routes_v2.py +++ b/plugins/modules/ntnx_routes_v2.py @@ -1,8 +1,9 @@ #!/usr/bin/python # -*- coding: utf-8 -*- -# Copyright: (c) 2021, Prem Karat +# Copyright: (c) 2024, Nutanix # GNU General Public License v3.0+ (see COPYING or https://www.gnu.org/licenses/gpl-3.0.txt) + from __future__ import absolute_import, division, print_function __metaclass__ = type @@ -13,7 +14,9 @@ module: ntnx_routes_v2 short_description: Module to create, update, and delete routes in route table in VPC version_added: 2.0.0 -description: "Create, Update, Delete routes in route table in VPC" +description: + - Create, Update, Delete routes in route table in VPC + - This module uses PC v4 APIs based SDKs options: state: description: @@ -197,7 +200,6 @@ - nutanix.ncp.ntnx_credentials - nutanix.ncp.ntnx_operations_v2 author: - - Prem Karat (@premkarat) - Gevorg Khachatryan (@Gevorg-Khachatryan-97) - Alaa Bishtawi (@alaa-bish) - George Ghawali (@george-ghawali) @@ -205,7 +207,7 @@ EXAMPLES = r""" - name: Create route - ntnx_routes_v2: + nutanix.ncp.ntnx_routes_v2: nutanix_host: "{{ ip }}" nutanix_username: "{{ username }}" nutanix_password: "{{ password }}" @@ -230,7 +232,7 @@ register: result - name: Update route - ntnx_routes_v2: + nutanix.ncp.ntnx_routes_v2: nutanix_host: "{{ ip }}" nutanix_username: "{{ username }}" nutanix_password: "{{ password }}" @@ -250,7 +252,7 @@ register: result - name: Delete route - ntnx_routes_v2: + nutanix.ncp.ntnx_routes_v2: nutanix_host: "{{ ip }}" nutanix_username: "{{ username }}" nutanix_password: "{{ password }}" diff --git a/plugins/modules/ntnx_saml_identity_providers_info_v2.py b/plugins/modules/ntnx_saml_identity_providers_info_v2.py index 504d8257..5b683c0d 100644 --- a/plugins/modules/ntnx_saml_identity_providers_info_v2.py +++ b/plugins/modules/ntnx_saml_identity_providers_info_v2.py @@ -1,8 +1,9 @@ #!/usr/bin/python # -*- coding: utf-8 -*- -# Copyright: (c) 2021, Prem Karat +# Copyright: (c) 2024, Nutanix # GNU General Public License v3.0+ (see COPYING or https://www.gnu.org/licenses/gpl-3.0.txt) + from __future__ import absolute_import, division, print_function __metaclass__ = type @@ -16,6 +17,7 @@ - Fetch a single or list of multiple identity providers - if external id is provided, it will return the identity provider info - if external id is not provided, it will return multiple identity providers + - This module uses PC v4 APIs based SDKs options: ext_id: description: @@ -26,28 +28,29 @@ - nutanix.ncp.ntnx_credentials - nutanix.ncp.ntnx_info_v2 author: - - Prem Karat (@premkarat) - Gevorg Khachatryan (@Gevorg-Khachatryan-97) - Alaa Bishtawi (@alaa-bish) """ EXAMPLES = r""" - name: List identity providers - ntnx_identity_providers_info_v2: + nutanix.ncp.ntnx_saml_identity_providers_info_v2: nutanix_host: "{{ ip }}" nutanix_username: "{{ username }}" nutanix_password: "{{ password }}" validate_certs: false register: result + - name: List identity provider using name filter criteria - ntnx_identity_providers_info_v2: + nutanix.ncp.ntnx_saml_identity_providers_info_v2: nutanix_host: "{{ ip }}" nutanix_username: "{{ username }}" nutanix_password: "{{ password }}" validate_certs: false filter: "name eq 'test_idp'" register: result + - name: List identity provider using ext_id - ntnx_identity_providers_info_v2: + nutanix.ncp.ntnx_saml_identity_providers_info_v2: nutanix_host: "{{ ip }}" nutanix_username: "{{ username }}" nutanix_password: "{{ password }}" diff --git a/plugins/modules/ntnx_saml_identity_providers_v2.py b/plugins/modules/ntnx_saml_identity_providers_v2.py index e8515465..aafaee32 100644 --- a/plugins/modules/ntnx_saml_identity_providers_v2.py +++ b/plugins/modules/ntnx_saml_identity_providers_v2.py @@ -1,8 +1,9 @@ #!/usr/bin/python # -*- coding: utf-8 -*- -# Copyright: (c) 2021, Prem Karat +# Copyright: (c) 2024, Nutanix # GNU General Public License v3.0+ (see COPYING or https://www.gnu.org/licenses/gpl-3.0.txt) + from __future__ import absolute_import, division, print_function __metaclass__ = type @@ -11,7 +12,9 @@ module: ntnx_saml_identity_providers_v2 short_description: Manage SAML identity providers in Nutanix PC version_added: "2.0.0" -description: "Create, Update, Delete SAML identity providers in Nutanix PC" +description: + - Create, Update, Delete SAML identity providers in Nutanix PC + - This module uses PC v4 APIs based SDKs options: ext_id: description: @@ -119,7 +122,6 @@ - nutanix.ncp.ntnx_credentials - nutanix.ncp.ntnx_operations_v2 author: - - Prem Karat (@premkarat) - Gevorg Khachatryan (@Gevorg-Khachatryan-97) - Alaa Bishtawi (@alaa-bish) """ @@ -127,7 +129,7 @@ EXAMPLES = r""" - name: Create identity provider - ntnx_identity_providers_v2: + nutanix.ncp.ntnx_saml_identity_providers_v2: nutanix_host: "{{ ip }}" nutanix_username: "{{ username }}" nutanix_password: "{{ password }}" @@ -143,7 +145,7 @@ register: result ignore_errors: true - name: Update identity provider - ntnx_identity_providers_v2: + nutanix.ncp.ntnx_saml_identity_providers_v2: ext_id: "59d5de78-a964-5746-8c6e-677c4c7a79df" name: "ansible-saml" username_attribute: "new_name2" @@ -155,7 +157,7 @@ validate_certs: false state: present - name: Delete identity provider - ntnx_identity_providers_v2: + nutanix.ncp.ntnx_saml_identity_providers_v2: nutanix_host: "{{ ip }}" nutanix_username: "{{ username }}" nutanix_password: "{{ password }}" diff --git a/plugins/modules/ntnx_security_rules_info_v2.py b/plugins/modules/ntnx_security_rules_info_v2.py index c46e87b8..e4434de3 100644 --- a/plugins/modules/ntnx_security_rules_info_v2.py +++ b/plugins/modules/ntnx_security_rules_info_v2.py @@ -1,8 +1,9 @@ #!/usr/bin/python # -*- coding: utf-8 -*- -# Copyright: (c) 2021, Prem Karat +# Copyright: (c) 2024, Nutanix # GNU General Public License v3.0+ (see COPYING or https://www.gnu.org/licenses/gpl-3.0.txt) + from __future__ import absolute_import, division, print_function __metaclass__ = type @@ -15,7 +16,7 @@ description: - Fetch list of multiple network security policies info. - Fetch specific network security policy info by ext_id. - + - This module uses PC v4 APIs based SDKs options: ext_id: description: @@ -25,20 +26,19 @@ - nutanix.ncp.ntnx_credentials - nutanix.ncp.ntnx_info_v2 author: - - Prem Karat (@premkarat) - Gevorg Khachatryan (@Gevorg-Khachatryan-97) - Alaa Bishtawi (@alaa-bish) """ EXAMPLES = r""" - name: Get all policies - ntnx_security_rules_info_v2: + nutanix.ncp.ntnx_security_rules_info_v2: nutanix_host: "" nutanix_username: "" nutanix_password: "" register: result - name: Get particular policy - ntnx_security_rules_info_v2: + nutanix.ncp.ntnx_security_rules_info_v2: nutanix_host: "" nutanix_username: "" nutanix_password: "" @@ -46,7 +46,7 @@ register: result - name: Fetch certain policy using filters - ntnx_security_rules_info_v2: + nutanix.ncp.ntnx_security_rules_info_v2: nutanix_host: "" nutanix_username: "" nutanix_password: "" @@ -54,7 +54,7 @@ register: result - name: Fetch only 5 policies using limit - ntnx_security_rules_info_v2: + nutanix.ncp.ntnx_security_rules_info_v2: nutanix_host: "" nutanix_username: "" nutanix_password: "" diff --git a/plugins/modules/ntnx_security_rules_v2.py b/plugins/modules/ntnx_security_rules_v2.py index 0d088ce8..09bc98ce 100644 --- a/plugins/modules/ntnx_security_rules_v2.py +++ b/plugins/modules/ntnx_security_rules_v2.py @@ -1,8 +1,9 @@ #!/usr/bin/python # -*- coding: utf-8 -*- -# Copyright: (c) 2021, Prem Karat +# Copyright: (c) 2024, Nutanix # GNU General Public License v3.0+ (see COPYING or https://www.gnu.org/licenses/gpl-3.0.txt) + from __future__ import absolute_import, division, print_function __metaclass__ = type @@ -14,6 +15,7 @@ description: - This module allows you to create, update, and delete network security policies in Nutanix Prism Central. - During update, the rules provided under C(rules) will replace existing rules. + - This module uses PC v4 APIs based SDKs options: wait: description: @@ -314,7 +316,6 @@ - nutanix.ncp.ntnx_credentials - nutanix.ncp.ntnx_operations_v2 author: - - Prem Karat (@premkarat) - Gevorg Khachatryan (@Gevorg-Khachatryan-97) - Alaa Bishtawi (@alaa-bish) - Pradeepsingh Bhati (@bhati-pradeep) diff --git a/plugins/modules/ntnx_service_groups_info_v2.py b/plugins/modules/ntnx_service_groups_info_v2.py index f82502b3..135148eb 100644 --- a/plugins/modules/ntnx_service_groups_info_v2.py +++ b/plugins/modules/ntnx_service_groups_info_v2.py @@ -1,8 +1,9 @@ #!/usr/bin/python # -*- coding: utf-8 -*- -# Copyright: (c) 2021, Prem Karat +# Copyright: (c) 2024, Nutanix # GNU General Public License v3.0+ (see COPYING or https://www.gnu.org/licenses/gpl-3.0.txt) + from __future__ import absolute_import, division, print_function __metaclass__ = type @@ -15,6 +16,7 @@ description: - This module is used to get service groups info. - It can be used to get all service groups or a particular service group using ext_id. + - This module uses PC v4 APIs based SDKs options: ext_id: description: @@ -24,14 +26,13 @@ - nutanix.ncp.ntnx_credentials - nutanix.ncp.ntnx_info_v2 author: - - Prem Karat (@premkarat) - Gevorg Khachatryan (@Gevorg-Khachatryan-97) - Alaa Bishtawi (@alaa-bish) - George Ghawali (@george-ghawali) """ EXAMPLES = r""" - name: test getting particular service_group using external id - ntnx_service_groups_info_v2: + nutanix.ncp.ntnx_service_groups_info_v2: nutanix_host: "{{ ip }}" nutanix_username: "{{ username }}" nutanix_password: "{{ password }}" @@ -39,7 +40,7 @@ ext_id: '{{ result.response.0.ext_id }}' - name: test getting all service groups - ntnx_service_groups_info_v2: + nutanix.ncp.ntnx_service_groups_info_v2: nutanix_host: "{{ ip }}" nutanix_username: "{{ username }}" nutanix_password: "{{ password }}" diff --git a/plugins/modules/ntnx_service_groups_v2.py b/plugins/modules/ntnx_service_groups_v2.py index ccc9d2eb..32dd7829 100644 --- a/plugins/modules/ntnx_service_groups_v2.py +++ b/plugins/modules/ntnx_service_groups_v2.py @@ -1,8 +1,9 @@ #!/usr/bin/python # -*- coding: utf-8 -*- -# Copyright: (c) 2021, Prem Karat +# Copyright: (c) 2024, Nutanix # GNU General Public License v3.0+ (see COPYING or https://www.gnu.org/licenses/gpl-3.0.txt) + from __future__ import absolute_import, division, print_function __metaclass__ = type @@ -19,6 +20,7 @@ - State of the service group, whether to create, update or delete. - present -> Create service group if external ID is not provided, Update service group if external ID is provided. - absent -> Delete service group with the given external ID. + - This module uses PC v4 APIs based SDKs type: str required: false choices: ['present', 'absent'] @@ -90,7 +92,6 @@ - nutanix.ncp.ntnx_credentials - nutanix.ncp.ntnx_operations_v2 author: - - Prem Karat (@premkarat) - Gevorg Khachatryan (@Gevorg-Khachatryan-97) - Alaa Bishtawi (@alaa-bish) - George Ghawali (@george-ghawali) @@ -98,7 +99,7 @@ EXAMPLES = r""" - name: create tcp service group - ntnx_service_groups_v2: + nutanix.ncp.ntnx_service_groups_v2: nutanix_host: "{{ ip }}" nutanix_username: "{{ username }}" nutanix_password: "{{ password }}" @@ -116,7 +117,7 @@ end_port: 99 - name: create udp service group - ntnx_service_groups_v2: + nutanix.ncp.ntnx_service_groups_v2: nutanix_host: "{{ ip }}" nutanix_username: "{{ username }}" nutanix_password: "{{ password }}" @@ -134,7 +135,7 @@ end_port: 99 - name: create icmp with service group - ntnx_service_groups_v2: + nutanix.ncp.ntnx_service_groups_v2: nutanix_host: "{{ ip }}" nutanix_username: "{{ username }}" nutanix_password: "{{ password }}" @@ -148,7 +149,7 @@ type: 2 - name: Delete all created service groups - ntnx_service_groups_v2: + nutanix.ncp.ntnx_service_groups_v2: nutanix_host: "{{ ip }}" nutanix_username: "{{ username }}" nutanix_password: "{{ password }}" diff --git a/plugins/modules/ntnx_storage_containers_info_v2.py b/plugins/modules/ntnx_storage_containers_info_v2.py index a3cc6eab..67effe50 100644 --- a/plugins/modules/ntnx_storage_containers_info_v2.py +++ b/plugins/modules/ntnx_storage_containers_info_v2.py @@ -1,8 +1,9 @@ #!/usr/bin/python # -*- coding: utf-8 -*- -# Copyright: (c) 2021, Prem Karat +# Copyright: (c) 2024, Nutanix # GNU General Public License v3.0+ (see COPYING or https://www.gnu.org/licenses/gpl-3.0.txt) + from __future__ import absolute_import, division, print_function __metaclass__ = type @@ -16,6 +17,7 @@ - This module retrieves information about Nutanix storage continer from PC. - Fetch particular storage continer info using external ID - Fetch multiple storage continers info with/without using filters, limit, etc. + - This module uses PC v4 APIs based SDKs options: ext_id: description: @@ -27,14 +29,13 @@ - nutanix.ncp.ntnx_credentials - nutanix.ncp.ntnx_info_v2 author: - - Prem Karat (@premkarat) - Alaa Bishtawi (@alaabishtawi) - George Ghawali (@george-ghawali) """ EXAMPLES = r""" - name: fetch storage continer info using external ID - ntnx_storage_containerss_info_v2: + nutanix.ncp.ntnx_storage_containers_info_v2: nutanix_host: nutanix_username: nutanix_password: @@ -42,14 +43,14 @@ register: result - name: fetch all storage continer info - ntnx_storage_containerss_info_v2: + nutanix.ncp.ntnx_storage_containers_info_v2: nutanix_host: nutanix_username: nutanix_password: register: result - name: fetch all storage continer info with filter - ntnx_storage_containerss_info_v2: + nutanix.ncp.ntnx_storage_containers_info_v2: nutanix_host: nutanix_username: nutanix_password: diff --git a/plugins/modules/ntnx_storage_containers_stats_v2.py b/plugins/modules/ntnx_storage_containers_stats_v2.py index 55b09bd2..054fd721 100644 --- a/plugins/modules/ntnx_storage_containers_stats_v2.py +++ b/plugins/modules/ntnx_storage_containers_stats_v2.py @@ -1,8 +1,9 @@ #!/usr/bin/python # -*- coding: utf-8 -*- -# Copyright: (c) 2021, Prem Karat +# Copyright: (c) 2024, Nutanix # GNU General Public License v3.0+ (see COPYING or https://www.gnu.org/licenses/gpl-3.0.txt) + from __future__ import absolute_import, division, print_function __metaclass__ = type @@ -14,6 +15,7 @@ version_added: 2.0.0 description: - Get Stats for a Storage Container + - This module uses PC v4 APIs based SDKs options: ext_id: description: @@ -55,14 +57,13 @@ extends_documentation_fragment: - nutanix.ncp.ntnx_credentials author: - - Prem Karat (@premkarat) - Alaa Bishtawi (@alaabishtawi) - George Ghawali (@george-ghawali) """ EXAMPLES = r""" - name: Fetch storage container stats during time interval - ntnx_storage_containers_stats_v2: + nutanix.ncp.ntnx_storage_containers_stats_v2: nutanix_host: nutanix_username: nutanix_password: @@ -72,7 +73,7 @@ register: result - name: Fetch storage container stats with all attributes - ntnx_storage_containers_stats_v2: + nutanix.ncp.ntnx_storage_containers_stats_v2: nutanix_host: nutanix_username: nutanix_password: diff --git a/plugins/modules/ntnx_storage_containers_v2.py b/plugins/modules/ntnx_storage_containers_v2.py index cb4b0dd6..04e85f21 100644 --- a/plugins/modules/ntnx_storage_containers_v2.py +++ b/plugins/modules/ntnx_storage_containers_v2.py @@ -1,8 +1,9 @@ #!/usr/bin/python # -*- coding: utf-8 -*- -# Copyright: (c) 2021, Prem Karat +# Copyright: (c) 2024, Nutanix # GNU General Public License v3.0+ (see COPYING or https://www.gnu.org/licenses/gpl-3.0.txt) + from __future__ import absolute_import, division, print_function __metaclass__ = type @@ -13,6 +14,7 @@ short_description: Manage storage containers in Nutanix Prism Central description: - This module allows you to create, update, and delete storage containers in Nutanix Prism Central. + - This module uses PC v4 APIs based SDKs version_added: 2.0.0 options: state: @@ -183,14 +185,13 @@ - nutanix.ncp.ntnx_credentials - nutanix.ncp.ntnx_operations_v2 author: - - Prem Karat (@premkarat) - Alaa Bishtawi (@alaabishtawi) - George Ghawali (@george-ghawali) """ EXAMPLES = r""" - name: Create storage container with minimal spec - ntnx_storage_containers_v2: + nutanix.ncp.ntnx_storage_containers_v2: nutanix_host: nutanix_username: nutanix_password: @@ -198,7 +199,7 @@ cluster_ext_id: 00061de6-4a87-6b06-185b-ac1f6b6f97e2 - name: Create storage container - ntnx_storage_containers_v2: + nutanix.ncp.ntnx_storage_containers_v2: nutanix_host: nutanix_username: nutanix_password: @@ -219,7 +220,7 @@ has_higher_ec_fault_domain_preference: true - name: Update storage container - ntnx_storage_containers_v2: + nutanix.ncp.ntnx_storage_containers_v2: nutanix_host: nutanix_username: nutanix_password: @@ -230,7 +231,7 @@ logical_explicit_reserved_capacity_bytes: 20 - name: Delete storage container - ntnx_storage_containers_v2: + nutanix.ncp.ntnx_storage_containers_v2: nutanix_host: nutanix_username: nutanix_password: diff --git a/plugins/modules/ntnx_subnets_info_v2.py b/plugins/modules/ntnx_subnets_info_v2.py index 09efd729..80e77ef9 100644 --- a/plugins/modules/ntnx_subnets_info_v2.py +++ b/plugins/modules/ntnx_subnets_info_v2.py @@ -1,8 +1,9 @@ #!/usr/bin/python # -*- coding: utf-8 -*- -# Copyright: (c) 2021, Prem Karat +# Copyright: (c) 2024, Nutanix # GNU General Public License v3.0+ (see COPYING or https://www.gnu.org/licenses/gpl-3.0.txt) + from __future__ import absolute_import, division, print_function __metaclass__ = type @@ -12,7 +13,9 @@ module: ntnx_subnets_info_v2 short_description: subnet info module version_added: 2.0.0 -description: 'Fetch list of subnets or subnet info using subnet external ID' +description: + - Fetch list of subnets or subnet info using subnet external ID + - This module uses PC v4 APIs based SDKs options: ext_id: description: @@ -26,14 +29,13 @@ - nutanix.ncp.ntnx_credentials - nutanix.ncp.ntnx_info_v2 author: - - Prem Karat (@premkarat) - Gevorg Khachatryan (@Gevorg-Khachatryan-97) - Alaa Bishtawi (@alaa-bish) - George Ghawali (@george-ghawali) """ EXAMPLES = r""" - name: List all subnets - ntnx_subnets_info: + nutanix.ncp.ntnx_subnets_info_v2: nutanix_host: nutanix_username: nutanix_password: @@ -41,7 +43,7 @@ register: result - name: List subnet using uuid criteria - ntnx_subnets_info: + nutanix.ncp.ntnx_subnets_info_v2: nutanix_host: nutanix_username: nutanix_password: @@ -50,7 +52,7 @@ register: result - name: List subnets using filter criteria and filter for subnet name - ntnx_subnets_info: + nutanix.ncp.ntnx_subnets_info_v2: nutanix_host: nutanix_username: nutanix_password: @@ -58,7 +60,7 @@ filter: "name eq '{{ test_subnet_name }}'" - name: List subnet using filter criteria and filter for cluster uuid - ntnx_subnets_info: + nutanix.ncp.ntnx_subnets_info_v2: nutanix_host: nutanix_username: nutanix_password: diff --git a/plugins/modules/ntnx_subnets_v2.py b/plugins/modules/ntnx_subnets_v2.py index 8956dfa1..9ab6903c 100644 --- a/plugins/modules/ntnx_subnets_v2.py +++ b/plugins/modules/ntnx_subnets_v2.py @@ -1,8 +1,9 @@ #!/usr/bin/python # -*- coding: utf-8 -*- -# Copyright: (c) 2021, Prem Karat +# Copyright: (c) 2024, Nutanix # GNU General Public License v3.0+ (see COPYING or https://www.gnu.org/licenses/gpl-3.0.txt) + from __future__ import absolute_import, division, print_function __metaclass__ = type @@ -12,7 +13,9 @@ module: ntnx_subnets_v2 short_description: subnets module which supports Create, Update, Delete subnets version_added: 2.0.0 -description: "Create, Update, Delete subnets" +description: + - Create, Update, Delete subnets + - This module uses PC v4 APIs based SDKs notes: - For updating IPAM config using C(ip_config), provide all details again. Module will not fetch existing IPAM config. - For subnet create and delete, module will return tasks status in response after operation. @@ -370,7 +373,6 @@ - nutanix.ncp.ntnx_credentials - nutanix.ncp.ntnx_operations_v2 author: - - Prem Karat (@premkarat) - Gevorg Khachatryan (@Gevorg-Khachatryan-97) - Alaa Bishtawi (@alaa-bish) - George Ghawali (@george-ghawali) @@ -378,7 +380,7 @@ EXAMPLES = r""" - name: VLAN subnet with IPAM IP pools - ntnx_subnets_v2: + nutanix.ncp.ntnx_subnets_v2: state: present nutanix_host: "{{ ip }}" validate_certs: false @@ -407,7 +409,7 @@ prefix_length: 24 - name: External subnet with NAT - ntnx_subnets_v2: + nutanix.ncp.ntnx_subnets_v2: state: present nutanix_host: "{{ ip }}" validate_certs: false @@ -442,7 +444,7 @@ prefix_length: 27 - name: Overlay Subnet with IP_pools - ntnx_subnets_v2: + nutanix.ncp.ntnx_subnets_v2: state: present nutanix_host: "{{ ip }}" validate_certs: false @@ -469,7 +471,7 @@ prefix_length: 24 - name: Delete subnets - ntnx_subnets_v2: + nutanix.ncp.ntnx_subnets_v2: state: absent nutanix_host: "{{ ip }}" nutanix_username: "{{ username }}" diff --git a/plugins/modules/ntnx_templates_deploy_v2.py b/plugins/modules/ntnx_templates_deploy_v2.py index 3974748e..a0285562 100644 --- a/plugins/modules/ntnx_templates_deploy_v2.py +++ b/plugins/modules/ntnx_templates_deploy_v2.py @@ -1,8 +1,9 @@ #!/usr/bin/python # -*- coding: utf-8 -*- -# Copyright: (c) 2021, Prem Karat +# Copyright: (c) 2024, Nutanix # GNU General Public License v3.0+ (see COPYING or https://www.gnu.org/licenses/gpl-3.0.txt) + from __future__ import absolute_import, division, print_function __metaclass__ = type @@ -12,6 +13,7 @@ short_description: Deploy Nutanix templates description: - This module allows you to deploy Nutanix templates. + - This module uses PC v4 APIs based SDKs version_added: "2.0.0" options: ext_id: @@ -253,14 +255,13 @@ - nutanix.ncp.ntnx_credentials - nutanix.ncp.ntnx_operations_v2 author: - - Prem Karat (@premkarat) - Gevorg Khachatryan (@Gevorg-Khachatryan-97) - Alaa Bishtawi (@alaa-bish) """ EXAMPLES = r""" - name: Deploy VM - ntnx_templates_deploy_v2: + nutanix.ncp.ntnx_templates_deploy_v2: nutanix_host: "{{ ip }}" nutanix_username: "{{ username }}" nutanix_password: "{{ password }}" @@ -270,7 +271,7 @@ cluster_reference: "{{cluster.uuid}}" - name: Deploy vm and override config - ntnx_templates_deploy_v2: + nutanix.ncp.ntnx_templates_deploy_v2: nutanix_host: "{{ ip }}" nutanix_username: "{{ username }}" nutanix_password: "{{ password }}" diff --git a/plugins/modules/ntnx_templates_guest_os_v2.py b/plugins/modules/ntnx_templates_guest_os_v2.py index 880cae23..3fbd8db2 100644 --- a/plugins/modules/ntnx_templates_guest_os_v2.py +++ b/plugins/modules/ntnx_templates_guest_os_v2.py @@ -1,8 +1,9 @@ #!/usr/bin/python # -*- coding: utf-8 -*- -# Copyright: (c) 2021, Prem Karat +# Copyright: (c) 2024, Nutanix # GNU General Public License v3.0+ (see COPYING or https://www.gnu.org/licenses/gpl-3.0.txt) + from __future__ import absolute_import, division, print_function __metaclass__ = type @@ -12,6 +13,7 @@ short_description: Manage guest OS updates for Nutanix AHV templates. description: - This module allows you to initiate, complete, or cancel guest OS updates for Nutanix AHV templates. + - This module uses PC v4 APIs based SDKs version_added: "2.0.0" options: state: @@ -51,14 +53,13 @@ - nutanix.ncp.ntnx_credentials - nutanix.ncp.ntnx_operations_v2 author: - - Prem Karat (@premkarat) - Gevorg Khachatryan (@Gevorg-Khachatryan-97) - Alaa Bishtawi (@alaa-bish) """ EXAMPLES = r""" - name: initiate_guest_os_update - ntnx_templates_guest_os_v2: + nutanix.ncp.ntnx_templates_guest_os_v2: template_ext_id: "{{ template1_ext_id }}" version_id: "{{version1_ext_id}}" state: start @@ -68,7 +69,7 @@ validate_certs: false - name: cancel guest_os_update - ntnx_templates_guest_os_v2: + nutanix.ncp.ntnx_templates_guest_os_v2: template_ext_id: "{{ template1_ext_id }}" version_id: "{{version1_ext_id}}" nutanix_host: "{{ ip }}" @@ -78,7 +79,7 @@ state: cancel - name: finish guest_os_update - ntnx_templates_guest_os_v2: + nutanix.ncp.ntnx_templates_guest_os_v2: template_ext_id: "{{ template1_ext_id }}" version_id: "{{version1_ext_id}}" state: finish diff --git a/plugins/modules/ntnx_templates_info_v2.py b/plugins/modules/ntnx_templates_info_v2.py index 6ef2d716..0f9c9ffb 100644 --- a/plugins/modules/ntnx_templates_info_v2.py +++ b/plugins/modules/ntnx_templates_info_v2.py @@ -1,8 +1,9 @@ #!/usr/bin/python # -*- coding: utf-8 -*- -# Copyright: (c) 2021, Prem Karat +# Copyright: (c) 2024, Nutanix # GNU General Public License v3.0+ (see COPYING or https://www.gnu.org/licenses/gpl-3.0.txt) + from __future__ import absolute_import, division, print_function __metaclass__ = type @@ -12,7 +13,9 @@ module: ntnx_templates_info_v2 short_description: template info module version_added: 2.0.0 -description: 'Get templates info' +description: + - Get templates info + - This module uses PC v4 APIs based SDKs options: ext_id: description: @@ -22,13 +25,12 @@ - nutanix.ncp.ntnx_credentials - nutanix.ncp.ntnx_info_v2 author: - - Prem Karat (@premkarat) - Gevorg Khachatryan (@Gevorg-Khachatryan-97) - Alaa Bishtawi (@alaa-bish) """ EXAMPLES = r""" - name: Fetch template info using ext id - ntnx_templates_info_v2: + nutanix.ncp.ntnx_templates_info_v2: ext_id: "{{ template1_ext_id }}" nutanix_host: "{{ ip }}" nutanix_username: "{{ username }}" @@ -36,7 +38,7 @@ validate_certs: false - name: List all templates - ntnx_templates_info_v2: + nutanix.ncp.ntnx_templates_info_v2: nutanix_host: "{{ ip }}" nutanix_username: "{{ username }}" nutanix_password: "{{ password }}" diff --git a/plugins/modules/ntnx_templates_v2.py b/plugins/modules/ntnx_templates_v2.py index 733d2206..4e155d09 100644 --- a/plugins/modules/ntnx_templates_v2.py +++ b/plugins/modules/ntnx_templates_v2.py @@ -1,8 +1,9 @@ #!/usr/bin/python # -*- coding: utf-8 -*- -# Copyright: (c) 2021, Prem Karat +# Copyright: (c) 2024, Nutanix # GNU General Public License v3.0+ (see COPYING or https://www.gnu.org/licenses/gpl-3.0.txt) + from __future__ import absolute_import, division, print_function __metaclass__ = type @@ -12,6 +13,7 @@ short_description: Manage Nutanix AHV template resources description: - This module allows you to create, update, and delete Nutanix AHV templates. + - This module uses PC v4 APIs based SDKs version_added: "2.0.0" options: state: @@ -1141,14 +1143,13 @@ - nutanix.ncp.ntnx_credentials - nutanix.ncp.ntnx_operations_v2 author: - - Prem Karat (@premkarat) - Gevorg Khachatryan (@Gevorg-Khachatryan-97) - Alaa Bishtawi (@alaa-bish) """ EXAMPLES = r""" - name: Create new template from a vm - ntnx_templates_v2: + nutanix.ncp.ntnx_templates_v2: ext_id: "{{ template1_ext_id }}" nutanix_host: "{{ ip }}" nutanix_username: "{{ username }}" @@ -1162,7 +1163,7 @@ ext_id: "{{ vm_uuid }}" - name: Update template description & name - ntnx_templates_v2: + nutanix.ncp.ntnx_templates_v2: nutanix_host: "{{ ip }}" nutanix_username: "{{ username }}" nutanix_password: "{{ password }}" @@ -1181,7 +1182,7 @@ name: "new_vm_name" - name: Delete Template - ntnx_templates_v2: + nutanix.ncp.ntnx_templates_v2: ext_id: "{{ template1_ext_id }}" nutanix_host: "{{ ip }}" nutanix_username: "{{ username }}" diff --git a/plugins/modules/ntnx_templates_version_v2.py b/plugins/modules/ntnx_templates_version_v2.py index a7470c8c..c45fa6a4 100644 --- a/plugins/modules/ntnx_templates_version_v2.py +++ b/plugins/modules/ntnx_templates_version_v2.py @@ -1,8 +1,9 @@ #!/usr/bin/python # -*- coding: utf-8 -*- -# Copyright: (c) 2021, Prem Karat +# Copyright: (c) 2024, Nutanix # GNU General Public License v3.0+ (see COPYING or https://www.gnu.org/licenses/gpl-3.0.txt) + from __future__ import absolute_import, division, print_function __metaclass__ = type @@ -12,6 +13,7 @@ short_description: Manage Nutanix template versions description: - This module allows you to publish or delete template versions in Nutanix. + - This module uses PC v4 APIs based SDKs version_added: '2.0.0' options: template_ext_id: @@ -40,14 +42,13 @@ - nutanix.ncp.ntnx_credentials - nutanix.ncp.ntnx_operations_v2 author: - - Prem Karat (@premkarat) - Gevorg Khachatryan (@Gevorg-Khachatryan-97) - Alaa Bishtawi (@alaa-bish) """ EXAMPLES = r""" - name: Set the Active Version - ntnx_templates_version_v2: + nutanix.ncp.ntnx_templates_version_v2: template_ext_id: "f3ae7dfe-9f7f-4085-8619-5d93ad9c4e64" version_id: "5fbfc4d6-7736-49e4-97e7-eb55b061f16f" nutanix_host: "{{ ip }}" @@ -56,7 +57,7 @@ validate_certs: false - name: Delete Template Version - ntnx_templates_version_v2: + nutanix.ncp.ntnx_templates_version_v2: state: absent template_ext_id: "f3ae7dfe-9f7f-4085-8619-5d93ad9c4e64" version_id: "5fbfc4d6-7736-49e4-97e7-eb55b061f16f" diff --git a/plugins/modules/ntnx_templates_versions_info_v2.py b/plugins/modules/ntnx_templates_versions_info_v2.py index 85a280fd..70b3cd44 100644 --- a/plugins/modules/ntnx_templates_versions_info_v2.py +++ b/plugins/modules/ntnx_templates_versions_info_v2.py @@ -1,8 +1,9 @@ #!/usr/bin/python # -*- coding: utf-8 -*- -# Copyright: (c) 2021, Prem Karat +# Copyright: (c) 2024, Nutanix # GNU General Public License v3.0+ (see COPYING or https://www.gnu.org/licenses/gpl-3.0.txt) + from __future__ import absolute_import, division, print_function __metaclass__ = type @@ -14,6 +15,7 @@ description: - This module fetches information about Nutanix template versions. - It can retrieve information about a specific template version or all template versions. + - This module uses PC v4 APIs based SDKs options: template_ext_id: description: @@ -29,14 +31,13 @@ - nutanix.ncp.ntnx_credentials - nutanix.ncp.ntnx_info_v2 author: - - Prem Karat (@premkarat) - Gevorg Khachatryan (@Gevorg-Khachatryan-97) - Alaa Bishtawi (@alaa-bish) """ EXAMPLES = r""" - name: Retrieve the Template Version details for the given Template Version identifier. - ntnx_templates_versions_info_v2: + nutanix.ncp.ntnx_templates_versions_info_v2: nutanix_host: "{{ ip }}" nutanix_username: "{{ username }}" nutanix_password: "{{ password }}" diff --git a/plugins/modules/ntnx_user_groups_info_v2.py b/plugins/modules/ntnx_user_groups_info_v2.py index bef4e5d4..fc8b27d3 100644 --- a/plugins/modules/ntnx_user_groups_info_v2.py +++ b/plugins/modules/ntnx_user_groups_info_v2.py @@ -1,8 +1,9 @@ #!/usr/bin/python # -*- coding: utf-8 -*- -# Copyright: (c) 2021, Prem Karat +# Copyright: (c) 2024, Nutanix # GNU General Public License v3.0+ (see COPYING or https://www.gnu.org/licenses/gpl-3.0.txt) + from __future__ import absolute_import, division, print_function __metaclass__ = type @@ -15,6 +16,7 @@ description: - This module is used to get user_group information. - Fetch a specific user group using ext_id or multiple user groups + - This module uses PC v4 APIs based SDKs options: ext_id: description: @@ -25,14 +27,13 @@ - nutanix.ncp.ntnx_credentials - nutanix.ncp.ntnx_info_v2 author: - - Prem Karat (@premkarat) - Gevorg Khachatryan (@Gevorg-Khachatryan-97) - Alaa Bishtawi (@alaa-bish) - George Ghawali (@george-ghawali) """ EXAMPLES = r""" - name: List all user groups - ntnx_user_groups_info_v2: + nutanix.ncp.ntnx_user_groups_info_v2: nutanix_host: "{{ ip }}" nutanix_username: "{{ username }}" nutanix_password: "{{ password }}" @@ -40,7 +41,7 @@ register: user_groups - name: List user_groups using user_group uuid criteria - ntnx_user_groups_info_v2: + nutanix.ncp.ntnx_user_groups_info_v2: nutanix_host: "{{ ip }}" nutanix_username: "{{ username }}" nutanix_password: "{{ password }}" @@ -49,7 +50,7 @@ register: result - name: List user_groups using filter criteria - ntnx_user_groups_info_v2: + nutanix.ncp.ntnx_user_groups_info_v2: nutanix_host: "{{ ip }}" nutanix_username: "{{ username }}" nutanix_password: "{{ password }}" diff --git a/plugins/modules/ntnx_user_groups_v2.py b/plugins/modules/ntnx_user_groups_v2.py index 39a3c27b..249cdc64 100644 --- a/plugins/modules/ntnx_user_groups_v2.py +++ b/plugins/modules/ntnx_user_groups_v2.py @@ -1,8 +1,9 @@ #!/usr/bin/python # -*- coding: utf-8 -*- -# Copyright: (c) 2021, Prem Karat +# Copyright: (c) 2024, Nutanix # GNU General Public License v3.0+ (see COPYING or https://www.gnu.org/licenses/gpl-3.0.txt) + from __future__ import absolute_import, division, print_function __metaclass__ = type @@ -11,7 +12,9 @@ --- module: ntnx_user_groups_v2 short_description: Create and Delete user groups -description: "Create and Delete user groups in Nutanix PC" +description: + - Create and Delete user groups in Nutanix PC + - This module uses PC v4 APIs based SDKs version_added: "2.0.0" options: state: @@ -55,7 +58,6 @@ - nutanix.ncp.ntnx_credentials - nutanix.ncp.ntnx_operations_v2 author: - - Prem Karat (@premkarat) - Gevorg Khachatryan (@Gevorg-Khachatryan-97) - Alaa Bishtawi (@alaa-bish) - George Ghawali (@george-ghawali) @@ -63,7 +65,7 @@ EXAMPLES = r""" - name: Create LDAP user group - ntnx_user_groups_v2: + nutanix.ncp.ntnx_user_groups_v2: nutanix_host: "{{ ip }}" nutanix_username: "{{ username }}" nutanix_password: "{{ password }}" @@ -73,7 +75,7 @@ idp_id: "6863c60b-ae9d-5c32-b8c1-2d45b9ba343a" - name: Create SAML user group - ntnx_user_groups_v2: + nutanix.ncp.ntnx_user_groups_v2: nutanix_host: "{{ ip }}" nutanix_username: "{{ username }}" nutanix_password: "{{ password }}" @@ -83,7 +85,7 @@ name: group_name_test - name: Delete user group - ntnx_user_groups_v2: + nutanix.ncp.ntnx_user_groups_v2: nutanix_host: "{{ ip }}" nutanix_username: "{{ username }}" nutanix_password: "{{ password }}" diff --git a/plugins/modules/ntnx_users_info_v2.py b/plugins/modules/ntnx_users_info_v2.py index 58adb83d..1cfa8ba8 100644 --- a/plugins/modules/ntnx_users_info_v2.py +++ b/plugins/modules/ntnx_users_info_v2.py @@ -1,8 +1,9 @@ #!/usr/bin/python # -*- coding: utf-8 -*- -# Copyright: (c) 2021, Prem Karat +# Copyright: (c) 2024, Nutanix # GNU General Public License v3.0+ (see COPYING or https://www.gnu.org/licenses/gpl-3.0.txt) + from __future__ import absolute_import, division, print_function __metaclass__ = type @@ -12,7 +13,9 @@ module: ntnx_users_info_v2 short_description: Get users info version_added: 2.0.0 -description: Get users info using user external ID or list multiple users +description: + - Get users info using user external ID or list multiple users + - This module uses PC v4 APIs based SDKs options: ext_id: description: @@ -24,14 +27,13 @@ - nutanix.ncp.ntnx_credentials - nutanix.ncp.ntnx_info_v2 author: - - Prem Karat (@premkarat) - Gevorg Khachatryan (@Gevorg-Khachatryan-97) - Alaa Bishtawi (@alaa-bish) - George Ghawali (@george-ghawali) """ EXAMPLES = r""" - name: List all users - ntnx_users_info_v2: + nutanix.ncp.ntnx_users_info_v2: nutanix_host: "{{ ip }}" nutanix_username: "{{ username }}" nutanix_password: "{{ password }}" @@ -39,7 +41,7 @@ register: users - name: List users using user ext_id criteria - ntnx_users_info_v2: + nutanix.ncp.ntnx_users_info_v2: nutanix_host: "{{ ip }}" nutanix_username: "{{ username }}" nutanix_password: "{{ password }}" @@ -48,7 +50,7 @@ register: result - name: List users using filter - ntnx_users_info_v2: + nutanix.ncp.ntnx_users_info_v2: nutanix_host: "{{ ip }}" nutanix_username: "{{ username }}" nutanix_password: "{{ password }}" diff --git a/plugins/modules/ntnx_users_v2.py b/plugins/modules/ntnx_users_v2.py index f5097238..9b9c850f 100644 --- a/plugins/modules/ntnx_users_v2.py +++ b/plugins/modules/ntnx_users_v2.py @@ -1,8 +1,9 @@ #!/usr/bin/python # -*- coding: utf-8 -*- -# Copyright: (c) 2021, Prem Karat +# Copyright: (c) 2024, Nutanix # GNU General Public License v3.0+ (see COPYING or https://www.gnu.org/licenses/gpl-3.0.txt) + from __future__ import absolute_import, division, print_function __metaclass__ = type @@ -13,6 +14,7 @@ version_added: "2.0.0" description: - This module allows you to create and update users. + - This module uses PC v4 APIs based SDKs options: state: description: @@ -125,7 +127,6 @@ - nutanix.ncp.ntnx_credentials - nutanix.ncp.ntnx_operations_v2 author: - - Prem Karat (@premkarat) - Gevorg Khachatryan (@Gevorg-Khachatryan-97) - Alaa Bishtawi (@alaa-bish) - George Ghawali (@george-ghawali) @@ -134,7 +135,7 @@ EXAMPLES = r""" - name: create local user - ntnx_users_v2: + nutanix.ncp.ntnx_users_v2: nutanix_host: "{{ ip }}" nutanix_username: "{{ username }}" nutanix_password: "{{ password }}" @@ -149,7 +150,7 @@ register: result - name: update local user - ntnx_users_v2: + nutanix.ncp.ntnx_users_v2: nutanix_host: "{{ ip }}" nutanix_username: "{{ username }}" nutanix_password: "{{ password }}" @@ -160,7 +161,7 @@ register: result - name: Create SAML user - ntnx_users_v2: + nutanix.ncp.ntnx_users_v2: nutanix_host: "{{ ip }}" nutanix_username: "{{ username }}" nutanix_password: "{{ password }}" @@ -170,7 +171,7 @@ idp_id: "40fe7aeb-f420-5aee-ba42-cfc2369bc1ec" - name: Create LDAP user - ntnx_users_v2: + nutanix.ncp.ntnx_users_v2: nutanix_host: "{{ ip }}" nutanix_username: "{{ username }}" nutanix_password: "{{ password }}" diff --git a/plugins/modules/ntnx_vm_recovery_point_info_v2.py b/plugins/modules/ntnx_vm_recovery_point_info_v2.py index e2352a9c..85990369 100644 --- a/plugins/modules/ntnx_vm_recovery_point_info_v2.py +++ b/plugins/modules/ntnx_vm_recovery_point_info_v2.py @@ -1,8 +1,9 @@ #!/usr/bin/python # -*- coding: utf-8 -*- -# Copyright: (c) 2021, Prem Karat +# Copyright: (c) 2024, Nutanix # GNU General Public License v3.0+ (see COPYING or https://www.gnu.org/licenses/gpl-3.0.txt) + from __future__ import absolute_import, division, print_function __metaclass__ = type @@ -14,6 +15,7 @@ version_added: 2.0.0 description: - Fetch specific VM recovery point info which is part of top level recovery point + - This module uses PC v4 APIs based SDKs options: recovery_point_ext_id: description: @@ -29,13 +31,12 @@ - nutanix.ncp.ntnx_credentials - nutanix.ncp.ntnx_info_v2 author: - - Prem Karat (@premkarat) - Abhinav Bansal (@abhinavbansal29) - Pradeepsingh Bhati (@bhati-pradeep) """ EXAMPLES = r""" - name: Fetch specific VM recovery point info which is part of top level recovery point - ntnx_vm_recovery_point_info_v2: + nutanix.ncp.ntnx_vm_recovery_point_info_v2: nutanix_host: "{{ ip }}" nutanix_username: "{{ username }}" nutanix_password: "{{ password }}" diff --git a/plugins/modules/ntnx_vm_revert_v2.py b/plugins/modules/ntnx_vm_revert_v2.py index e4fe531d..b88bf10f 100644 --- a/plugins/modules/ntnx_vm_revert_v2.py +++ b/plugins/modules/ntnx_vm_revert_v2.py @@ -1,8 +1,9 @@ #!/usr/bin/python # -*- coding: utf-8 -*- -# Copyright: (c) 2021, Prem Karat +# Copyright: (c) 2024, Nutanix # GNU General Public License v3.0+ (see COPYING or https://www.gnu.org/licenses/gpl-3.0.txt) + from __future__ import absolute_import, division, print_function __metaclass__ = type @@ -14,6 +15,7 @@ version_added: 2.0.0 description: - Revert VM from recovery point using VM external ID + - This module uses PC v4 APIs based SDKs options: ext_id: description: @@ -28,13 +30,12 @@ - nutanix.ncp.ntnx_credentials - nutanix.ncp.ntnx_operations_v2 author: - - Prem Karat (@premkarat) - Abhinav Bansal (@abhinavbansal29) - Pradeepsingh Bhati (@bhati-pradeep) """ EXAMPLES = r""" - name: Revert a VM to a Recovery Point - ntnx_vm_revert_v2: + nutanix.ncp.ntnx_vm_revert_v2: nutanix_host: "{{ ip }}" nutanix_username: "{{ username }}" nutanix_password: "{{ password }}" diff --git a/plugins/modules/ntnx_vms_categories_v2.py b/plugins/modules/ntnx_vms_categories_v2.py index fab74bd0..daf4f150 100644 --- a/plugins/modules/ntnx_vms_categories_v2.py +++ b/plugins/modules/ntnx_vms_categories_v2.py @@ -1,8 +1,9 @@ #!/usr/bin/python # -*- coding: utf-8 -*- -# Copyright: (c) 2021, Prem Karat +# Copyright: (c) 2024, Nutanix # GNU General Public License v3.0+ (see COPYING or https://www.gnu.org/licenses/gpl-3.0.txt) + from __future__ import absolute_import, division, print_function __metaclass__ = type @@ -12,6 +13,7 @@ short_description: Associate or disassociate categories to a VM in AHV Nutanix. description: - This module allows you to associate or disassociate categories to a AHV VM in Nutanix. + - This module uses PC v4 APIs based SDKs version_added: "2.0.0" options: categories: @@ -46,7 +48,6 @@ type: bool default: true author: - - Prem Karat (@premkarat) - Pradeepsingh Bhati (@bhati-pradeep) extends_documentation_fragment: - nutanix.ncp.ntnx_credentials @@ -55,7 +56,7 @@ EXAMPLES = r""" - name: Associate categories with a VM - ntnx_vms_categories_v2: + nutanix.ncp.ntnx_vms_categories_v2: nutanix_host: "{{ ip }}" nutanix_username: "{{ username }}" nutanix_password: "{{ password }}" @@ -69,7 +70,7 @@ wait: true - name: Disassociate categories from a VM - ntnx_vms_categories_v2: + nutanix.ncp.ntnx_vms_categories_v2: nutanix_host: "{{ ip }}" nutanix_username: "{{ username }}" nutanix_password: "{{ password }}" diff --git a/plugins/modules/ntnx_vms_cd_rom_info_v2.py b/plugins/modules/ntnx_vms_cd_rom_info_v2.py index b58c8267..becc59a7 100644 --- a/plugins/modules/ntnx_vms_cd_rom_info_v2.py +++ b/plugins/modules/ntnx_vms_cd_rom_info_v2.py @@ -1,8 +1,9 @@ #!/usr/bin/python # -*- coding: utf-8 -*- -# Copyright: (c) 2021, Prem Karat +# Copyright: (c) 2024, Nutanix # GNU General Public License v3.0+ (see COPYING or https://www.gnu.org/licenses/gpl-3.0.txt) + from __future__ import absolute_import, division, print_function __metaclass__ = type @@ -13,9 +14,9 @@ description: - This module fetches information about Nutanix VM's CD ROM. - The module can fetch information about all CD ROMs or a specific CD ROM. + - This module uses PC v4 APIs based SDKs version_added: "2.0.0" author: - - Prem Karat (@premkarat) - Pradeepsingh Bhati (@bhati-pradeep) options: ext_id: @@ -35,7 +36,7 @@ EXAMPLES = r""" - name: Fetch information about all CD ROMs of a vm - ntnx_vms_cd_rom_info_v2: + nutanix.ncp.ntnx_vms_cd_rom_info_v2: nutanix_host: "{{ ip }}" nutanix_username: "{{ username }}" nutanix_password: "{{ password }}" @@ -43,7 +44,7 @@ vm_ext_id: 530567f3-abda-4913-b5d0-0ab6758ec16e - name: Fetch information about a specific CD ROM - ntnx_vms_cd_rom_info_v2: + nutanix.ncp.ntnx_vms_cd_rom_info_v2: nutanix_host: "{{ ip }}" nutanix_username: "{{ username }}" nutanix_password: "{{ password }}" diff --git a/plugins/modules/ntnx_vms_cd_rom_iso_v2.py b/plugins/modules/ntnx_vms_cd_rom_iso_v2.py index 8bb024f3..f054d898 100644 --- a/plugins/modules/ntnx_vms_cd_rom_iso_v2.py +++ b/plugins/modules/ntnx_vms_cd_rom_iso_v2.py @@ -1,8 +1,9 @@ #!/usr/bin/python # -*- coding: utf-8 -*- -# Copyright: (c) 2021, Prem Karat +# Copyright: (c) 2024, Nutanix # GNU General Public License v3.0+ (see COPYING or https://www.gnu.org/licenses/gpl-3.0.txt) + from __future__ import absolute_import, division, print_function __metaclass__ = type @@ -14,6 +15,7 @@ version_added: "2.0.0" description: - This module can insert or eject ISO from CD ROM of Nutanix VMs + - This module uses PC v4 APIs based SDKs options: state: description: @@ -146,7 +148,6 @@ type: bool default: true author: - - Prem Karat (@premkarat) - Pradeepsingh Bhati (@bhati-pradeep) extends_documentation_fragment: - nutanix.ncp.ntnx_credentials @@ -155,7 +156,7 @@ EXAMPLES = r""" - name: Inject ISO in CD ROM of a VM - ntnx_vms_cd_rom_iso_v2: + nutanix.ncp.ntnx_vms_cd_rom_iso_v2: nutanix_host: "{{ ip }}" nutanix_username: "{{ username }}" nutanix_password: "{{ password }}" diff --git a/plugins/modules/ntnx_vms_cd_rom_v2.py b/plugins/modules/ntnx_vms_cd_rom_v2.py index 56d073dc..927b8ba9 100644 --- a/plugins/modules/ntnx_vms_cd_rom_v2.py +++ b/plugins/modules/ntnx_vms_cd_rom_v2.py @@ -1,8 +1,9 @@ #!/usr/bin/python # -*- coding: utf-8 -*- -# Copyright: (c) 2021, Prem Karat +# Copyright: (c) 2024, Nutanix # GNU General Public License v3.0+ (see COPYING or https://www.gnu.org/licenses/gpl-3.0.txt) + from __future__ import absolute_import, division, print_function __metaclass__ = type @@ -14,6 +15,7 @@ version_added: "2.0.0" description: - This module allows you to create and remove CDROM for Nutanix AHV VMs. + - This module uses PC v4 APIs based SDKs options: state: description: @@ -148,7 +150,6 @@ type: bool default: true author: - - Prem Karat (@premkarat) - Pradeepsingh Bhati (@bhati-pradeep) extends_documentation_fragment: - nutanix.ncp.ntnx_credentials @@ -169,7 +170,7 @@ wait: true - name: Remove CD ROM from VM - ntnx_vms_cd_rom_v2: + nutanix.ncp.ntnx_vms_cd_rom_v2: nutanix_host: "{{ ip }}" nutanix_username: "{{ username }}" nutanix_password: "{{ password }}" diff --git a/plugins/modules/ntnx_vms_clone_v2.py b/plugins/modules/ntnx_vms_clone_v2.py index fe81d7f7..f6cecd7f 100644 --- a/plugins/modules/ntnx_vms_clone_v2.py +++ b/plugins/modules/ntnx_vms_clone_v2.py @@ -1,8 +1,9 @@ #!/usr/bin/python # -*- coding: utf-8 -*- -# Copyright: (c) 2021, Prem Karat +# Copyright: (c) 2024, Nutanix # GNU General Public License v3.0+ (see COPYING or https://www.gnu.org/licenses/gpl-3.0.txt) + from __future__ import absolute_import, division, print_function __metaclass__ = type @@ -13,6 +14,7 @@ version_added: "2.0.0" description: - This module allows you to clone a virtual machine in Nutanix AHV. + - This module uses PC v4 APIs based SDKs options: ext_id: description: @@ -410,14 +412,13 @@ - nutanix.ncp.ntnx_credentials - nutanix.ncp.ntnx_operations_v2 author: - - Prem Karat (@premkarat) - Gevorg Khachatryan (@Gevorg-Khachatryan-97) - Alaa Bishtawi (@alaa-bish) """ EXAMPLES = r""" - name: Clone VM with same attributes values - ntnx_vms_clone_v2: + nutanix.ncp.ntnx_vms_clone_v2: nutanix_host: "{{ ip }}" nutanix_username: "{{ username }}" nutanix_password: "{{ password }}" @@ -426,7 +427,7 @@ name: "cloned_VM" - name: Clone VM with different attributes values - ntnx_vms_clone_v2: + nutanix.ncp.ntnx_vms_clone_v2: nutanix_host: "{{ ip }}" nutanix_username: "{{ username }}" nutanix_password: "{{ password }}" diff --git a/plugins/modules/ntnx_vms_disks_info_v2.py b/plugins/modules/ntnx_vms_disks_info_v2.py index 6d119478..a7ce0479 100644 --- a/plugins/modules/ntnx_vms_disks_info_v2.py +++ b/plugins/modules/ntnx_vms_disks_info_v2.py @@ -1,8 +1,9 @@ #!/usr/bin/python # -*- coding: utf-8 -*- -# Copyright: (c) 2021, Prem Karat +# Copyright: (c) 2024, Nutanix # GNU General Public License v3.0+ (see COPYING or https://www.gnu.org/licenses/gpl-3.0.txt) + from __future__ import absolute_import, division, print_function __metaclass__ = type @@ -13,9 +14,9 @@ description: - This module fetches information about Nutanix VM's disks. - The module can fetch information about all disks or a specific disks. + - This module uses PC v4 APIs based SDKs version_added: "2.0.0" author: - - Prem Karat (@premkarat) - Pradeepsingh Bhati (@bhati-pradeep) options: ext_id: @@ -35,7 +36,7 @@ EXAMPLES = r""" - name: Fetch information about all disks of a vm - ntnx_vms_disks_info_v2: + nutanix.ncp.ntnx_vms_disks_info_v2: nutanix_host: "{{ ip }}" nutanix_username: "{{ username }}" nutanix_password: "{{ password }}" @@ -43,7 +44,7 @@ vm_ext_id: 530567f3-abda-4913-b5d0-0ab6758ec16e - name: Fetch information about a specific disk - ntnx_vms_disks_info_v2: + nutanix.ncp.ntnx_vms_disks_info_v2: nutanix_host: "{{ ip }}" nutanix_username: "{{ username }}" nutanix_password: "{{ password }}" diff --git a/plugins/modules/ntnx_vms_disks_v2.py b/plugins/modules/ntnx_vms_disks_v2.py index d9d8aa7c..557d531e 100644 --- a/plugins/modules/ntnx_vms_disks_v2.py +++ b/plugins/modules/ntnx_vms_disks_v2.py @@ -1,8 +1,9 @@ #!/usr/bin/python # -*- coding: utf-8 -*- -# Copyright: (c) 2021, Prem Karat +# Copyright: (c) 2024, Nutanix # GNU General Public License v3.0+ (see COPYING or https://www.gnu.org/licenses/gpl-3.0.txt) + from __future__ import absolute_import, division, print_function __metaclass__ = type @@ -14,6 +15,7 @@ version_added: "2.0.0" description: - This module allows you to manage disks for Nutanix AHV VMs. + - This module uses PC v4 APIs based SDKs options: state: description: @@ -170,7 +172,6 @@ type: bool default: true author: - - Prem Karat (@premkarat) - Pradeepsingh Bhati (@bhati-pradeep) extends_documentation_fragment: - nutanix.ncp.ntnx_credentials @@ -179,7 +180,7 @@ EXAMPLES = r""" - name: Create a disk for a VM - ntnx_vms_disks_v2: + nutanix.ncp.ntnx_vms_disks_v2: nutanix_host: "{{ ip }}" nutanix_username: "{{ username }}" nutanix_password: "{{ password }}" @@ -203,7 +204,7 @@ wait: true - name: Update a disk's storage container and size for a VM - ntnx_vms_disks_v2: + nutanix.ncp.ntnx_vms_disks_v2: nutanix_host: "{{ ip }}" nutanix_username: "{{ username }}" nutanix_password: "{{ password }}" @@ -218,7 +219,7 @@ wait: true - name: Delete a disk from a VM - ntnx_vms_disks_v2: + nutanix.ncp.ntnx_vms_disks_v2: vm_ext_id: "98b9dc89-be08-3c56-b554-692b8b676fd6" ext_id: "98b9dc89-be08-3c56-b554-692b8b676fd7" state: absent diff --git a/plugins/modules/ntnx_vms_info_v2.py b/plugins/modules/ntnx_vms_info_v2.py index 12e0d187..9365aeb5 100644 --- a/plugins/modules/ntnx_vms_info_v2.py +++ b/plugins/modules/ntnx_vms_info_v2.py @@ -1,8 +1,9 @@ #!/usr/bin/python # -*- coding: utf-8 -*- -# Copyright: (c) 2021, Prem Karat +# Copyright: (c) 2024, Nutanix # GNU General Public License v3.0+ (see COPYING or https://www.gnu.org/licenses/gpl-3.0.txt) + from __future__ import absolute_import, division, print_function __metaclass__ = type @@ -13,9 +14,9 @@ description: - This module fetches information about Nutanix AHV based PC VMs - The module can fetch information about all VMs or a specific AHV based PC VMs + - This module uses PC v4 APIs based SDKs version_added: "2.0.0" author: - - Prem Karat (@premkarat) - Pradeepsingh Bhati (@bhati-pradeep) options: ext_id: @@ -30,14 +31,14 @@ EXAMPLES = r""" - name: Fetch information about all vms - ntnx_vms_info_v2: + nutanix.ncp.ntnx_vms_info_v2: nutanix_host: "{{ ip }}" nutanix_username: "{{ username }}" nutanix_password: "{{ password }}" validate_certs: false - name: Fetch information about a specific vm - ntnx_vms_info_v2: + nutanix.ncp.ntnx_vms_info_v2: nutanix_host: "{{ ip }}" nutanix_username: "{{ username }}" nutanix_password: "{{ password }}" diff --git a/plugins/modules/ntnx_vms_ngt_info_v2.py b/plugins/modules/ntnx_vms_ngt_info_v2.py index 37d988fa..84169d6f 100644 --- a/plugins/modules/ntnx_vms_ngt_info_v2.py +++ b/plugins/modules/ntnx_vms_ngt_info_v2.py @@ -1,8 +1,9 @@ #!/usr/bin/python # -*- coding: utf-8 -*- -# Copyright: (c) 2021, Prem Karat +# Copyright: (c) 2024, Nutanix # GNU General Public License v3.0+ (see COPYING or https://www.gnu.org/licenses/gpl-3.0.txt) + from __future__ import absolute_import, division, print_function __metaclass__ = type @@ -12,9 +13,9 @@ short_description: Get Nutanix Guest Tools (NGT) current config for a virtual machine. description: - This module retrieves Nutanix Guest Tools (NGT) current config for a virtual machine in a Nutanix cluster. + - This module uses PC v4 APIs based SDKs version_added: "2.0.0" author: - - Prem Karat (@premkarat) - Pradeepsingh Bhati (@bhati-pradeep) options: ext_id: @@ -28,17 +29,13 @@ EXAMPLES = r""" - name: Get NGT info for a virtual machine - ntnx_vm_ngt_info_v2: + nutanix.ncp.ntnx_vms_ngt_info_v2: nutanix_host: "{{ ip }}" nutanix_username: "{{ username }}" nutanix_password: "{{ password }}" validate_certs: false ext_id: "98b9dc89-be08-3c56-b554-692b8b676fd1" register: result - -- name: Print NGT info - debug: - var: result.response """ RETURN = r""" diff --git a/plugins/modules/ntnx_vms_ngt_insert_iso_v2.py b/plugins/modules/ntnx_vms_ngt_insert_iso_v2.py index 34fd3626..e92e4410 100644 --- a/plugins/modules/ntnx_vms_ngt_insert_iso_v2.py +++ b/plugins/modules/ntnx_vms_ngt_insert_iso_v2.py @@ -1,8 +1,9 @@ #!/usr/bin/python # -*- coding: utf-8 -*- -# Copyright: (c) 2021, Prem Karat +# Copyright: (c) 2024, Nutanix # GNU General Public License v3.0+ (see COPYING or https://www.gnu.org/licenses/gpl-3.0.txt) + from __future__ import absolute_import, division, print_function __metaclass__ = type @@ -12,9 +13,9 @@ short_description: Insert Nutanix Guest Tools (NGT) ISO into a virtual machine. description: - This module allows you to insert the Nutanix Guest Tools (NGT) ISO into a virtual machine's available CD-ROM in Nutanix PC. + - This module uses PC v4 APIs based SDKs version_added: "2.0.0" author: - - Prem Karat (@premkarat) - Pradeepsingh Bhati (@bhati-pradeep) options: ext_id: @@ -44,7 +45,7 @@ EXAMPLES = r""" - name: Insert NGT ISO into virtual machine - ntnx_vm_ngt_insert_iso_v2: + nutanix.ncp.ntnx_vms_ngt_insert_iso_v2: nutanix_host: "{{ ip }}" nutanix_username: "{{ username }}" nutanix_password: "{{ password }}" diff --git a/plugins/modules/ntnx_vms_ngt_update_v2.py b/plugins/modules/ntnx_vms_ngt_update_v2.py index 2dbe2748..364e8a13 100644 --- a/plugins/modules/ntnx_vms_ngt_update_v2.py +++ b/plugins/modules/ntnx_vms_ngt_update_v2.py @@ -1,8 +1,9 @@ #!/usr/bin/python # -*- coding: utf-8 -*- -# Copyright: (c) 2021, Prem Karat +# Copyright: (c) 2024, Nutanix # GNU General Public License v3.0+ (see COPYING or https://www.gnu.org/licenses/gpl-3.0.txt) + from __future__ import absolute_import, division, print_function __metaclass__ = type @@ -13,8 +14,8 @@ version_added: "2.0.0" description: - This module allows you to update the Nutanix Guest Tools (NGT) configuration for a VM. + - This module uses PC v4 APIs based SDKs author: - - Prem Karat (@premkarat) - Pradeepsingh Bhati (@bhati-pradeep) options: ext_id: @@ -44,7 +45,7 @@ EXAMPLES = r""" - name: Update NGT configuration for a VM - ntnx_vm_ngt_update: + nutanix.ncp.ntnx_vms_ngt_update_v2: nutanix_host: "{{ ip }}" nutanix_username: "{{ username }}" nutanix_password: "{{ password }}" diff --git a/plugins/modules/ntnx_vms_ngt_upgrade_v2.py b/plugins/modules/ntnx_vms_ngt_upgrade_v2.py index d45207b9..c766c238 100644 --- a/plugins/modules/ntnx_vms_ngt_upgrade_v2.py +++ b/plugins/modules/ntnx_vms_ngt_upgrade_v2.py @@ -1,8 +1,9 @@ #!/usr/bin/python # -*- coding: utf-8 -*- -# Copyright: (c) 2021, Prem Karat +# Copyright: (c) 2024, Nutanix # GNU General Public License v3.0+ (see COPYING or https://www.gnu.org/licenses/gpl-3.0.txt) + from __future__ import absolute_import, division, print_function __metaclass__ = type @@ -13,8 +14,8 @@ version_added: "2.0.0" description: - This module upgrades Nutanix Guest Tools (NGT) on a VM in a Nutanix PC. + - This module uses PC v4 APIs based SDKs author: - - Prem Karat (@premkarat) - Pradeepsingh Bhati (@bhati-pradeep) options: ext_id: @@ -54,7 +55,7 @@ EXAMPLES = r""" - name: Upgrade NGT on a VM - ntnx_vm_ngt_upgrade: + nutanix.ncp.ntnx_vms_ngt_upgrade_v2: nutanix_host: "{{ ip }}" nutanix_username: "{{ username }}" nutanix_password: "{{ password }}" diff --git a/plugins/modules/ntnx_vms_ngt_v2.py b/plugins/modules/ntnx_vms_ngt_v2.py index e0822ba8..c1eafb31 100644 --- a/plugins/modules/ntnx_vms_ngt_v2.py +++ b/plugins/modules/ntnx_vms_ngt_v2.py @@ -1,8 +1,9 @@ #!/usr/bin/python # -*- coding: utf-8 -*- -# Copyright: (c) 2021, Prem Karat +# Copyright: (c) 2024, Nutanix # GNU General Public License v3.0+ (see COPYING or https://www.gnu.org/licenses/gpl-3.0.txt) + from __future__ import absolute_import, division, print_function __metaclass__ = type @@ -13,9 +14,9 @@ short_description: Install or uninstall Nutanix Guest Tools (NGT) on a VM. description: - This module allows you to install or uninstall Nutanix Guest Tools (NGT) on a VM in a Nutanix cluster. + - This module uses PC v4 APIs based SDKs version_added: "2.0.0" author: - - Prem Karat (@premkarat) - Pradeepsingh Bhati (@bhati-pradeep) notes: - Module will skip if install/uninstall is not required checking the current installation status. @@ -96,7 +97,7 @@ EXAMPLES = r""" - name: Install NGT on a VM - ntnx_vm_ngt_installation_v2: + nutanix.ncp.ntnx_vms_ngt_v2: nutanix_host: "{{ ip }}" nutanix_username: "{{ username }}" nutanix_password: "{{ password }}" @@ -113,7 +114,7 @@ start_time: "2022-01-01T00:00:00Z" - name: Uninstall NGT from a VM - ntnx_vm_ngt_installation_v2: + nutanix.ncp.ntnx_vms_ngt_v2: nutanix_host: "{{ ip }}" nutanix_username: "{{ username }}" nutanix_password: "{{ password }}" diff --git a/plugins/modules/ntnx_vms_nics_info_v2.py b/plugins/modules/ntnx_vms_nics_info_v2.py index dc719021..53fe9ead 100644 --- a/plugins/modules/ntnx_vms_nics_info_v2.py +++ b/plugins/modules/ntnx_vms_nics_info_v2.py @@ -1,8 +1,9 @@ #!/usr/bin/python # -*- coding: utf-8 -*- -# Copyright: (c) 2021, Prem Karat +# Copyright: (c) 2024, Nutanix # GNU General Public License v3.0+ (see COPYING or https://www.gnu.org/licenses/gpl-3.0.txt) + from __future__ import absolute_import, division, print_function __metaclass__ = type @@ -13,6 +14,7 @@ description: - This module fetches information about Nutanix VM's NICs. - The module can fetch information about all NICs or a specific NICs. + - This module uses PC v4 APIs based SDKs version_added: "2.0.0" options: ext_id: @@ -29,13 +31,12 @@ - nutanix.ncp.ntnx_credentials - nutanix.ncp.ntnx_info_v2 author: - - Prem Karat (@premkarat) - Pradeepsingh Bhati (@bhati-pradeep) """ EXAMPLES = r""" - name: Fetch information about all nics of a vm - ntnx_vms_nics_info_v2: + nutanix.ncp.ntnx_vms_nics_info_v2: nutanix_host: "{{ ip }}" nutanix_username: "{{ username }}" nutanix_password: "{{ password }}" @@ -43,7 +44,7 @@ vm_ext_id: 530567f3-abda-4913-b5d0-0ab6758ec16e - name: Fetch information about a specific nic - ntnx_vms_nics_info_v2: + nutanix.ncp.ntnx_vms_nics_info_v2: nutanix_host: "{{ ip }}" nutanix_username: "{{ username }}" nutanix_password: "{{ password }}" diff --git a/plugins/modules/ntnx_vms_nics_ip_v2.py b/plugins/modules/ntnx_vms_nics_ip_v2.py index 91bf7760..a8b8d09f 100644 --- a/plugins/modules/ntnx_vms_nics_ip_v2.py +++ b/plugins/modules/ntnx_vms_nics_ip_v2.py @@ -1,8 +1,9 @@ #!/usr/bin/python # -*- coding: utf-8 -*- -# Copyright: (c) 2021, Prem Karat +# Copyright: (c) 2024, Nutanix # GNU General Public License v3.0+ (see COPYING or https://www.gnu.org/licenses/gpl-3.0.txt) + from __future__ import absolute_import, division, print_function __metaclass__ = type @@ -12,9 +13,9 @@ short_description: Assign/Release IP to/from Nutanix VM NICs. description: - This module allows you to assign or release IP from Nutanix VM NICs. + - This module uses PC v4 APIs based SDKs version_added: "2.0.0" author: - - Prem Karat (@premkarat) - Pradeepsingh Bhati (@bhati-pradeep) notes: - Module will will skip releasing IP from NIC, if no IP is assigned to NIC. @@ -62,7 +63,7 @@ EXAMPLES = r""" - name: Assign IP - nutanix.ncp.ntnx_vms_nic_assign_ip_v2: + nutanix.ncp.ntnx_vms_nics_ip_v2: nutanix_host: "" nutanix_username: "" nutanix_password: "" @@ -74,7 +75,7 @@ register: result - name: Release IP - nutanix.ncp.ntnx_vms_nic_assign_ip_v2: + nutanix.ncp.ntnx_vms_nics_ip_v2: nutanix_host: "" nutanix_username: "" nutanix_password: "" diff --git a/plugins/modules/ntnx_vms_nics_migrate_v2.py b/plugins/modules/ntnx_vms_nics_migrate_v2.py index c874bc63..fd42448d 100644 --- a/plugins/modules/ntnx_vms_nics_migrate_v2.py +++ b/plugins/modules/ntnx_vms_nics_migrate_v2.py @@ -1,8 +1,9 @@ #!/usr/bin/python # -*- coding: utf-8 -*- -# Copyright: (c) 2021, Prem Karat +# Copyright: (c) 2024, Nutanix # GNU General Public License v3.0+ (see COPYING or https://www.gnu.org/licenses/gpl-3.0.txt) + from __future__ import absolute_import, division, print_function __metaclass__ = type @@ -12,8 +13,8 @@ short_description: Migrate a NIC to another subnet in Nutanix VM. description: - Migrates a network device attached to a Virtual Machine to another subnet. + - This module uses PC v4 APIs based SDKs author: - - Prem Karat (@premkarat) - Pradeepsingh Bhati (@bhati-pradeep) options: wait: diff --git a/plugins/modules/ntnx_vms_nics_v2.py b/plugins/modules/ntnx_vms_nics_v2.py index ebd38f56..568743c0 100644 --- a/plugins/modules/ntnx_vms_nics_v2.py +++ b/plugins/modules/ntnx_vms_nics_v2.py @@ -1,8 +1,9 @@ #!/usr/bin/python # -*- coding: utf-8 -*- -# Copyright: (c) 2021, Prem Karat +# Copyright: (c) 2024, Nutanix # GNU General Public License v3.0+ (see COPYING or https://www.gnu.org/licenses/gpl-3.0.txt) + from __future__ import absolute_import, division, print_function __metaclass__ = type @@ -12,9 +13,9 @@ short_description: Manage NICs of Nutanix VMs description: - This module allows you to create, update, and delete NICs of Nutanix VMs. + - This module uses PC v4 APIs based SDKs version_added: "2.0.0" author: - - Prem Karat (@premkarat) - Pradeepsingh Bhati (@bhati-pradeep) options: state: diff --git a/plugins/modules/ntnx_vms_power_actions_v2.py b/plugins/modules/ntnx_vms_power_actions_v2.py index 3652889e..65de9127 100644 --- a/plugins/modules/ntnx_vms_power_actions_v2.py +++ b/plugins/modules/ntnx_vms_power_actions_v2.py @@ -1,7 +1,7 @@ #!/usr/bin/python # -*- coding: utf-8 -*- -# Copyright: (c) 2021, Prem Karat +# Copyright: (c) 2024, Nutanix # GNU General Public License v3.0+ (see COPYING or https://www.gnu.org/licenses/gpl-3.0.txt) from __future__ import absolute_import, division, print_function @@ -14,6 +14,7 @@ short_description: Perform power actions on Nutanix VMs description: - This module allows you to perform power actions on Nutanix VMs, such as powering on, powering off, resetting, and more. + - This module uses PC v4 APIs based SDKs options: ext_id: description: @@ -64,13 +65,12 @@ - nutanix.ncp.ntnx_credentials - nutanix.ncp.ntnx_operations_v2 author: - - Prem Karat (@premkarat) - George Ghawali (@george-ghawali) """ EXAMPLES = r""" - name: Power on a VM - ntnx_vms_power_actions_v2: + nutanix.ncp.ntnx_vms_power_actions_v2: nutanix_host: "{{ ip }}" validate_certs: false nutanix_username: "{{ username }}" @@ -81,7 +81,7 @@ register: result - name: Power off a VM - ntnx_vms_power_actions_v2: + nutanix.ncp.ntnx_vms_power_actions_v2: nutanix_host: "{{ ip }}" validate_certs: false nutanix_username: "{{ username }}" @@ -92,7 +92,7 @@ register: result - name: Reset a VM - ntnx_vms_power_actions_v2: + nutanix.ncp.ntnx_vms_power_actions_v2: nutanix_host: "{{ ip }}" validate_certs: false nutanix_username: "{{ username }}" @@ -103,7 +103,7 @@ register: result - name: Shutdown a VM using ACPI - ntnx_vms_power_actions_v2: + nutanix.ncp.ntnx_vms_power_actions_v2: nutanix_host: "{{ ip }}" validate_certs: false nutanix_username: "{{ username }}" @@ -114,7 +114,7 @@ register: result - name: Shutdown a VM using NGT - ntnx_vms_power_actions_v2: + nutanix.ncp.ntnx_vms_power_actions_v2: nutanix_host: "{{ ip }}" validate_certs: false nutanix_username: "{{ username }}" @@ -125,7 +125,7 @@ register: result - name: Reboot a VM using ACPI - ntnx_vms_power_actions_v2: + nutanix.ncp.ntnx_vms_power_actions_v2: nutanix_host: "{{ ip }}" validate_certs: false nutanix_username: "{{ username }}" @@ -136,7 +136,7 @@ register: result - name: Reboot a VM using NGT - ntnx_vms_power_actions_v2: + nutanix.ncp.ntnx_vms_power_actions_v2: nutanix_host: "{{ ip }}" validate_certs: false nutanix_username: "{{ username }}" @@ -150,7 +150,7 @@ register: result - name: Power on a VM with guest power state transition configuration - ntnx_vms_power_actions_v2: + nutanix.ncp.ntnx_vms_power_actions_v2: nutanix_host: "{{ ip }}" validate_certs: false nutanix_username: "{{ username }}" diff --git a/plugins/modules/ntnx_vms_serial_port_info_v2.py b/plugins/modules/ntnx_vms_serial_port_info_v2.py index d3a636c3..ab0a9705 100644 --- a/plugins/modules/ntnx_vms_serial_port_info_v2.py +++ b/plugins/modules/ntnx_vms_serial_port_info_v2.py @@ -1,8 +1,9 @@ #!/usr/bin/python # -*- coding: utf-8 -*- -# Copyright: (c) 2021, Prem Karat +# Copyright: (c) 2024, Nutanix # GNU General Public License v3.0+ (see COPYING or https://www.gnu.org/licenses/gpl-3.0.txt) + from __future__ import absolute_import, division, print_function __metaclass__ = type @@ -13,9 +14,9 @@ description: - This module fetches information about Nutanix VM's serial ports. - The module can fetch information about all serial ports or a specific serial ports. + - This module uses PC v4 APIs based SDKs version_added: "2.0.0" author: - - Prem Karat (@premkarat) - Pradeepsingh Bhati (@bhati-pradeep) options: ext_id: @@ -35,7 +36,7 @@ EXAMPLES = r""" - name: Fetch information about all serial ports of a vm - ntnx_vms_serial_port_info_v2: + nutanix.ncp.ntnx_vms_serial_port_info_v2: nutanix_host: "{{ ip }}" nutanix_username: "{{ username }}" nutanix_password: "{{ password }}" @@ -43,7 +44,7 @@ vm_ext_id: 00000-00000-000000-000000 - name: Fetch information about a specific serial port - ntnx_vms_serial_port_info_v2: + nutanix.ncp.ntnx_vms_serial_port_info_v2: nutanix_host: "{{ ip }}" nutanix_username: "{{ username }}" nutanix_password: "{{ password }}" diff --git a/plugins/modules/ntnx_vms_serial_port_v2.py b/plugins/modules/ntnx_vms_serial_port_v2.py index 443f4850..2a610c85 100644 --- a/plugins/modules/ntnx_vms_serial_port_v2.py +++ b/plugins/modules/ntnx_vms_serial_port_v2.py @@ -1,8 +1,9 @@ #!/usr/bin/python # -*- coding: utf-8 -*- -# Copyright: (c) 2021, Prem Karat +# Copyright: (c) 2024, Nutanix # GNU General Public License v3.0+ (see COPYING or https://www.gnu.org/licenses/gpl-3.0.txt) + from __future__ import absolute_import, division, print_function __metaclass__ = type @@ -12,6 +13,7 @@ version_added: "2.0.0" description: - This module allows you to manage serial port for Nutanix AHV VMs. + - This module uses PC v4 APIs based SDKs short_description: VM Serial Port module which supports VM serial port CRUD states options: state: @@ -49,7 +51,6 @@ - Indicates whether the serial port is connected or not. type: bool author: - - Prem Karat (@premkarat) - Alaa Bishtawi (@alaa-bish) extends_documentation_fragment: - nutanix.ncp.ntnx_credentials @@ -58,7 +59,7 @@ EXAMPLES = r""" - name: Create Serial Port - ntnx_vms_serial_port_v2: + nutanix.ncp.ntnx_vms_serial_port_v2: nutanix_host: "{{ ip }}" nutanix_username: "{{ username }}" nutanix_password: "{{ password }}" @@ -69,7 +70,7 @@ is_connected: true - name: Update Serial Port connection status - ntnx_vms_serial_port_v2: + nutanix.ncp.ntnx_vms_serial_port_v2: nutanix_host: "{{ ip }}" nutanix_username: "{{ username }}" nutanix_password: "{{ password }}" @@ -80,7 +81,7 @@ is_connected: false - name: Delete Serial Port - ntnx_vms_serial_port_v2: + nutanix.ncp.ntnx_vms_serial_port_v2: nutanix_host: "{{ ip }}" nutanix_username: "{{ username }}" nutanix_password: "{{ password }}" diff --git a/plugins/modules/ntnx_vms_stage_guest_customization_v2.py b/plugins/modules/ntnx_vms_stage_guest_customization_v2.py index c80d6aa9..a431bb4c 100644 --- a/plugins/modules/ntnx_vms_stage_guest_customization_v2.py +++ b/plugins/modules/ntnx_vms_stage_guest_customization_v2.py @@ -1,8 +1,9 @@ #!/usr/bin/python # -*- coding: utf-8 -*- -# Copyright: (c) 2021, Prem Karat +# Copyright: (c) 2024, Nutanix # GNU General Public License v3.0+ (see COPYING or https://www.gnu.org/licenses/gpl-3.0.txt) + from __future__ import absolute_import, division, print_function __metaclass__ = type @@ -14,6 +15,7 @@ short_description: Stage guest customization configuration for a Nutanix VM description: - This module stages guest customization configuration for a Nutanix VM. + - This module uses PC v4 APIs based SDKs version_added: "2.0.0" options: ext_id: @@ -121,7 +123,6 @@ - The value of the key-value pair. type: raw author: - - Prem Karat (@premkarat) - Alaa Bishtawi (@alaa-bish) extends_documentation_fragment: - nutanix.ncp.ntnx_credentials @@ -129,7 +130,7 @@ """ EXAMPLES = r""" - name: Update guest script - ntnx_vms_stage_guest_customization_v2: + nutanix.ncp.ntnx_vms_stage_guest_customization_v2: ext_id: "7334f142-9653-4c84-7287-3c758d1a0aeb" config: cloudinit: diff --git a/plugins/modules/ntnx_vms_v2.py b/plugins/modules/ntnx_vms_v2.py index 60f2482f..70dbb4a7 100644 --- a/plugins/modules/ntnx_vms_v2.py +++ b/plugins/modules/ntnx_vms_v2.py @@ -1,8 +1,9 @@ #!/usr/bin/python # -*- coding: utf-8 -*- -# Copyright: (c) 2021, Prem Karat +# Copyright: (c) 2024, Nutanix # GNU General Public License v3.0+ (see COPYING or https://www.gnu.org/licenses/gpl-3.0.txt) + from __future__ import absolute_import, division, print_function __metaclass__ = type @@ -11,7 +12,9 @@ module: ntnx_vms_v2 short_description: "Create, Update and delete VMs in Nutanix AHV based PC" version_added: 2.0.0 -description: "Create, Update and delete VMs in Nutanix AHV based PC" +description: + - Create, Update and delete VMs in Nutanix AHV based PC + - This module uses PC v4 APIs based SDKs notes: - During vm update, Update or create of subresources like disks, nics, cd_roms, gpus, serial_ports, etc. is not supported. - Use subresources specific modules to update or create subresources. @@ -921,14 +924,13 @@ - nutanix.ncp.ntnx_credentials - nutanix.ncp.ntnx_operations_v2 author: - - Prem Karat (@premkarat) - Gevorg Khachatryan (@Gevorg-Khachatryan-97) - Alaa Bishtawi (@alaa-bish) - Pradeepsingh Bhati (@bhati-pradeep) """ EXAMPLES = r""" - name: Create VM with minimum requirements - ntnx_vms_v2: + nutanix.ncp.ntnx_vms_v2: name: "test_name" description: "ansible test" cluster: @@ -937,7 +939,7 @@ ignore_errors: true - name: Create VM with full requirements - ntnx_vms_v2: + nutanix.ncp.ntnx_vms_v2: name: "test_name" description: "ansible test" cluster: @@ -965,7 +967,7 @@ register: result ignore_errors: true - name: Update VM - ntnx_vms_v2: + nutanix.ncp.ntnx_vms_v2: state: present ext_id: "33dba56c-f123-4ec6-8b38-901e1cf716c2" name: "new_name_updated" @@ -987,7 +989,7 @@ register: result ignore_errors: true - name: Delete VM - ntnx_vms_v2: + nutanix.ncp.ntnx_vms_v2: state: absent ext_id: "33dba56c-f123-4ec6-8b38-901e1cf716c2" register: result diff --git a/plugins/modules/ntnx_volume_groups_disks_info_v2.py b/plugins/modules/ntnx_volume_groups_disks_info_v2.py index 93fc0e97..d69cf2c0 100644 --- a/plugins/modules/ntnx_volume_groups_disks_info_v2.py +++ b/plugins/modules/ntnx_volume_groups_disks_info_v2.py @@ -1,8 +1,9 @@ #!/usr/bin/python # -*- coding: utf-8 -*- -# Copyright: (c) 2021, Prem Karat +# Copyright: (c) 2024, Nutanix # GNU General Public License v3.0+ (see COPYING or https://www.gnu.org/licenses/gpl-3.0.txt) + from __future__ import absolute_import, division, print_function __metaclass__ = type @@ -13,9 +14,9 @@ description: - This module fetches information about Nutanix PC Volume groups disks. - The module can fetch information about all Volume groups or a specific Volume group disk. + - This module uses PC v4 APIs based SDKs version_added: "2.0.0" author: - - Prem Karat (@premkarat) - Pradeepsingh Bhati (@bhati-pradeep) options: ext_id: @@ -35,7 +36,7 @@ EXAMPLES = r""" - name: Fetch information about all Disks of VG - ntnx_volume_groups_disks_info_v2: + nutanix.ncp.ntnx_volume_groups_disks_info_v2: nutanix_host: "{{ ip }}" nutanix_username: "{{ username }}" nutanix_password: "{{ password }}" @@ -43,7 +44,7 @@ validate_certs: false - name: Fetch information about all Disks of VG using page and limits - ntnx_volume_groups_disks_info_v2: + nutanix.ncp.ntnx_volume_groups_disks_info_v2: nutanix_host: "{{ ip }}" nutanix_username: "{{ username }}" nutanix_password: "{{ password }}" @@ -53,7 +54,7 @@ validate_certs: false - name: Fetch information about a specific VG Disk - ntnx_volume_groups_disks_info_v2: + nutanix.ncp.ntnx_volume_groups_disks_info_v2: nutanix_host: "{{ ip }}" nutanix_username: "{{ username }}" nutanix_password: "{{ password }}" diff --git a/plugins/modules/ntnx_volume_groups_disks_v2.py b/plugins/modules/ntnx_volume_groups_disks_v2.py index 9e1d4a31..532ee787 100644 --- a/plugins/modules/ntnx_volume_groups_disks_v2.py +++ b/plugins/modules/ntnx_volume_groups_disks_v2.py @@ -1,8 +1,9 @@ #!/usr/bin/python # -*- coding: utf-8 -*- -# Copyright: (c) 2021, Prem Karat +# Copyright: (c) 2024, Nutanix # GNU General Public License v3.0+ (see COPYING or https://www.gnu.org/licenses/gpl-3.0.txt) + from __future__ import absolute_import, division, print_function __metaclass__ = type @@ -13,9 +14,9 @@ short_description: Manage Nutanix volume group disks description: - This module allows you to create and delete volume group disks in Nutanix. + - This module uses PC v4 APIs based SDKs version_added: "2.0.0" author: - - Prem Karat (@premkarat) - Pradeepsingh Bhati (@bhati-pradeep) options: state: @@ -101,7 +102,7 @@ EXAMPLES = r""" - name: Create disk with all attributes - ntnx_volume_groups_disks_v2: + nutanix.ncp.ntnx_volume_groups_disks_v2: nutanix_host: "{{ ip }}" nutanix_username: "{{ username }}" nutanix_password: "{{ password }}" @@ -120,8 +121,7 @@ ignore_errors: true - name: Create disk with vdisk ref - check_mode: true - ntnx_volume_groups_disks_v2: + nutanix.ncp.ntnx_volume_groups_disks_v2: nutanix_host: "{{ ip }}" nutanix_username: "{{ username }}" nutanix_password: "{{ password }}" @@ -140,7 +140,7 @@ - name: Create disk from volume group disk - ntnx_volume_groups_disks_v2: + nutanix.ncp.ntnx_volume_groups_disks_v2: nutanix_host: "{{ ip }}" nutanix_username: "{{ username }}" nutanix_password: "{{ password }}" @@ -158,7 +158,7 @@ ignore_errors: true - name: Delete a volume group disk - ntnx_volume_groups_disks_v2: + nutanix.ncp.ntnx_volume_groups_disks_v2: nutanix_host: "{{ ip }}" nutanix_username: "{{ username }}" nutanix_password: "{{ password }}" diff --git a/plugins/modules/ntnx_volume_groups_info_v2.py b/plugins/modules/ntnx_volume_groups_info_v2.py index c6755f55..eea3aaa0 100644 --- a/plugins/modules/ntnx_volume_groups_info_v2.py +++ b/plugins/modules/ntnx_volume_groups_info_v2.py @@ -1,8 +1,9 @@ #!/usr/bin/python # -*- coding: utf-8 -*- -# Copyright: (c) 2021, Prem Karat +# Copyright: (c) 2024, Nutanix # GNU General Public License v3.0+ (see COPYING or https://www.gnu.org/licenses/gpl-3.0.txt) + from __future__ import absolute_import, division, print_function __metaclass__ = type @@ -13,9 +14,9 @@ description: - This module fetches information about Nutanix PC Volume groups. - The module can fetch information about all Volume groups or a specific Volume group. + - This module uses PC v4 APIs based SDKs version_added: "2.0.0" author: - - Prem Karat (@premkarat) - Pradeepsingh Bhati (@bhati-pradeep) options: ext_id: @@ -30,14 +31,14 @@ EXAMPLES = r""" - name: Fetch information about all VGs - ntnx_volume_groups_info_v2: + nutanix.ncp.ntnx_volume_groups_info_v2: nutanix_host: "{{ ip }}" nutanix_username: "{{ username }}" nutanix_password: "{{ password }}" validate_certs: false - name: Fetch information about a specific VG - ntnx_volume_groups_info_v2: + nutanix.ncp.ntnx_volume_groups_info_v2: nutanix_host: "{{ ip }}" nutanix_username: "{{ username }}" nutanix_password: "{{ password }}" @@ -45,7 +46,7 @@ ext_id: 530567f3-abda-4913-b5d0-0ab6758ec1653 - name: Fetch information about a specific VG - ntnx_volume_groups_info_v2: + nutanix.ncp.ntnx_volume_groups_info_v2: nutanix_host: "{{ ip }}" nutanix_username: "{{ username }}" nutanix_password: "{{ password }}" diff --git a/plugins/modules/ntnx_volume_groups_iscsi_clients_info_v2.py b/plugins/modules/ntnx_volume_groups_iscsi_clients_info_v2.py index 51bd912f..66125ed9 100644 --- a/plugins/modules/ntnx_volume_groups_iscsi_clients_info_v2.py +++ b/plugins/modules/ntnx_volume_groups_iscsi_clients_info_v2.py @@ -1,8 +1,9 @@ #!/usr/bin/python # -*- coding: utf-8 -*- -# Copyright: (c) 2021, Prem Karat +# Copyright: (c) 2024, Nutanix # GNU General Public License v3.0+ (see COPYING or https://www.gnu.org/licenses/gpl-3.0.txt) + from __future__ import absolute_import, division, print_function __metaclass__ = type @@ -16,7 +17,6 @@ - Fetch iscsi client if C(ext_id) is given version_added: "2.0.0" author: - - Prem Karat (@premkarat) - Pradeepsingh Bhati (@bhati-pradeep) options: ext_id: @@ -32,7 +32,7 @@ EXAMPLES = r""" - name: Fetch specific iscsi client info - ntnx_volume_groups_iscsi_clients_info_v2: + nutanix.ncp.ntnx_volume_groups_iscsi_clients_info_v2: nutanix_host: "{{ ip }}" nutanix_username: "{{ username }}" nutanix_password: "{{ password }}" @@ -41,7 +41,7 @@ register: result - name: Fetch all iscsi clients attached across VGs - ntnx_volume_groups_iscsi_clients_info_v2: + nutanix.ncp.ntnx_volume_groups_iscsi_clients_info_v2: nutanix_host: "{{ ip }}" nutanix_username: "{{ username }}" nutanix_password: "{{ password }}" diff --git a/plugins/modules/ntnx_volume_groups_iscsi_clients_v2.py b/plugins/modules/ntnx_volume_groups_iscsi_clients_v2.py index ccb37a7c..b697e742 100644 --- a/plugins/modules/ntnx_volume_groups_iscsi_clients_v2.py +++ b/plugins/modules/ntnx_volume_groups_iscsi_clients_v2.py @@ -1,8 +1,9 @@ #!/usr/bin/python # -*- coding: utf-8 -*- -# Copyright: (c) 2021, Prem Karat +# Copyright: (c) 2024, Nutanix # GNU General Public License v3.0+ (see COPYING or https://www.gnu.org/licenses/gpl-3.0.txt) + from __future__ import absolute_import, division, print_function __metaclass__ = type @@ -13,9 +14,9 @@ short_description: Manage Nutanix volume groups iscsi clients in Nutanix PC. description: - This module allows you to attach & detach ISCSI clients to/from a volume group in a Nutanix cluster. + - This module uses PC v4 APIs based SDKs version_added: "2.0.0" author: - - Prem Karat (@premkarat) - Pradeepsingh Bhati (@bhati-pradeep) options: state: @@ -132,7 +133,7 @@ EXAMPLES = r""" - name: Attach iscsi client to VG using initiator name - ntnx_volume_groups_iscsi_clients_v2: + nutanix.ncp.ntnx_volume_groups_iscsi_clients_v2: nutanix_host: "{{ ip }}" nutanix_username: "{{ username }}" nutanix_password: "{{ password }}" @@ -143,7 +144,7 @@ register: result - name: Attach using ipv4 address - ntnx_volume_groups_iscsi_clients_v2: + nutanix.ncp.ntnx_volume_groups_iscsi_clients_v2: nutanix_host: "{{ ip }}" nutanix_username: "{{ username }}" nutanix_password: "{{ password }}" @@ -159,7 +160,7 @@ register: result - name: Detach client from VG - ntnx_volume_groups_iscsi_clients_v2: + nutanix.ncp.ntnx_volume_groups_iscsi_clients_v2: nutanix_host: "{{ ip }}" nutanix_username: "{{ username }}" nutanix_password: "{{ password }}" diff --git a/plugins/modules/ntnx_volume_groups_v2.py b/plugins/modules/ntnx_volume_groups_v2.py index f53c8236..dca8ae4a 100644 --- a/plugins/modules/ntnx_volume_groups_v2.py +++ b/plugins/modules/ntnx_volume_groups_v2.py @@ -1,8 +1,9 @@ #!/usr/bin/python # -*- coding: utf-8 -*- -# Copyright: (c) 2021, Prem Karat +# Copyright: (c) 2024, Nutanix # GNU General Public License v3.0+ (see COPYING or https://www.gnu.org/licenses/gpl-3.0.txt) + from __future__ import absolute_import, division, print_function __metaclass__ = type @@ -13,9 +14,9 @@ short_description: Manage Nutanix volume group in PC description: - This module allows you to create and delete volume group in Nutanix PC. + - This module uses PC v4 APIs based SDKs version_added: "2.0.0" author: - - Prem Karat (@premkarat) - Pradeepsingh Bhati (@bhati-pradeep) options: state: @@ -159,7 +160,7 @@ EXAMPLES = r""" - name: Create Volume group with all config and enabled chap auth - ntnx_volume_groups_v2: + nutanix.ncp.ntnx_volume_groups_v2: nutanix_host: "{{ ip }}" nutanix_username: "{{ username }}" nutanix_password: "{{ password }}" @@ -181,7 +182,7 @@ ignore_errors: true - name: Create Volume group with min spec and no Auth - ntnx_volume_groups_v2: + nutanix.ncp.ntnx_volume_groups_v2: nutanix_host: "{{ ip }}" nutanix_username: "{{ username }}" nutanix_password: "{{ password }}" @@ -193,7 +194,7 @@ ignore_errors: true - name: Delete Volume groups - ntnx_volume_groups_v2: + nutanix.ncp.ntnx_volume_groups_v2: nutanix_host: "{{ ip }}" nutanix_username: "{{ username }}" nutanix_password: "{{ password }}" diff --git a/plugins/modules/ntnx_volume_groups_vms_v2.py b/plugins/modules/ntnx_volume_groups_vms_v2.py index 2bd5e679..c744b044 100644 --- a/plugins/modules/ntnx_volume_groups_vms_v2.py +++ b/plugins/modules/ntnx_volume_groups_vms_v2.py @@ -1,8 +1,9 @@ #!/usr/bin/python # -*- coding: utf-8 -*- -# Copyright: (c) 2021, Prem Karat +# Copyright: (c) 2024, Nutanix # GNU General Public License v3.0+ (see COPYING or https://www.gnu.org/licenses/gpl-3.0.txt) + from __future__ import absolute_import, division, print_function __metaclass__ = type @@ -13,9 +14,9 @@ short_description: Attach/Detach volume group to AHV VMs in Nutanix PC description: - Attach/Detach volume group to AHV VMs in Nutanix PC + - This module uses PC v4 APIs based SDKs version_added: "2.0.0" author: - - Prem Karat (@premkarat) - Pradeepsingh Bhati (@bhati-pradeep) options: state: @@ -58,7 +59,7 @@ EXAMPLES = r""" - name: Attach VM1 to VG - ntnx_volume_groups_vms_v2: + nutanix.ncp.ntnx_volume_groups_vms_v2: nutanix_host: "{{ ip }}" nutanix_username: "{{ username }}" nutanix_password: "{{ password }}" @@ -69,7 +70,7 @@ register: result - name: Attach VM2 to VG - ntnx_volume_groups_vms_v2: + nutanix.ncp.ntnx_volume_groups_vms_v2: nutanix_host: "{{ ip }}" nutanix_username: "{{ username }}" nutanix_password: "{{ password }}" diff --git a/plugins/modules/ntnx_vpcs_info_v2.py b/plugins/modules/ntnx_vpcs_info_v2.py index 4b21c259..c16f1da1 100644 --- a/plugins/modules/ntnx_vpcs_info_v2.py +++ b/plugins/modules/ntnx_vpcs_info_v2.py @@ -1,8 +1,9 @@ #!/usr/bin/python # -*- coding: utf-8 -*- -# Copyright: (c) 2021, Prem Karat +# Copyright: (c) 2024, Nutanix # GNU General Public License v3.0+ (see COPYING or https://www.gnu.org/licenses/gpl-3.0.txt) + from __future__ import absolute_import, division, print_function __metaclass__ = type @@ -15,6 +16,7 @@ description: - This module fetches information about Nutanix vpcs. - The module can fetch information about all vpcs or a specific vpc. + - This module uses PC v4 APIs based SDKs options: ext_id: description: @@ -24,13 +26,12 @@ - nutanix.ncp.ntnx_credentials - nutanix.ncp.ntnx_info_v2 author: - - Prem Karat (@premkarat) - Gevorg Khachatryan (@Gevorg-Khachatryan-97) - Alaa Bishtawi (@alaa-bish) """ EXAMPLES = r""" - name: List VPCs - ntnx_vpcs_info_v2: + nutanix.ncp.ntnx_vpcs_info_v2: nutanix_host: "{{ ip }}" nutanix_username: "{{ username }}" nutanix_password: "{{ password }}" @@ -38,7 +39,7 @@ register: vpcs - name: List VPC using name filter criteria - ntnx_vpcs_info_v2: + nutanix.ncp.ntnx_vpcs_info_v2: nutanix_host: "{{ ip }}" nutanix_username: "{{ username }}" nutanix_password: "{{ password }}" @@ -47,7 +48,7 @@ register: result - name: List VPC using ext_id - ntnx_vpcs_info_v2: + nutanix.ncp.ntnx_vpcs_info_v2: nutanix_host: "{{ ip }}" nutanix_username: "{{ username }}" nutanix_password: "{{ password }}" diff --git a/plugins/modules/ntnx_vpcs_v2.py b/plugins/modules/ntnx_vpcs_v2.py index 30f08a97..2612efaa 100644 --- a/plugins/modules/ntnx_vpcs_v2.py +++ b/plugins/modules/ntnx_vpcs_v2.py @@ -1,8 +1,9 @@ #!/usr/bin/python # -*- coding: utf-8 -*- -# Copyright: (c) 2021, Prem Karat +# Copyright: (c) 2024, Nutanix # GNU General Public License v3.0+ (see COPYING or https://www.gnu.org/licenses/gpl-3.0.txt) + from __future__ import absolute_import, division, print_function __metaclass__ = type @@ -12,7 +13,9 @@ module: ntnx_vpcs_v2 short_description: vpcs module which supports vpc CRUD operations version_added: 2.0.0 -description: "Create, Update, Delete vpcs" +description: + - Create, Update, Delete vpcs + - This module uses PC v4 APIs based SDKs options: state: description: @@ -226,14 +229,13 @@ - nutanix.ncp.ntnx_credentials - nutanix.ncp.ntnx_operations_v2 author: - - Prem Karat (@premkarat) - Gevorg Khachatryan (@Gevorg-Khachatryan-97) - Alaa Bishtawi (@alaa-bish) """ EXAMPLES = r""" - name: Create min VPC with external_nat_subnet uuid - ntnx_vpcs_v2: + nutanix.ncp.ntnx_vpcs_v2: nutanix_host: "{{ ip }}" nutanix_username: "{{ username }}" nutanix_password: "{{ password }}" @@ -246,7 +248,7 @@ register: result - name: Create VPC with routable_ips - ntnx_vpcs_v2: + nutanix.ncp.ntnx_vpcs_v2: nutanix_host: "{{ ip }}" nutanix_username: "{{ username }}" nutanix_password: "{{ password }}" @@ -261,7 +263,7 @@ prefix_length: "{{ routable_ips.network_prefix }}" - name: Create VPC with dns_servers - ntnx_vpcs_v2: + nutanix.ncp.ntnx_vpcs_v2: nutanix_host: "{{ ip }}" nutanix_username: "{{ username }}" nutanix_password: "{{ password }}" @@ -281,7 +283,7 @@ register: result - name: Delete all created vpcs - ntnx_vpcs_v2: + nutanix.ncp.ntnx_vpcs_v2: nutanix_host: "{{ ip }}" nutanix_username: "{{ username }}" nutanix_password: "{{ password }}" diff --git a/tests/integration/targets/ntnx_acps/aliases b/tests/integration/targets/ntnx_acps/aliases index 7a68b11d..e69de29b 100644 --- a/tests/integration/targets/ntnx_acps/aliases +++ b/tests/integration/targets/ntnx_acps/aliases @@ -1 +0,0 @@ -disabled diff --git a/tests/integration/targets/ntnx_acps_info/aliases b/tests/integration/targets/ntnx_acps_info/aliases index 7a68b11d..e69de29b 100644 --- a/tests/integration/targets/ntnx_acps_info/aliases +++ b/tests/integration/targets/ntnx_acps_info/aliases @@ -1 +0,0 @@ -disabled diff --git a/tests/integration/targets/ntnx_address_groups/aliases b/tests/integration/targets/ntnx_address_groups/aliases index 87e7bdaa..e69de29b 100644 --- a/tests/integration/targets/ntnx_address_groups/aliases +++ b/tests/integration/targets/ntnx_address_groups/aliases @@ -1 +0,0 @@ -disabled \ No newline at end of file diff --git a/tests/integration/targets/ntnx_address_groups/tasks/main.yml b/tests/integration/targets/ntnx_address_groups/tasks/main.yml index 9cfdf76e..e4554ddc 100644 --- a/tests/integration/targets/ntnx_address_groups/tasks/main.yml +++ b/tests/integration/targets/ntnx_address_groups/tasks/main.yml @@ -1,15 +1,15 @@ --- - name: Initializing variables module_defaults: - group/nutanix.ncp.ntnx: + group/nutanix.ncp.ntnx: nutanix_host: "{{ ip }}" nutanix_username: "{{ username }}" nutanix_password: "{{ password }}" validate_certs: "{{ validate_certs }}" block: - - name: Import create.yml - ansible.builtin.import_tasks: "create.yml" - - name: Import update.yml - ansible.builtin.import_tasks: "update.yml" - - name: Import delete.yml - ansible.builtin.import_tasks: "delete.yml" + - name: Import create.yml + ansible.builtin.import_tasks: "create.yml" + - name: Import update.yml + ansible.builtin.import_tasks: "update.yml" + - name: Import delete.yml + ansible.builtin.import_tasks: "delete.yml" diff --git a/tests/integration/targets/ntnx_address_groups_info/aliases b/tests/integration/targets/ntnx_address_groups_info/aliases index 87e7bdaa..e69de29b 100644 --- a/tests/integration/targets/ntnx_address_groups_info/aliases +++ b/tests/integration/targets/ntnx_address_groups_info/aliases @@ -1 +0,0 @@ -disabled \ No newline at end of file diff --git a/tests/integration/targets/ntnx_address_groups_info/tasks/main.yml b/tests/integration/targets/ntnx_address_groups_info/tasks/main.yml index 4156c2d0..1198ff65 100644 --- a/tests/integration/targets/ntnx_address_groups_info/tasks/main.yml +++ b/tests/integration/targets/ntnx_address_groups_info/tasks/main.yml @@ -1,11 +1,11 @@ --- - name: Initializing variables module_defaults: - group/nutanix.ncp.ntnx: + group/nutanix.ncp.ntnx: nutanix_host: "{{ ip }}" nutanix_username: "{{ username }}" nutanix_password: "{{ password }}" validate_certs: "{{ validate_certs }}" block: - - name: Import create.yml - ansible.builtin.import_tasks: "address_groups_info.yml" + - name: Import create.yml + ansible.builtin.import_tasks: "address_groups_info.yml" diff --git a/tests/integration/targets/ntnx_categories/aliases b/tests/integration/targets/ntnx_categories/aliases index 87e7bdaa..e69de29b 100644 --- a/tests/integration/targets/ntnx_categories/aliases +++ b/tests/integration/targets/ntnx_categories/aliases @@ -1 +0,0 @@ -disabled \ No newline at end of file diff --git a/tests/integration/targets/ntnx_categories/tasks/main.yml b/tests/integration/targets/ntnx_categories/tasks/main.yml index 820d2df6..76916a64 100644 --- a/tests/integration/targets/ntnx_categories/tasks/main.yml +++ b/tests/integration/targets/ntnx_categories/tasks/main.yml @@ -1,11 +1,11 @@ --- - name: Initializing variables module_defaults: - group/nutanix.ncp.ntnx: + group/nutanix.ncp.ntnx: nutanix_host: "{{ ip }}" nutanix_username: "{{ username }}" nutanix_password: "{{ password }}" validate_certs: "{{ validate_certs }}" block: - - name: Import all_operations.yml - ansible.builtin.import_tasks: "all_operations.yml" + - name: Import all_operations.yml + ansible.builtin.import_tasks: "all_operations.yml" diff --git a/tests/integration/targets/ntnx_categories_info/aliases b/tests/integration/targets/ntnx_categories_info/aliases index 87e7bdaa..e69de29b 100644 --- a/tests/integration/targets/ntnx_categories_info/aliases +++ b/tests/integration/targets/ntnx_categories_info/aliases @@ -1 +0,0 @@ -disabled \ No newline at end of file diff --git a/tests/integration/targets/ntnx_categories_info/tasks/main.yml b/tests/integration/targets/ntnx_categories_info/tasks/main.yml index 79fd2a50..a37bd6bd 100644 --- a/tests/integration/targets/ntnx_categories_info/tasks/main.yml +++ b/tests/integration/targets/ntnx_categories_info/tasks/main.yml @@ -1,11 +1,11 @@ --- - name: Initializing variables module_defaults: - group/nutanix.ncp.ntnx: + group/nutanix.ncp.ntnx: nutanix_host: "{{ ip }}" nutanix_username: "{{ username }}" nutanix_password: "{{ password }}" validate_certs: "{{ validate_certs }}" block: - - name: Import info.yml - ansible.builtin.import_tasks: "info.yml" + - name: Import info.yml + ansible.builtin.import_tasks: "info.yml" diff --git a/tests/integration/targets/ntnx_clusters_and_hosts_v2/tasks/cluster_crud.yml b/tests/integration/targets/ntnx_clusters_and_hosts_v2/tasks/cluster_crud.yml index 55d3ed6e..ae6953db 100644 --- a/tests/integration/targets/ntnx_clusters_and_hosts_v2/tasks/cluster_crud.yml +++ b/tests/integration/targets/ntnx_clusters_and_hosts_v2/tasks/cluster_crud.yml @@ -503,7 +503,9 @@ - '"{{ clusters[0].config.cluster_functions[0] }}" in "{{result.response.config.cluster_function}}"' - result.response.config.redundancy_factor == clusters[0].config.redundancy_factor_cluster_crud - result.response.config.cluster_arch == "{{ clusters[0].config.cluster_arch }}" - - result.response.config.fault_tolerance_state.domain_awareness_level == "{{ clusters[0].config.fault_tolerance_state.domain_awareness_level_cluster_crud }}" + - > + result.response.config.fault_tolerance_state.domain_awareness_level == + "{{ clusters[0].config.fault_tolerance_state.domain_awareness_level_cluster_crud }}" fail_msg: Failed verifying cluster creation success_msg: Cluster creation passed successfully @@ -677,7 +679,9 @@ - '"{{ clusters[0].config.cluster_functions[0] }}" in "{{result.response.config.cluster_function}}"' - result.response.config.redundancy_factor == clusters[0].config.redundancy_factor_cluster_crud - result.response.config.cluster_arch == "{{ clusters[0].config.cluster_arch }}" - - result.response.config.fault_tolerance_state.domain_awareness_level == "{{ clusters[0].config.fault_tolerance_state.domain_awareness_level_cluster_crud }}" + - > + result.response.config.fault_tolerance_state.domain_awareness_level == + "{{ clusters[0].config.fault_tolerance_state.domain_awareness_level_cluster_crud }}" - result.response.network.external_address.ipv4.value == "{{ clusters[0].network.virtual_ip }}" - unique_ntp_servers | length == 4 - unique_dns_servers | length == 2 diff --git a/tests/integration/targets/ntnx_clusters_info/aliases b/tests/integration/targets/ntnx_clusters_info/aliases index 87e7bdaa..e69de29b 100644 --- a/tests/integration/targets/ntnx_clusters_info/aliases +++ b/tests/integration/targets/ntnx_clusters_info/aliases @@ -1 +0,0 @@ -disabled \ No newline at end of file diff --git a/tests/integration/targets/ntnx_clusters_info/tasks/main.yml b/tests/integration/targets/ntnx_clusters_info/tasks/main.yml index 2acd600a..94ef5e38 100644 --- a/tests/integration/targets/ntnx_clusters_info/tasks/main.yml +++ b/tests/integration/targets/ntnx_clusters_info/tasks/main.yml @@ -1,11 +1,11 @@ --- - name: Initializing variables module_defaults: - group/nutanix.ncp.ntnx: + group/nutanix.ncp.ntnx: nutanix_host: "{{ ip }}" nutanix_username: "{{ username }}" nutanix_password: "{{ password }}" validate_certs: "{{ validate_certs }}" block: - - name: Import get_clusters_info.yml - ansible.builtin.import_tasks: "get_clusters_info.yml" + - name: Import get_clusters_info.yml + ansible.builtin.import_tasks: "get_clusters_info.yml" diff --git a/tests/integration/targets/ntnx_clusters_nodes_v2/tasks/add_remove_nodes.yml b/tests/integration/targets/ntnx_clusters_nodes_v2/tasks/add_remove_nodes.yml index 33a3add6..f2a4b8f4 100644 --- a/tests/integration/targets/ntnx_clusters_nodes_v2/tasks/add_remove_nodes.yml +++ b/tests/integration/targets/ntnx_clusters_nodes_v2/tasks/add_remove_nodes.yml @@ -485,7 +485,9 @@ - result.response.config.cluster_function[0] == "{{ clusters[0].config.cluster_functions[0] }}" - result.response.config.redundancy_factor == clusters[0].config.redundancy_factor_cluster_expanding - result.response.config.cluster_arch == "{{ clusters[0].config.cluster_arch }}" - - result.response.config.fault_tolerance_state.domain_awareness_level == "{{ clusters[0].config.fault_tolerance_state.domain_awareness_level_cluster_expanding }}" + - > + result.response.config.fault_tolerance_state.domain_awareness_level == + "{{ clusters[0].config.fault_tolerance_state.domain_awareness_level_cluster_expanding }}" fail_msg: Failed verifying cluster creation success_msg: Cluster creation passed successfully diff --git a/tests/integration/targets/ntnx_foundation/aliases b/tests/integration/targets/ntnx_foundation/aliases index 7a68b11d..87e7bdaa 100644 --- a/tests/integration/targets/ntnx_foundation/aliases +++ b/tests/integration/targets/ntnx_foundation/aliases @@ -1 +1 @@ -disabled +disabled \ No newline at end of file diff --git a/tests/integration/targets/ntnx_foundation_aos_packages_info/aliases b/tests/integration/targets/ntnx_foundation_aos_packages_info/aliases index 7a68b11d..87e7bdaa 100644 --- a/tests/integration/targets/ntnx_foundation_aos_packages_info/aliases +++ b/tests/integration/targets/ntnx_foundation_aos_packages_info/aliases @@ -1 +1 @@ -disabled +disabled \ No newline at end of file diff --git a/tests/integration/targets/ntnx_foundation_bmc_ipmi_config/aliases b/tests/integration/targets/ntnx_foundation_bmc_ipmi_config/aliases index 7a68b11d..87e7bdaa 100644 --- a/tests/integration/targets/ntnx_foundation_bmc_ipmi_config/aliases +++ b/tests/integration/targets/ntnx_foundation_bmc_ipmi_config/aliases @@ -1 +1 @@ -disabled +disabled \ No newline at end of file diff --git a/tests/integration/targets/ntnx_foundation_central/aliases b/tests/integration/targets/ntnx_foundation_central/aliases index 7a68b11d..87e7bdaa 100644 --- a/tests/integration/targets/ntnx_foundation_central/aliases +++ b/tests/integration/targets/ntnx_foundation_central/aliases @@ -1 +1 @@ -disabled +disabled \ No newline at end of file diff --git a/tests/integration/targets/ntnx_foundation_central_api_keys/aliases b/tests/integration/targets/ntnx_foundation_central_api_keys/aliases index 7a68b11d..87e7bdaa 100644 --- a/tests/integration/targets/ntnx_foundation_central_api_keys/aliases +++ b/tests/integration/targets/ntnx_foundation_central_api_keys/aliases @@ -1 +1 @@ -disabled +disabled \ No newline at end of file diff --git a/tests/integration/targets/ntnx_foundation_central_api_keys_info/aliases b/tests/integration/targets/ntnx_foundation_central_api_keys_info/aliases index 7a68b11d..87e7bdaa 100644 --- a/tests/integration/targets/ntnx_foundation_central_api_keys_info/aliases +++ b/tests/integration/targets/ntnx_foundation_central_api_keys_info/aliases @@ -1 +1 @@ -disabled +disabled \ No newline at end of file diff --git a/tests/integration/targets/ntnx_foundation_central_imaged_clusters_info/aliases b/tests/integration/targets/ntnx_foundation_central_imaged_clusters_info/aliases index 7a68b11d..87e7bdaa 100644 --- a/tests/integration/targets/ntnx_foundation_central_imaged_clusters_info/aliases +++ b/tests/integration/targets/ntnx_foundation_central_imaged_clusters_info/aliases @@ -1 +1 @@ -disabled +disabled \ No newline at end of file diff --git a/tests/integration/targets/ntnx_foundation_central_imaged_clusters_info/tasks/get_cluster_info.yml b/tests/integration/targets/ntnx_foundation_central_imaged_clusters_info/tasks/get_cluster_info.yml index 5589598e..a390bd33 100644 --- a/tests/integration/targets/ntnx_foundation_central_imaged_clusters_info/tasks/get_cluster_info.yml +++ b/tests/integration/targets/ntnx_foundation_central_imaged_clusters_info/tasks/get_cluster_info.yml @@ -52,7 +52,7 @@ success_msg: "succes: get imaged cluster using custom filter sucessfully" # still offset and length -# - debug: +# - ansible.builtin.debug: # var: clusters.response # - name: get imaged cluster using image_cluster_uuid @@ -62,5 +62,5 @@ # length: 20 # register: result # ignore_errors: true -# - debug: +# - ansible.builtin.debug: # var: result.response.imaged_clusters|length diff --git a/tests/integration/targets/ntnx_foundation_central_imaged_nodes_info/aliases b/tests/integration/targets/ntnx_foundation_central_imaged_nodes_info/aliases index 7a68b11d..87e7bdaa 100644 --- a/tests/integration/targets/ntnx_foundation_central_imaged_nodes_info/aliases +++ b/tests/integration/targets/ntnx_foundation_central_imaged_nodes_info/aliases @@ -1 +1 @@ -disabled +disabled \ No newline at end of file diff --git a/tests/integration/targets/ntnx_foundation_discover_nodes_info/aliases b/tests/integration/targets/ntnx_foundation_discover_nodes_info/aliases index 7a68b11d..87e7bdaa 100644 --- a/tests/integration/targets/ntnx_foundation_discover_nodes_info/aliases +++ b/tests/integration/targets/ntnx_foundation_discover_nodes_info/aliases @@ -1 +1 @@ -disabled +disabled \ No newline at end of file diff --git a/tests/integration/targets/ntnx_foundation_discover_nodes_info/tasks/discover_nodes.yml b/tests/integration/targets/ntnx_foundation_discover_nodes_info/tasks/discover_nodes.yml index f8392697..a7785bf8 100644 --- a/tests/integration/targets/ntnx_foundation_discover_nodes_info/tasks/discover_nodes.yml +++ b/tests/integration/targets/ntnx_foundation_discover_nodes_info/tasks/discover_nodes.yml @@ -39,7 +39,7 @@ # register: result # - name: Creation Status -# assert: +# ansible.builtin.assert: # that: # - result.blocks is defined # - result.failed==false diff --git a/tests/integration/targets/ntnx_foundation_hypervisor_images_info/aliases b/tests/integration/targets/ntnx_foundation_hypervisor_images_info/aliases index 7a68b11d..87e7bdaa 100644 --- a/tests/integration/targets/ntnx_foundation_hypervisor_images_info/aliases +++ b/tests/integration/targets/ntnx_foundation_hypervisor_images_info/aliases @@ -1 +1 @@ -disabled +disabled \ No newline at end of file diff --git a/tests/integration/targets/ntnx_foundation_image_upload/aliases b/tests/integration/targets/ntnx_foundation_image_upload/aliases index 7a68b11d..87e7bdaa 100644 --- a/tests/integration/targets/ntnx_foundation_image_upload/aliases +++ b/tests/integration/targets/ntnx_foundation_image_upload/aliases @@ -1 +1 @@ -disabled +disabled \ No newline at end of file diff --git a/tests/integration/targets/ntnx_foundation_node_network_info/aliases b/tests/integration/targets/ntnx_foundation_node_network_info/aliases index 7a68b11d..87e7bdaa 100644 --- a/tests/integration/targets/ntnx_foundation_node_network_info/aliases +++ b/tests/integration/targets/ntnx_foundation_node_network_info/aliases @@ -1 +1 @@ -disabled +disabled \ No newline at end of file diff --git a/tests/integration/targets/ntnx_foundation_sanity/aliases b/tests/integration/targets/ntnx_foundation_sanity/aliases index 7a68b11d..87e7bdaa 100644 --- a/tests/integration/targets/ntnx_foundation_sanity/aliases +++ b/tests/integration/targets/ntnx_foundation_sanity/aliases @@ -1 +1 @@ -disabled +disabled \ No newline at end of file diff --git a/tests/integration/targets/ntnx_gpus_v2/aliases b/tests/integration/targets/ntnx_gpus_v2/aliases index 7a68b11d..e69de29b 100644 --- a/tests/integration/targets/ntnx_gpus_v2/aliases +++ b/tests/integration/targets/ntnx_gpus_v2/aliases @@ -1 +0,0 @@ -disabled diff --git a/tests/integration/targets/ntnx_hosts_info/aliases b/tests/integration/targets/ntnx_hosts_info/aliases index 87e7bdaa..e69de29b 100644 --- a/tests/integration/targets/ntnx_hosts_info/aliases +++ b/tests/integration/targets/ntnx_hosts_info/aliases @@ -1 +0,0 @@ -disabled \ No newline at end of file diff --git a/tests/integration/targets/ntnx_hosts_info/tasks/main.yml b/tests/integration/targets/ntnx_hosts_info/tasks/main.yml index 5f8b994c..d8e77cc9 100644 --- a/tests/integration/targets/ntnx_hosts_info/tasks/main.yml +++ b/tests/integration/targets/ntnx_hosts_info/tasks/main.yml @@ -1,11 +1,11 @@ --- - name: Initializing variables module_defaults: - group/nutanix.ncp.ntnx: + group/nutanix.ncp.ntnx: nutanix_host: "{{ ip }}" nutanix_username: "{{ username }}" nutanix_password: "{{ password }}" validate_certs: "{{ validate_certs }}" block: - - name: Import get_hosts_info.yml - ansible.builtin.import_tasks: "get_hosts_info.yml" + - name: Import get_hosts_info.yml + ansible.builtin.import_tasks: "get_hosts_info.yml" diff --git a/tests/integration/targets/ntnx_image_placement_policies_info/aliases b/tests/integration/targets/ntnx_image_placement_policies_info/aliases index 87e7bdaa..e69de29b 100644 --- a/tests/integration/targets/ntnx_image_placement_policies_info/aliases +++ b/tests/integration/targets/ntnx_image_placement_policies_info/aliases @@ -1 +0,0 @@ -disabled \ No newline at end of file diff --git a/tests/integration/targets/ntnx_image_placement_policies_info/tasks/main.yml b/tests/integration/targets/ntnx_image_placement_policies_info/tasks/main.yml index 79fd2a50..a37bd6bd 100644 --- a/tests/integration/targets/ntnx_image_placement_policies_info/tasks/main.yml +++ b/tests/integration/targets/ntnx_image_placement_policies_info/tasks/main.yml @@ -1,11 +1,11 @@ --- - name: Initializing variables module_defaults: - group/nutanix.ncp.ntnx: + group/nutanix.ncp.ntnx: nutanix_host: "{{ ip }}" nutanix_username: "{{ username }}" nutanix_password: "{{ password }}" validate_certs: "{{ validate_certs }}" block: - - name: Import info.yml - ansible.builtin.import_tasks: "info.yml" + - name: Import info.yml + ansible.builtin.import_tasks: "info.yml" diff --git a/tests/integration/targets/ntnx_image_placement_policy/aliases b/tests/integration/targets/ntnx_image_placement_policy/aliases index 87e7bdaa..e69de29b 100644 --- a/tests/integration/targets/ntnx_image_placement_policy/aliases +++ b/tests/integration/targets/ntnx_image_placement_policy/aliases @@ -1 +0,0 @@ -disabled \ No newline at end of file diff --git a/tests/integration/targets/ntnx_image_placement_policy/tasks/main.yml b/tests/integration/targets/ntnx_image_placement_policy/tasks/main.yml index 9cfdf76e..e4554ddc 100644 --- a/tests/integration/targets/ntnx_image_placement_policy/tasks/main.yml +++ b/tests/integration/targets/ntnx_image_placement_policy/tasks/main.yml @@ -1,15 +1,15 @@ --- - name: Initializing variables module_defaults: - group/nutanix.ncp.ntnx: + group/nutanix.ncp.ntnx: nutanix_host: "{{ ip }}" nutanix_username: "{{ username }}" nutanix_password: "{{ password }}" validate_certs: "{{ validate_certs }}" block: - - name: Import create.yml - ansible.builtin.import_tasks: "create.yml" - - name: Import update.yml - ansible.builtin.import_tasks: "update.yml" - - name: Import delete.yml - ansible.builtin.import_tasks: "delete.yml" + - name: Import create.yml + ansible.builtin.import_tasks: "create.yml" + - name: Import update.yml + ansible.builtin.import_tasks: "update.yml" + - name: Import delete.yml + ansible.builtin.import_tasks: "delete.yml" diff --git a/tests/integration/targets/ntnx_images/aliases b/tests/integration/targets/ntnx_images/aliases index 87e7bdaa..e69de29b 100644 --- a/tests/integration/targets/ntnx_images/aliases +++ b/tests/integration/targets/ntnx_images/aliases @@ -1 +0,0 @@ -disabled \ No newline at end of file diff --git a/tests/integration/targets/ntnx_images/tasks/main.yml b/tests/integration/targets/ntnx_images/tasks/main.yml index 83f52f1a..65a6e295 100644 --- a/tests/integration/targets/ntnx_images/tasks/main.yml +++ b/tests/integration/targets/ntnx_images/tasks/main.yml @@ -1,15 +1,15 @@ --- - name: Set module defaults module_defaults: - group/nutanix.ncp.ntnx: + group/nutanix.ncp.ntnx: nutanix_host: "{{ ip }}" nutanix_username: "{{ username }}" nutanix_password: "{{ password }}" validate_certs: "{{ validate_certs }}" block: - - name: Import create.yml - ansible.builtin.import_tasks: "create.yml" - - name: Import update.yml - ansible.builtin.import_tasks: "update.yml" - - name: Import delete.yml - ansible.builtin.import_tasks: "delete.yml" + - name: Import create.yml + ansible.builtin.import_tasks: "create.yml" + - name: Import update.yml + ansible.builtin.import_tasks: "update.yml" + - name: Import delete.yml + ansible.builtin.import_tasks: "delete.yml" diff --git a/tests/integration/targets/ntnx_images_info/aliases b/tests/integration/targets/ntnx_images_info/aliases index 87e7bdaa..e69de29b 100644 --- a/tests/integration/targets/ntnx_images_info/aliases +++ b/tests/integration/targets/ntnx_images_info/aliases @@ -1 +0,0 @@ -disabled \ No newline at end of file diff --git a/tests/integration/targets/ntnx_images_info/tasks/main.yml b/tests/integration/targets/ntnx_images_info/tasks/main.yml index 288e27d3..74e773fc 100644 --- a/tests/integration/targets/ntnx_images_info/tasks/main.yml +++ b/tests/integration/targets/ntnx_images_info/tasks/main.yml @@ -1,11 +1,11 @@ --- - name: Set module defaults module_defaults: - group/nutanix.ncp.ntnx: + group/nutanix.ncp.ntnx: nutanix_host: "{{ ip }}" nutanix_username: "{{ username }}" nutanix_password: "{{ password }}" validate_certs: "{{ validate_certs }}" block: - - name: Import info.yml - ansible.builtin.import_tasks: "info.yml" + - name: Import info.yml + ansible.builtin.import_tasks: "info.yml" diff --git a/tests/integration/targets/ntnx_karbon_registries/aliases b/tests/integration/targets/ntnx_karbon_registries/aliases index 7a68b11d..87e7bdaa 100644 --- a/tests/integration/targets/ntnx_karbon_registries/aliases +++ b/tests/integration/targets/ntnx_karbon_registries/aliases @@ -1 +1 @@ -disabled +disabled \ No newline at end of file diff --git a/tests/integration/targets/ntnx_karbon_registries_info/aliases b/tests/integration/targets/ntnx_karbon_registries_info/aliases index 7a68b11d..87e7bdaa 100644 --- a/tests/integration/targets/ntnx_karbon_registries_info/aliases +++ b/tests/integration/targets/ntnx_karbon_registries_info/aliases @@ -1 +1 @@ -disabled +disabled \ No newline at end of file diff --git a/tests/integration/targets/ntnx_ndb_availability_databases/aliases b/tests/integration/targets/ntnx_ndb_availability_databases/aliases index 7a68b11d..87e7bdaa 100644 --- a/tests/integration/targets/ntnx_ndb_availability_databases/aliases +++ b/tests/integration/targets/ntnx_ndb_availability_databases/aliases @@ -1 +1 @@ -disabled +disabled \ No newline at end of file diff --git a/tests/integration/targets/ntnx_ndb_clones_info/aliases b/tests/integration/targets/ntnx_ndb_clones_info/aliases index 7a68b11d..87e7bdaa 100644 --- a/tests/integration/targets/ntnx_ndb_clones_info/aliases +++ b/tests/integration/targets/ntnx_ndb_clones_info/aliases @@ -1 +1 @@ -disabled +disabled \ No newline at end of file diff --git a/tests/integration/targets/ntnx_ndb_clusters/aliases b/tests/integration/targets/ntnx_ndb_clusters/aliases index 7a68b11d..87e7bdaa 100644 --- a/tests/integration/targets/ntnx_ndb_clusters/aliases +++ b/tests/integration/targets/ntnx_ndb_clusters/aliases @@ -1 +1 @@ -disabled +disabled \ No newline at end of file diff --git a/tests/integration/targets/ntnx_ndb_database_clones/aliases b/tests/integration/targets/ntnx_ndb_database_clones/aliases index 7a68b11d..87e7bdaa 100644 --- a/tests/integration/targets/ntnx_ndb_database_clones/aliases +++ b/tests/integration/targets/ntnx_ndb_database_clones/aliases @@ -1 +1 @@ -disabled +disabled \ No newline at end of file diff --git a/tests/integration/targets/ntnx_ndb_databases_actions/aliases b/tests/integration/targets/ntnx_ndb_databases_actions/aliases index 7a68b11d..87e7bdaa 100644 --- a/tests/integration/targets/ntnx_ndb_databases_actions/aliases +++ b/tests/integration/targets/ntnx_ndb_databases_actions/aliases @@ -1 +1 @@ -disabled +disabled \ No newline at end of file diff --git a/tests/integration/targets/ntnx_ndb_databases_sanity/aliases b/tests/integration/targets/ntnx_ndb_databases_sanity/aliases index 7a68b11d..87e7bdaa 100644 --- a/tests/integration/targets/ntnx_ndb_databases_sanity/aliases +++ b/tests/integration/targets/ntnx_ndb_databases_sanity/aliases @@ -1 +1 @@ -disabled +disabled \ No newline at end of file diff --git a/tests/integration/targets/ntnx_ndb_databases_single_instance_1/aliases b/tests/integration/targets/ntnx_ndb_databases_single_instance_1/aliases index 7a68b11d..87e7bdaa 100644 --- a/tests/integration/targets/ntnx_ndb_databases_single_instance_1/aliases +++ b/tests/integration/targets/ntnx_ndb_databases_single_instance_1/aliases @@ -1 +1 @@ -disabled +disabled \ No newline at end of file diff --git a/tests/integration/targets/ntnx_ndb_databases_single_instance_2/aliases b/tests/integration/targets/ntnx_ndb_databases_single_instance_2/aliases index 7a68b11d..87e7bdaa 100644 --- a/tests/integration/targets/ntnx_ndb_databases_single_instance_2/aliases +++ b/tests/integration/targets/ntnx_ndb_databases_single_instance_2/aliases @@ -1 +1 @@ -disabled +disabled \ No newline at end of file diff --git a/tests/integration/targets/ntnx_ndb_db_server_vms/aliases b/tests/integration/targets/ntnx_ndb_db_server_vms/aliases index 7a68b11d..87e7bdaa 100644 --- a/tests/integration/targets/ntnx_ndb_db_server_vms/aliases +++ b/tests/integration/targets/ntnx_ndb_db_server_vms/aliases @@ -1 +1 @@ -disabled +disabled \ No newline at end of file diff --git a/tests/integration/targets/ntnx_ndb_maintenance_windows/aliases b/tests/integration/targets/ntnx_ndb_maintenance_windows/aliases index 7a68b11d..87e7bdaa 100644 --- a/tests/integration/targets/ntnx_ndb_maintenance_windows/aliases +++ b/tests/integration/targets/ntnx_ndb_maintenance_windows/aliases @@ -1 +1 @@ -disabled +disabled \ No newline at end of file diff --git a/tests/integration/targets/ntnx_ndb_profiles/aliases b/tests/integration/targets/ntnx_ndb_profiles/aliases index 7a68b11d..87e7bdaa 100644 --- a/tests/integration/targets/ntnx_ndb_profiles/aliases +++ b/tests/integration/targets/ntnx_ndb_profiles/aliases @@ -1 +1 @@ -disabled +disabled \ No newline at end of file diff --git a/tests/integration/targets/ntnx_ndb_profiles/tasks/network_profile.yml b/tests/integration/targets/ntnx_ndb_profiles/tasks/network_profile.yml index d072edec..4e0e7949 100644 --- a/tests/integration/targets/ntnx_ndb_profiles/tasks/network_profile.yml +++ b/tests/integration/targets/ntnx_ndb_profiles/tasks/network_profile.yml @@ -116,7 +116,7 @@ # ignore_errors: true # - name: check listing status -# assert: +# ansible.builtin.assert: # that: # - result.response is defined # - result.failed == false @@ -133,7 +133,7 @@ # fail_msg: "Fail: unable to verify create of multiple cluster network profile " # success_msg: "Pass: verify create of multiple cluster network profile finished sucessfully" -# - set_fact: +# - ansible.builtin.set_fact: # todelete: "{{ todelete + [ result.profile_uuid ] }}" ################################################################ # - name: update the profile for multiple cluster by subnets, publish @@ -156,7 +156,7 @@ # ignore_errors: true # - name: check listing status -# assert: +# ansible.builtin.assert: # that: # - result.response is defined # - result.failed == false diff --git a/tests/integration/targets/ntnx_ndb_profiles_info/aliases b/tests/integration/targets/ntnx_ndb_profiles_info/aliases index 7a68b11d..87e7bdaa 100644 --- a/tests/integration/targets/ntnx_ndb_profiles_info/aliases +++ b/tests/integration/targets/ntnx_ndb_profiles_info/aliases @@ -1 +1 @@ -disabled +disabled \ No newline at end of file diff --git a/tests/integration/targets/ntnx_ndb_slas/aliases b/tests/integration/targets/ntnx_ndb_slas/aliases index 7a68b11d..87e7bdaa 100644 --- a/tests/integration/targets/ntnx_ndb_slas/aliases +++ b/tests/integration/targets/ntnx_ndb_slas/aliases @@ -1 +1 @@ -disabled +disabled \ No newline at end of file diff --git a/tests/integration/targets/ntnx_ndb_snapshots_info/aliases b/tests/integration/targets/ntnx_ndb_snapshots_info/aliases index 7a68b11d..87e7bdaa 100644 --- a/tests/integration/targets/ntnx_ndb_snapshots_info/aliases +++ b/tests/integration/targets/ntnx_ndb_snapshots_info/aliases @@ -1 +1 @@ -disabled +disabled \ No newline at end of file diff --git a/tests/integration/targets/ntnx_ndb_software_profiles/aliases b/tests/integration/targets/ntnx_ndb_software_profiles/aliases index 7a68b11d..87e7bdaa 100644 --- a/tests/integration/targets/ntnx_ndb_software_profiles/aliases +++ b/tests/integration/targets/ntnx_ndb_software_profiles/aliases @@ -1 +1 @@ -disabled +disabled \ No newline at end of file diff --git a/tests/integration/targets/ntnx_ndb_tags/aliases b/tests/integration/targets/ntnx_ndb_tags/aliases index 7a68b11d..87e7bdaa 100644 --- a/tests/integration/targets/ntnx_ndb_tags/aliases +++ b/tests/integration/targets/ntnx_ndb_tags/aliases @@ -1 +1 @@ -disabled +disabled \ No newline at end of file diff --git a/tests/integration/targets/ntnx_ndb_time_machines_info/aliases b/tests/integration/targets/ntnx_ndb_time_machines_info/aliases index 7a68b11d..87e7bdaa 100644 --- a/tests/integration/targets/ntnx_ndb_time_machines_info/aliases +++ b/tests/integration/targets/ntnx_ndb_time_machines_info/aliases @@ -1 +1 @@ -disabled +disabled \ No newline at end of file diff --git a/tests/integration/targets/ntnx_ndb_time_machines_with_multi_clusters/aliases b/tests/integration/targets/ntnx_ndb_time_machines_with_multi_clusters/aliases index 7a68b11d..87e7bdaa 100644 --- a/tests/integration/targets/ntnx_ndb_time_machines_with_multi_clusters/aliases +++ b/tests/integration/targets/ntnx_ndb_time_machines_with_multi_clusters/aliases @@ -1 +1 @@ -disabled +disabled \ No newline at end of file diff --git a/tests/integration/targets/ntnx_ndb_vlans/aliases b/tests/integration/targets/ntnx_ndb_vlans/aliases index 7a68b11d..87e7bdaa 100644 --- a/tests/integration/targets/ntnx_ndb_vlans/aliases +++ b/tests/integration/targets/ntnx_ndb_vlans/aliases @@ -1 +1 @@ -disabled +disabled \ No newline at end of file diff --git a/tests/integration/targets/ntnx_ndb_vlans/tasks/create_vlans.yml b/tests/integration/targets/ntnx_ndb_vlans/tasks/create_vlans.yml index f379fb84..09eb1929 100644 --- a/tests/integration/targets/ntnx_ndb_vlans/tasks/create_vlans.yml +++ b/tests/integration/targets/ntnx_ndb_vlans/tasks/create_vlans.yml @@ -338,10 +338,10 @@ # - "{{st_vlan.vlans_subnet1[1]}}" # register: result # ignore_errors: true -# - debug: +# - ansible.builtin.debug: # var: result # - name: check listing status -# assert: +# ansible.builtin.assert: # that: # - result.response is defined # - result.changed == true @@ -354,7 +354,7 @@ # fail_msg: "fail: Unable to create ndb_stretched vlan" # success_msg: "pass: create ndb_stretched vlan finished successfully" -# - set_fact: +# - ansible.builtin.set_fact: # todelete: "{{ todelete + [ result.vlan_uuid ] }}" # ################################################################ @@ -369,10 +369,10 @@ # - "{{st_vlan.vlans_subnet2[1]}}" # register: result # ignore_errors: true -# - debug: +# - ansible.builtin.debug: # var: result # - name: check listing status -# assert: +# ansible.builtin.assert: # that: # - result.response is defined # - result.changed == true @@ -394,10 +394,10 @@ # subnet_mask: "{{st_vlan.subnet_mask}}" # register: result # ignore_errors: true -# - debug: +# - ansible.builtin.debug: # var: result # - name: check listing status -# assert: +# ansible.builtin.assert: # that: # - result.response is defined # - result.changed == true diff --git a/tests/integration/targets/ntnx_ova/aliases b/tests/integration/targets/ntnx_ova/aliases index 87e7bdaa..e69de29b 100644 --- a/tests/integration/targets/ntnx_ova/aliases +++ b/tests/integration/targets/ntnx_ova/aliases @@ -1 +0,0 @@ -disabled \ No newline at end of file diff --git a/tests/integration/targets/ntnx_permissions_info/aliases b/tests/integration/targets/ntnx_permissions_info/aliases index 87e7bdaa..e69de29b 100644 --- a/tests/integration/targets/ntnx_permissions_info/aliases +++ b/tests/integration/targets/ntnx_permissions_info/aliases @@ -1 +0,0 @@ -disabled \ No newline at end of file diff --git a/tests/integration/targets/ntnx_projects/aliases b/tests/integration/targets/ntnx_projects/aliases index 87e7bdaa..e69de29b 100644 --- a/tests/integration/targets/ntnx_projects/aliases +++ b/tests/integration/targets/ntnx_projects/aliases @@ -1 +0,0 @@ -disabled \ No newline at end of file diff --git a/tests/integration/targets/ntnx_projects_info/aliases b/tests/integration/targets/ntnx_projects_info/aliases index 87e7bdaa..e69de29b 100644 --- a/tests/integration/targets/ntnx_projects_info/aliases +++ b/tests/integration/targets/ntnx_projects_info/aliases @@ -1 +0,0 @@ -disabled \ No newline at end of file diff --git a/tests/integration/targets/ntnx_protection_rules/aliases b/tests/integration/targets/ntnx_protection_rules/aliases index 7a68b11d..87e7bdaa 100644 --- a/tests/integration/targets/ntnx_protection_rules/aliases +++ b/tests/integration/targets/ntnx_protection_rules/aliases @@ -1 +1 @@ -disabled +disabled \ No newline at end of file diff --git a/tests/integration/targets/ntnx_protection_rules/tasks/protection_rules.yml b/tests/integration/targets/ntnx_protection_rules/tasks/protection_rules.yml index 0d48a1ed..f07342c6 100644 --- a/tests/integration/targets/ntnx_protection_rules/tasks/protection_rules.yml +++ b/tests/integration/targets/ntnx_protection_rules/tasks/protection_rules.yml @@ -269,7 +269,7 @@ fail_msg: "Unable to update protection rule with asynchronous schedule" success_msg: "Protection policy with with asynchronous schedule updated successfully" -################################################################################################################################################################## +#################################################################################### - name: Idempotency Check ntnx_protection_rules: @@ -323,7 +323,7 @@ fail_msg: "Idempotency check failed" success_msg: "Idempotency check passed" -################################################################################################################################################################## +#################################################################################### - name: Check Mode while update check_mode: true diff --git a/tests/integration/targets/ntnx_protection_rules_info/aliases b/tests/integration/targets/ntnx_protection_rules_info/aliases index 7a68b11d..87e7bdaa 100644 --- a/tests/integration/targets/ntnx_protection_rules_info/aliases +++ b/tests/integration/targets/ntnx_protection_rules_info/aliases @@ -1 +1 @@ -disabled +disabled \ No newline at end of file diff --git a/tests/integration/targets/ntnx_recovery_plans_and_jobs/aliases b/tests/integration/targets/ntnx_recovery_plans_and_jobs/aliases index 7a68b11d..87e7bdaa 100644 --- a/tests/integration/targets/ntnx_recovery_plans_and_jobs/aliases +++ b/tests/integration/targets/ntnx_recovery_plans_and_jobs/aliases @@ -1 +1 @@ -disabled +disabled \ No newline at end of file diff --git a/tests/integration/targets/ntnx_recovery_plans_and_jobs_info/aliases b/tests/integration/targets/ntnx_recovery_plans_and_jobs_info/aliases index 7a68b11d..87e7bdaa 100644 --- a/tests/integration/targets/ntnx_recovery_plans_and_jobs_info/aliases +++ b/tests/integration/targets/ntnx_recovery_plans_and_jobs_info/aliases @@ -1 +1 @@ -disabled +disabled \ No newline at end of file diff --git a/tests/integration/targets/ntnx_roles/aliases b/tests/integration/targets/ntnx_roles/aliases index 87e7bdaa..e69de29b 100644 --- a/tests/integration/targets/ntnx_roles/aliases +++ b/tests/integration/targets/ntnx_roles/aliases @@ -1 +0,0 @@ -disabled \ No newline at end of file diff --git a/tests/integration/targets/ntnx_roles_info/aliases b/tests/integration/targets/ntnx_roles_info/aliases index 87e7bdaa..e69de29b 100644 --- a/tests/integration/targets/ntnx_roles_info/aliases +++ b/tests/integration/targets/ntnx_roles_info/aliases @@ -1 +0,0 @@ -disabled \ No newline at end of file diff --git a/tests/integration/targets/ntnx_security_rules/aliases b/tests/integration/targets/ntnx_security_rules/aliases index 87e7bdaa..e69de29b 100644 --- a/tests/integration/targets/ntnx_security_rules/aliases +++ b/tests/integration/targets/ntnx_security_rules/aliases @@ -1 +0,0 @@ -disabled \ No newline at end of file diff --git a/tests/integration/targets/ntnx_security_rules_info/aliases b/tests/integration/targets/ntnx_security_rules_info/aliases index 87e7bdaa..e69de29b 100644 --- a/tests/integration/targets/ntnx_security_rules_info/aliases +++ b/tests/integration/targets/ntnx_security_rules_info/aliases @@ -1 +0,0 @@ -disabled \ No newline at end of file diff --git a/tests/integration/targets/ntnx_security_rules_v2/aliases b/tests/integration/targets/ntnx_security_rules_v2/aliases index e69de29b..87e7bdaa 100644 --- a/tests/integration/targets/ntnx_security_rules_v2/aliases +++ b/tests/integration/targets/ntnx_security_rules_v2/aliases @@ -0,0 +1 @@ +disabled \ No newline at end of file diff --git a/tests/integration/targets/ntnx_service_groups/aliases b/tests/integration/targets/ntnx_service_groups/aliases index 87e7bdaa..e69de29b 100644 --- a/tests/integration/targets/ntnx_service_groups/aliases +++ b/tests/integration/targets/ntnx_service_groups/aliases @@ -1 +0,0 @@ -disabled \ No newline at end of file diff --git a/tests/integration/targets/ntnx_service_groups/tasks/create.yml b/tests/integration/targets/ntnx_service_groups/tasks/create.yml index 7fa4a6ba..9c7c13f6 100644 --- a/tests/integration/targets/ntnx_service_groups/tasks/create.yml +++ b/tests/integration/targets/ntnx_service_groups/tasks/create.yml @@ -156,7 +156,7 @@ - result.response.service_group.service_list[1].udp_port_range_list[2].start_port == 99 - result.response.service_group.service_list[1].udp_port_range_list[2].end_port == 99 - result.response.service_group.service_list[2].protocol == "ICMP" - - result.response.service_group.service_list[2].icmp_type_code_list == [] + - result.response.service_group.service_list[2].icmp_type_code_list == [{}] fail_msg: "Fail: Unable to create tcp service group " success_msg: "Pass: tcp service group created successfully" diff --git a/tests/integration/targets/ntnx_service_groups_info/aliases b/tests/integration/targets/ntnx_service_groups_info/aliases index 87e7bdaa..e69de29b 100644 --- a/tests/integration/targets/ntnx_service_groups_info/aliases +++ b/tests/integration/targets/ntnx_service_groups_info/aliases @@ -1 +0,0 @@ -disabled \ No newline at end of file diff --git a/tests/integration/targets/ntnx_static_routes/aliases b/tests/integration/targets/ntnx_static_routes/aliases index 87e7bdaa..e69de29b 100644 --- a/tests/integration/targets/ntnx_static_routes/aliases +++ b/tests/integration/targets/ntnx_static_routes/aliases @@ -1 +0,0 @@ -disabled \ No newline at end of file diff --git a/tests/integration/targets/ntnx_static_routes/tasks/create.yml b/tests/integration/targets/ntnx_static_routes/tasks/create.yml index f4671fdd..8e3a48f7 100644 --- a/tests/integration/targets/ntnx_static_routes/tasks/create.yml +++ b/tests/integration/targets/ntnx_static_routes/tasks/create.yml @@ -32,18 +32,34 @@ - result.response is defined - result.response.status.state == 'COMPLETE' - result.changed == true - - result.response.status.resources.static_routes_list[0]["is_active"] == true - ("{{d1}}" == "10.2.2.0/24" and "{{d2}}" == "10.2.3.0/24") or ("{{d2}}" == "10.2.2.0/24" and "{{d1}}" == "10.2.3.0/24") - result.response.status.resources.static_routes_list[0]["nexthop"]["external_subnet_reference"]["name"] == "{{ external_nat_subnet.name }}" - - result.response.status.resources.static_routes_list[1]["is_active"] == true - result.response.status.resources.static_routes_list[1]["nexthop"]["external_subnet_reference"]["name"] == "{{ external_nat_subnet.name }}" - - result.response.status.resources.default_route["is_active"] == true - result.response.status.resources.default_route["destination"] == "0.0.0.0/0" - result.response.status.resources.default_route["nexthop"]["external_subnet_reference"]["name"] == "{{ external_nat_subnet.name }}" fail_msg: "Fail: Unable to update static routes of vpc" success_msg: "Succes: static routes updated successfully" +- name: Wait 1 minute for static routes to be become active + ansible.builtin.pause: + seconds: 60 + +- name: Get all static routes + ntnx_static_routes_info: + vpc_uuid: "{{ vpc.uuid }}" + register: result + +- name: Set destination variables + ansible.builtin.set_fact: + d1: "{{ result.response.status.resources.static_routes_list[0].destination }}" + d2: "{{ result.response.status.resources.static_routes_list[1].destination }}" + +- name: Check info module response + ansible.builtin.assert: + that: + - result.response is defined + - result.changed == false ########################################################################################################### - name: Idempotency check @@ -91,12 +107,33 @@ - result.response is defined - result.response.status.state == 'COMPLETE' - result.changed == true - - result.response.status.resources.static_routes_list[0]["is_active"] == true - result.response.status.resources.static_routes_list[0]["destination"] == "10.2.4.0/24" - result.response.status.resources.static_routes_list[0]["nexthop"]["external_subnet_reference"]["name"] == "{{ external_nat_subnet.name }}" fail_msg: "Static routes overriding failed" success_msg: "Static routes overriden successfully" +- name: Wait 1 minute for static routes to be become active + ansible.builtin.pause: + seconds: 60 + +- name: Get all static routes + ntnx_static_routes_info: + vpc_uuid: "{{ vpc.uuid }}" + register: result + +- name: Set destination variable + ansible.builtin.set_fact: + d1: "{{ result.response.status.resources.static_routes_list[0].destination }}" + +- name: Check info module response + ansible.builtin.assert: + that: + - result.response is defined + - result.changed == false + - result.response.status.resources.static_routes_list[0]["is_active"] == true + - result.response.status.resources.static_routes_list[0]["destination"] == "10.2.4.0/24" + - result.response.status.resources.static_routes_list[0]["nexthop"]["external_subnet_reference"]["name"] == "{{ external_nat_subnet.name }}" + ########################################################################################################### - name: Netgative scenario of cretaing multiple default routes diff --git a/tests/integration/targets/ntnx_static_routes_info/aliases b/tests/integration/targets/ntnx_static_routes_info/aliases index 87e7bdaa..e69de29b 100644 --- a/tests/integration/targets/ntnx_static_routes_info/aliases +++ b/tests/integration/targets/ntnx_static_routes_info/aliases @@ -1 +0,0 @@ -disabled \ No newline at end of file diff --git a/tests/integration/targets/ntnx_static_routes_info/tasks/info.yml b/tests/integration/targets/ntnx_static_routes_info/tasks/info.yml index 870c7d69..d439a452 100644 --- a/tests/integration/targets/ntnx_static_routes_info/tasks/info.yml +++ b/tests/integration/targets/ntnx_static_routes_info/tasks/info.yml @@ -20,17 +20,21 @@ uuid: "{{ external_nat_subnet.uuid }}" register: result -- name: Update static routes list Status +- name: Create new static routes status ansible.builtin.assert: that: - result.response is defined - result.response.status.state == 'COMPLETE' - result.changed == true - fail_msg: "Fail: Unable to update static routes of vpc" - success_msg: "Succes: static routes updated successfully" + fail_msg: "Fail: Unable to create static routes for vpc" + success_msg: "Success: Static routes created" ########################################################################################################### +- name: Wait 60 seconds for static routes to be created + ansible.builtin.pause: + seconds: 60 + - name: Get all static routes ntnx_static_routes_info: vpc_uuid: "{{ vpc.uuid }}" diff --git a/tests/integration/targets/ntnx_user_groups/aliases b/tests/integration/targets/ntnx_user_groups/aliases index 87e7bdaa..e69de29b 100644 --- a/tests/integration/targets/ntnx_user_groups/aliases +++ b/tests/integration/targets/ntnx_user_groups/aliases @@ -1 +0,0 @@ -disabled \ No newline at end of file diff --git a/tests/integration/targets/ntnx_user_groups_v2/tasks/user_groups.yml b/tests/integration/targets/ntnx_user_groups_v2/tasks/user_groups.yml index 48f03179..2fa930d4 100644 --- a/tests/integration/targets/ntnx_user_groups_v2/tasks/user_groups.yml +++ b/tests/integration/targets/ntnx_user_groups_v2/tasks/user_groups.yml @@ -252,11 +252,11 @@ # register: result # ignore_errors: True -# - set_fact: +# - ansible.builtin.set_fact: # group_type: "{{ result.response | map(attribute='group_type') | list | unique }}" # - name: Fetch only LDAP user groups Status -# assert: +# ansible.builtin.assert: # that: # - result.response is defined # - result.changed == false @@ -275,11 +275,11 @@ # register: result # ignore_errors: True -# - set_fact: +# - ansible.builtin.set_fact: # group_type: "{{ result.response | map(attribute='group_type') | list | unique }}" # - name: Fetch only SAML user groups Status -# assert: +# ansible.builtin.assert: # that: # - result.response is defined # - result.changed == false diff --git a/tests/integration/targets/ntnx_users/aliases b/tests/integration/targets/ntnx_users/aliases index 87e7bdaa..e69de29b 100644 --- a/tests/integration/targets/ntnx_users/aliases +++ b/tests/integration/targets/ntnx_users/aliases @@ -1 +0,0 @@ -disabled \ No newline at end of file diff --git a/tests/integration/targets/ntnx_users_info/aliases b/tests/integration/targets/ntnx_users_info/aliases index 87e7bdaa..e69de29b 100644 --- a/tests/integration/targets/ntnx_users_info/aliases +++ b/tests/integration/targets/ntnx_users_info/aliases @@ -1 +0,0 @@ -disabled \ No newline at end of file diff --git a/tests/integration/targets/ntnx_users_v2/tasks/users_operations.yml b/tests/integration/targets/ntnx_users_v2/tasks/users_operations.yml index bf88f29e..341e1c93 100644 --- a/tests/integration/targets/ntnx_users_v2/tasks/users_operations.yml +++ b/tests/integration/targets/ntnx_users_v2/tasks/users_operations.yml @@ -427,7 +427,7 @@ # ignore_errors: true # - name: Deactivate local user status -# assert: +# ansible.builtin.assert: # that: # - result.response is defined # - result.changed == true @@ -445,7 +445,7 @@ # ignore_errors: True # - name: Fetch user info using user ext_id criteria and check status result -# assert: +# ansible.builtin.assert: # that: # - result.response is defined # - result.changed == false @@ -465,7 +465,7 @@ # ignore_errors: true # - name: Activate local user status -# assert: +# ansible.builtin.assert: # that: # - result.response is defined # - result.changed == true diff --git a/tests/integration/targets/ntnx_vms_categories_v2/tasks/vms_categories.yml b/tests/integration/targets/ntnx_vms_categories_v2/tasks/vms_categories.yml index 858a6ee9..28f521f1 100644 --- a/tests/integration/targets/ntnx_vms_categories_v2/tasks/vms_categories.yml +++ b/tests/integration/targets/ntnx_vms_categories_v2/tasks/vms_categories.yml @@ -81,8 +81,8 @@ - result.response is defined - result.changed == false - result.failed == false - - all_categories[0] == "{{ category_ext_id }}" - - all_categories[1] == "{{ category_ext_id1 }}" + - "'{{ category_ext_id }}' in {{ all_categories }}" + - "'{{ category_ext_id1 }}' in {{ all_categories }}" - result.vm_ext_id == "{{ vm_uuid }}" fail_msg: " Associate category to VM - check mode is enabled failed " success_msg: " Associate category to VM - check mode is enabled passed " @@ -180,9 +180,9 @@ - result.failed == false - result.response.categories | length > 0 - all_categories | length == 3 - - all_categories[0] == "{{ category_ext_id }}" - - all_categories[1] == "{{ category_ext_id1 }}" - - all_categories[2] == "{{ category_ext_id2 }}" + - "'{{ category_ext_id }}' in {{ all_categories }}" + - "'{{ category_ext_id1 }}' in {{ all_categories }}" + - "'{{ category_ext_id2 }}' in {{ all_categories }}" fail_msg: "Get categories from VM failed " success_msg: "Get categories from VM passed " @@ -209,8 +209,8 @@ - result.response is defined - result.changed == false - result.failed == false - - all_categories[0] == "{{ category_ext_id }}" - - all_categories[1] == "{{ category_ext_id1 }}" + - "'{{ category_ext_id }}' in {{ all_categories }}" + - "'{{ category_ext_id1 }}' in {{ all_categories }}" - result.vm_ext_id == "{{ vm_uuid }}" fail_msg: " Disassociate category from VM - check mode is enabled failed " success_msg: " Disassociate category from VM - check mode is enabled passed " @@ -281,8 +281,8 @@ - result.failed == false - result.response.categories | length > 0 - all_categories | length == 2 - - all_categories[0] == "{{ category_ext_id1 }}" - - all_categories[1] == "{{ category_ext_id2 }}" + - "'{{ category_ext_id1 }}' in {{ all_categories }}" + - "'{{ category_ext_id2 }}' in {{ all_categories }}" fail_msg: "Get categories from VM failed " success_msg: "Get categories from VM passed " diff --git a/tests/integration/targets/ntnx_vms_clone/aliases b/tests/integration/targets/ntnx_vms_clone/aliases index 87e7bdaa..e69de29b 100644 --- a/tests/integration/targets/ntnx_vms_clone/aliases +++ b/tests/integration/targets/ntnx_vms_clone/aliases @@ -1 +0,0 @@ -disabled \ No newline at end of file diff --git a/tests/integration/targets/ntnx_vms_ngt_v2/tasks/vms_ngt.yml b/tests/integration/targets/ntnx_vms_ngt_v2/tasks/vms_ngt.yml index 49198785..e5ab1043 100644 --- a/tests/integration/targets/ntnx_vms_ngt_v2/tasks/vms_ngt.yml +++ b/tests/integration/targets/ntnx_vms_ngt_v2/tasks/vms_ngt.yml @@ -597,7 +597,7 @@ # ignore_errors: true # - name: Upgrade NGT in VM Status -# assert: +# ansible.builtin.assert: # that: # - result.response is defined # - result.changed == true diff --git a/tests/integration/targets/ntnx_vms_v2/tasks/create_delete_info_vm.yml b/tests/integration/targets/ntnx_vms_v2/tasks/create_delete_info_vm.yml index a8bd5851..f26150dd 100644 --- a/tests/integration/targets/ntnx_vms_v2/tasks/create_delete_info_vm.yml +++ b/tests/integration/targets/ntnx_vms_v2/tasks/create_delete_info_vm.yml @@ -537,6 +537,46 @@ ansible.builtin.set_fact: todelete: '{{ todelete + [result["ext_id"]] }}' ######################################################################## + +- name: Read content from file + ansible.builtin.set_fact: + xml_file_content: "{{ lookup('file', unattendxml.dest + '/unattendxml.txt') }}" + +- name: Create vm with windows unattend xml file + ntnx_vms_v2: + name: "{{ vm_name }}" + description: ansible test + cluster: + ext_id: "{{ cluster.uuid }}" + guest_customization: + config: + sysprep: + install_type: "FRESH" + sysprep_script: + unattendxml: + value: "{{ xml_file_content }}" + register: result + ignore_errors: true + +- name: Creation status + ansible.builtin.assert: + that: + - result.response is defined + - result.changed == True + - result.failed == False + - result.response.ext_id is defined + - result.response.cluster.ext_id == "{{ cluster.uuid }}" + - result.response.name == "{{ vm_name }}" + - result.response.cd_roms[0] is defined + - result.response.cd_roms[0].iso_type == "GUEST_CUSTOMIZATION" + fail_msg: " Unable to create VM with windows unattend xml file " + success_msg: " VM with windows unattend xml file created successfully " + +- name: Adding VM to todelete list + ansible.builtin.set_fact: + todelete: '{{ todelete + [result["ext_id"]] }}' + +######################################################################## - name: List all VMs ntnx_vms_info_v2: register: result diff --git a/tests/integration/targets/nutanix_floating_ips/aliases b/tests/integration/targets/nutanix_floating_ips/aliases index 87e7bdaa..e69de29b 100644 --- a/tests/integration/targets/nutanix_floating_ips/aliases +++ b/tests/integration/targets/nutanix_floating_ips/aliases @@ -1 +0,0 @@ -disabled \ No newline at end of file diff --git a/tests/integration/targets/nutanix_floating_ips_info/aliases b/tests/integration/targets/nutanix_floating_ips_info/aliases index 87e7bdaa..e69de29b 100644 --- a/tests/integration/targets/nutanix_floating_ips_info/aliases +++ b/tests/integration/targets/nutanix_floating_ips_info/aliases @@ -1 +0,0 @@ -disabled \ No newline at end of file diff --git a/tests/integration/targets/nutanix_pbrs/aliases b/tests/integration/targets/nutanix_pbrs/aliases index 87e7bdaa..e69de29b 100644 --- a/tests/integration/targets/nutanix_pbrs/aliases +++ b/tests/integration/targets/nutanix_pbrs/aliases @@ -1 +0,0 @@ -disabled \ No newline at end of file diff --git a/tests/integration/targets/nutanix_pbrs_info/aliases b/tests/integration/targets/nutanix_pbrs_info/aliases index 87e7bdaa..e69de29b 100644 --- a/tests/integration/targets/nutanix_pbrs_info/aliases +++ b/tests/integration/targets/nutanix_pbrs_info/aliases @@ -1 +0,0 @@ -disabled \ No newline at end of file diff --git a/tests/integration/targets/nutanix_subnets/aliases b/tests/integration/targets/nutanix_subnets/aliases index 87e7bdaa..e69de29b 100644 --- a/tests/integration/targets/nutanix_subnets/aliases +++ b/tests/integration/targets/nutanix_subnets/aliases @@ -1 +0,0 @@ -disabled \ No newline at end of file diff --git a/tests/integration/targets/nutanix_subnets_info/aliases b/tests/integration/targets/nutanix_subnets_info/aliases index 87e7bdaa..e69de29b 100644 --- a/tests/integration/targets/nutanix_subnets_info/aliases +++ b/tests/integration/targets/nutanix_subnets_info/aliases @@ -1 +0,0 @@ -disabled \ No newline at end of file diff --git a/tests/integration/targets/nutanix_vms/aliases b/tests/integration/targets/nutanix_vms/aliases index 87e7bdaa..e69de29b 100644 --- a/tests/integration/targets/nutanix_vms/aliases +++ b/tests/integration/targets/nutanix_vms/aliases @@ -1 +0,0 @@ -disabled \ No newline at end of file diff --git a/tests/integration/targets/nutanix_vms/tasks/main.yml b/tests/integration/targets/nutanix_vms/tasks/main.yml index 7020053b..54eee0d1 100644 --- a/tests/integration/targets/nutanix_vms/tasks/main.yml +++ b/tests/integration/targets/nutanix_vms/tasks/main.yml @@ -1,21 +1,21 @@ --- - name: Set module defaults module_defaults: - group/nutanix.ncp.ntnx: + group/nutanix.ncp.ntnx: nutanix_host: "{{ ip }}" nutanix_username: "{{ username }}" nutanix_password: "{{ password }}" validate_certs: "{{ validate_certs }}" block: - - name: Import create.yml - ansible.builtin.import_tasks: "create.yml" - - name: Import negtaive_scenarios.yml - ansible.builtin.import_tasks: "negtaive_scenarios.yml" - - name: Import delete.yml - ansible.builtin.import_tasks: "delete.yml" - - name: Import vm_operations.yml - ansible.builtin.import_tasks: "vm_operations.yml" - - name: Import vm_update.yml - ansible.builtin.import_tasks: "vm_update.yml" - - name: Import negtaive_vm_update.yml - ansible.builtin.import_tasks: "negtaive_vm_update.yml" + - name: Import create.yml + ansible.builtin.import_tasks: "create.yml" + - name: Import negtaive_scenarios.yml + ansible.builtin.import_tasks: "negtaive_scenarios.yml" + - name: Import delete.yml + ansible.builtin.import_tasks: "delete.yml" + - name: Import vm_operations.yml + ansible.builtin.import_tasks: "vm_operations.yml" + - name: Import vm_update.yml + ansible.builtin.import_tasks: "vm_update.yml" + - name: Import negtaive_vm_update.yml + ansible.builtin.import_tasks: "negtaive_vm_update.yml" diff --git a/tests/integration/targets/nutanix_vms_info/aliases b/tests/integration/targets/nutanix_vms_info/aliases index 87e7bdaa..e69de29b 100644 --- a/tests/integration/targets/nutanix_vms_info/aliases +++ b/tests/integration/targets/nutanix_vms_info/aliases @@ -1 +0,0 @@ -disabled \ No newline at end of file diff --git a/tests/integration/targets/nutanix_vpcs/aliases b/tests/integration/targets/nutanix_vpcs/aliases index 87e7bdaa..e69de29b 100644 --- a/tests/integration/targets/nutanix_vpcs/aliases +++ b/tests/integration/targets/nutanix_vpcs/aliases @@ -1 +0,0 @@ -disabled \ No newline at end of file diff --git a/tests/integration/targets/nutanix_vpcs_info/aliases b/tests/integration/targets/nutanix_vpcs_info/aliases index 87e7bdaa..e69de29b 100644 --- a/tests/integration/targets/nutanix_vpcs_info/aliases +++ b/tests/integration/targets/nutanix_vpcs_info/aliases @@ -1 +0,0 @@ -disabled \ No newline at end of file diff --git a/tests/integration/targets/prepare_env/playbooks/prepare_env.yml b/tests/integration/targets/prepare_env/playbooks/prepare_env.yml index 045cc5b0..1159d1c7 100644 --- a/tests/integration/targets/prepare_env/playbooks/prepare_env.yml +++ b/tests/integration/targets/prepare_env/playbooks/prepare_env.yml @@ -216,3 +216,9 @@ mode: "0644" url: "{{ xml_content.url }}" dest: "{{ xml_content.dest }}" + + - name: Downloading unattendxml file for windows tests + ansible.builtin.get_url: + mode: "0644" + url: "{{ unattendxml.url }}" + dest: "{{ unattendxml.dest }}" diff --git a/tests/integration/targets/prepare_foundation_env/playbooks/cleanup.yml b/tests/integration/targets/prepare_foundation_env/playbooks/cleanup.yml index 5a4d0704..bc4aefe8 100644 --- a/tests/integration/targets/prepare_foundation_env/playbooks/cleanup.yml +++ b/tests/integration/targets/prepare_foundation_env/playbooks/cleanup.yml @@ -9,4 +9,4 @@ # file: # path: "{{ source }}" # state: absent - # ignore_errors: true \ No newline at end of file + # ignore_errors: true diff --git a/tests/integration/targets/prepare_ndb_env/paybooks/prepare_env.yml b/tests/integration/targets/prepare_ndb_env/paybooks/prepare_env.yml index a4f4fb3a..2d4e34cf 100644 --- a/tests/integration/targets/prepare_ndb_env/paybooks/prepare_env.yml +++ b/tests/integration/targets/prepare_ndb_env/paybooks/prepare_env.yml @@ -18,4 +18,4 @@ block: | ndb_ip: "{{ lookup('env', 'NDB_HOST') }}" ndb_username: "{{ lookup('env', 'NDB_USERNAME') }}" - ndb_password: "{{ lookup('env', 'NDB_PASSWORD') }}" \ No newline at end of file + ndb_password: "{{ lookup('env', 'NDB_PASSWORD') }}"