From 0ca238725bad79f2037529d58ebab559e9a69880 Mon Sep 17 00:00:00 2001 From: george-ghawali Date: Thu, 12 Dec 2024 15:10:47 +0200 Subject: [PATCH 1/9] Adding integration fixes for V3 (#533) * Adding integration fixes for V3 * Adding fixes for static routes and service groups * minor change in test case name and messages --- .../ntnx_address_groups/tasks/main.yml | 14 +++--- .../ntnx_address_groups_info/tasks/main.yml | 6 +-- .../targets/ntnx_categories/tasks/main.yml | 6 +-- .../ntnx_categories_info/tasks/main.yml | 6 +-- .../targets/ntnx_clusters_info/tasks/main.yml | 6 +-- .../targets/ntnx_hosts_info/tasks/main.yml | 6 +-- .../tasks/main.yml | 6 +-- .../tasks/main.yml | 14 +++--- .../targets/ntnx_images/tasks/main.yml | 14 +++--- .../targets/ntnx_images_info/tasks/main.yml | 6 +-- .../ntnx_service_groups/tasks/create.yml | 2 +- .../ntnx_static_routes/tasks/create.yml | 46 +++++++++++++++++-- .../ntnx_static_routes_info/tasks/info.yml | 10 ++-- .../targets/nutanix_vms/tasks/main.yml | 26 +++++------ 14 files changed, 105 insertions(+), 63 deletions(-) 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/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/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/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_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_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/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/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/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/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_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_static_routes/tasks/create.yml b/tests/integration/targets/ntnx_static_routes/tasks/create.yml index f4671fdd..69ecea87 100644 --- a/tests/integration/targets/ntnx_static_routes/tasks/create.yml +++ b/tests/integration/targets/ntnx_static_routes/tasks/create.yml @@ -32,18 +32,36 @@ - 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 + pause: + seconds: 60 + +- name: get all static routes + ntnx_static_routes_info: + vpc_uuid: "{{ vpc.uuid }}" + register: result + +- set_fact: + d1: "{{ result.response.status.resources.static_routes_list[0].destination }}" + d2: "{{ result.response.status.resources.static_routes_list[1].destination }}" + +- debug: + msg: "{{ result }}" + +- name: check info module response + assert: + that: + - result.response is defined + - result.changed == false ########################################################################################################### - name: Idempotency check @@ -91,12 +109,32 @@ - 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 + pause: + seconds: 60 + +- name: get all static routes + ntnx_static_routes_info: + vpc_uuid: "{{ vpc.uuid }}" + register: result + +- set_fact: + d1: "{{ result.response.status.resources.static_routes_list[0].destination }}" + +- name: check info module response + 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/tasks/info.yml b/tests/integration/targets/ntnx_static_routes_info/tasks/info.yml index 870c7d69..14ebd81c 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 + pause: + seconds: 60 + - name: Get all static routes ntnx_static_routes_info: vpc_uuid: "{{ vpc.uuid }}" 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" From cbd30507510992fea0d425bf08ce25d4057cda39 Mon Sep 17 00:00:00 2001 From: bhati-pradeep Date: Fri, 13 Dec 2024 00:30:54 +0530 Subject: [PATCH 2/9] Enable v3 tests --- tests/integration/targets/ntnx_acps/aliases | 1 - tests/integration/targets/ntnx_acps_info/aliases | 1 - tests/integration/targets/ntnx_address_groups/aliases | 1 - tests/integration/targets/ntnx_address_groups_info/aliases | 1 - tests/integration/targets/ntnx_categories/aliases | 1 - tests/integration/targets/ntnx_categories_info/aliases | 1 - tests/integration/targets/ntnx_clusters_info/aliases | 1 - tests/integration/targets/ntnx_foundation/aliases | 2 +- .../targets/ntnx_foundation_aos_packages_info/aliases | 2 +- .../integration/targets/ntnx_foundation_bmc_ipmi_config/aliases | 2 +- tests/integration/targets/ntnx_foundation_central/aliases | 2 +- .../targets/ntnx_foundation_central_api_keys/aliases | 2 +- .../targets/ntnx_foundation_central_api_keys_info/aliases | 2 +- .../ntnx_foundation_central_imaged_clusters_info/aliases | 2 +- .../targets/ntnx_foundation_central_imaged_nodes_info/aliases | 2 +- .../targets/ntnx_foundation_discover_nodes_info/aliases | 2 +- .../targets/ntnx_foundation_hypervisor_images_info/aliases | 2 +- tests/integration/targets/ntnx_foundation_image_upload/aliases | 2 +- .../targets/ntnx_foundation_node_network_info/aliases | 2 +- tests/integration/targets/ntnx_foundation_sanity/aliases | 2 +- tests/integration/targets/ntnx_gpus_v2/aliases | 1 - tests/integration/targets/ntnx_hosts_info/aliases | 1 - .../targets/ntnx_image_placement_policies_info/aliases | 1 - tests/integration/targets/ntnx_image_placement_policy/aliases | 1 - tests/integration/targets/ntnx_images/aliases | 1 - tests/integration/targets/ntnx_images_info/aliases | 1 - tests/integration/targets/ntnx_karbon_registries/aliases | 2 +- tests/integration/targets/ntnx_karbon_registries_info/aliases | 2 +- .../integration/targets/ntnx_ndb_availability_databases/aliases | 2 +- tests/integration/targets/ntnx_ndb_clones_info/aliases | 2 +- tests/integration/targets/ntnx_ndb_clusters/aliases | 2 +- tests/integration/targets/ntnx_ndb_database_clones/aliases | 2 +- tests/integration/targets/ntnx_ndb_databases_actions/aliases | 2 +- tests/integration/targets/ntnx_ndb_databases_sanity/aliases | 2 +- .../targets/ntnx_ndb_databases_single_instance_1/aliases | 2 +- .../targets/ntnx_ndb_databases_single_instance_2/aliases | 2 +- tests/integration/targets/ntnx_ndb_db_server_vms/aliases | 2 +- tests/integration/targets/ntnx_ndb_maintenance_windows/aliases | 2 +- tests/integration/targets/ntnx_ndb_profiles/aliases | 2 +- tests/integration/targets/ntnx_ndb_profiles_info/aliases | 2 +- tests/integration/targets/ntnx_ndb_slas/aliases | 2 +- tests/integration/targets/ntnx_ndb_snapshots_info/aliases | 2 +- tests/integration/targets/ntnx_ndb_software_profiles/aliases | 2 +- tests/integration/targets/ntnx_ndb_tags/aliases | 2 +- tests/integration/targets/ntnx_ndb_time_machines_info/aliases | 2 +- .../targets/ntnx_ndb_time_machines_with_multi_clusters/aliases | 2 +- tests/integration/targets/ntnx_ndb_vlans/aliases | 2 +- tests/integration/targets/ntnx_ova/aliases | 1 - tests/integration/targets/ntnx_permissions_info/aliases | 1 - tests/integration/targets/ntnx_projects/aliases | 1 - tests/integration/targets/ntnx_projects_info/aliases | 1 - tests/integration/targets/ntnx_protection_rules/aliases | 2 +- tests/integration/targets/ntnx_protection_rules_info/aliases | 2 +- tests/integration/targets/ntnx_recovery_plans_and_jobs/aliases | 2 +- .../targets/ntnx_recovery_plans_and_jobs_info/aliases | 2 +- tests/integration/targets/ntnx_roles/aliases | 1 - tests/integration/targets/ntnx_roles_info/aliases | 1 - tests/integration/targets/ntnx_security_rules/aliases | 1 - tests/integration/targets/ntnx_security_rules_info/aliases | 1 - tests/integration/targets/ntnx_security_rules_v2/aliases | 1 + tests/integration/targets/ntnx_service_groups/aliases | 1 - tests/integration/targets/ntnx_service_groups_info/aliases | 1 - tests/integration/targets/ntnx_static_routes/aliases | 1 - tests/integration/targets/ntnx_static_routes_info/aliases | 1 - tests/integration/targets/ntnx_user_groups/aliases | 1 - tests/integration/targets/ntnx_users/aliases | 1 - tests/integration/targets/ntnx_users_info/aliases | 1 - tests/integration/targets/ntnx_vms_clone/aliases | 1 - tests/integration/targets/nutanix_floating_ips/aliases | 1 - tests/integration/targets/nutanix_floating_ips_info/aliases | 1 - tests/integration/targets/nutanix_pbrs/aliases | 1 - tests/integration/targets/nutanix_pbrs_info/aliases | 1 - tests/integration/targets/nutanix_subnets/aliases | 1 - tests/integration/targets/nutanix_subnets_info/aliases | 1 - tests/integration/targets/nutanix_vms/aliases | 1 - tests/integration/targets/nutanix_vms_info/aliases | 1 - tests/integration/targets/nutanix_vpcs/aliases | 1 - tests/integration/targets/nutanix_vpcs_info/aliases | 1 - 78 files changed, 39 insertions(+), 77 deletions(-) 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_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_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_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_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_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_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_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_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_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_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_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_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_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_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_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_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_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_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_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_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/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_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 From 013c7b4a9801f8ac931809aa6bfdf0080ed1cfb1 Mon Sep 17 00:00:00 2001 From: george-ghawali Date: Thu, 12 Dec 2024 21:04:36 +0200 Subject: [PATCH 3/9] Adding fix when categories are not coming in order in the response (#537) --- .../tasks/vms_categories.yml | 18 +++++++++--------- 1 file changed, 9 insertions(+), 9 deletions(-) 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 " From 2be9a6fcc86a971cda4236a41874e065ea37932e Mon Sep 17 00:00:00 2001 From: george-ghawali Date: Mon, 16 Dec 2024 19:47:40 +0200 Subject: [PATCH 4/9] Adding minor fixes for ansible lint checks (#542) * Adding minor fixes for ansible lint checks * Adding new line at the end of files for ansible lint fixes * Adding more lint fixes --- .../tasks/cluster_crud.yml | 8 ++++-- .../tasks/add_remove_nodes.yml | 4 ++- .../tasks/get_cluster_info.yml | 4 +-- .../tasks/discover_nodes.yml | 2 +- .../tasks/network_profile.yml | 6 ++--- .../ntnx_ndb_vlans/tasks/create_vlans.yml | 14 +++++------ .../tasks/protection_rules.yml | 4 +-- .../ntnx_static_routes/tasks/create.yml | 25 +++++++++---------- .../ntnx_static_routes_info/tasks/info.yml | 2 +- .../ntnx_user_groups_v2/tasks/user_groups.yml | 8 +++--- .../ntnx_users_v2/tasks/users_operations.yml | 6 ++--- .../targets/ntnx_vms_ngt_v2/tasks/vms_ngt.yml | 2 +- .../playbooks/cleanup.yml | 2 +- .../prepare_ndb_env/paybooks/prepare_env.yml | 2 +- 14 files changed, 47 insertions(+), 42 deletions(-) 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_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_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_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_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_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_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_static_routes/tasks/create.yml b/tests/integration/targets/ntnx_static_routes/tasks/create.yml index 69ecea87..8e3a48f7 100644 --- a/tests/integration/targets/ntnx_static_routes/tasks/create.yml +++ b/tests/integration/targets/ntnx_static_routes/tasks/create.yml @@ -42,23 +42,21 @@ success_msg: "Succes: static routes updated successfully" - name: Wait 1 minute for static routes to be become active - pause: + ansible.builtin.pause: seconds: 60 -- name: get all static routes +- name: Get all static routes ntnx_static_routes_info: vpc_uuid: "{{ vpc.uuid }}" register: result -- set_fact: +- 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 }}" -- debug: - msg: "{{ result }}" - -- name: check info module response - assert: +- name: Check info module response + ansible.builtin.assert: that: - result.response is defined - result.changed == false @@ -115,19 +113,20 @@ success_msg: "Static routes overriden successfully" - name: Wait 1 minute for static routes to be become active - pause: + ansible.builtin.pause: seconds: 60 -- name: get all static routes +- name: Get all static routes ntnx_static_routes_info: vpc_uuid: "{{ vpc.uuid }}" register: result -- set_fact: +- name: Set destination variable + ansible.builtin.set_fact: d1: "{{ result.response.status.resources.static_routes_list[0].destination }}" -- name: check info module response - assert: +- name: Check info module response + ansible.builtin.assert: that: - result.response is defined - result.changed == false 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 14ebd81c..d439a452 100644 --- a/tests/integration/targets/ntnx_static_routes_info/tasks/info.yml +++ b/tests/integration/targets/ntnx_static_routes_info/tasks/info.yml @@ -32,7 +32,7 @@ ########################################################################################################### - name: Wait 60 seconds for static routes to be created - pause: + ansible.builtin.pause: seconds: 60 - name: Get all static routes 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_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_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/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') }}" From f3d47c47236ab3e4c02bd2cabde0e986b15d7485 Mon Sep 17 00:00:00 2001 From: george-ghawali Date: Mon, 16 Dec 2024 19:50:58 +0200 Subject: [PATCH 5/9] Adding test case to create VM using unattend xml file (#543) --- .../tasks/create_delete_info_vm.yml | 40 +++++++++++++++++++ .../prepare_env/playbooks/prepare_env.yml | 7 ++++ 2 files changed, 47 insertions(+) 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/prepare_env/playbooks/prepare_env.yml b/tests/integration/targets/prepare_env/playbooks/prepare_env.yml index 045cc5b0..ce6f5c67 100644 --- a/tests/integration/targets/prepare_env/playbooks/prepare_env.yml +++ b/tests/integration/targets/prepare_env/playbooks/prepare_env.yml @@ -216,3 +216,10 @@ 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 }}" + From 7676e485db24e4eb981d6fa1f3a6339a710c5e8b Mon Sep 17 00:00:00 2001 From: george-ghawali Date: Mon, 16 Dec 2024 20:08:21 +0200 Subject: [PATCH 6/9] Adding fix for multiple modules names in docs (#540) * Adding fix for multiple modules names in docs * Adding docs examples&return for network info V2 module * Minor doc fixes --------- Co-authored-by: bhati-pradeep --- .../modules/ntnx_address_groups_info_v2.py | 4 +- plugins/modules/ntnx_address_groups_v2.py | 4 +- .../ntnx_authorization_policies_info_v2.py | 6 +- plugins/modules/ntnx_categories_info_v2.py | 4 +- plugins/modules/ntnx_categories_v2.py | 6 +- plugins/modules/ntnx_clusters_info_v2.py | 6 +- plugins/modules/ntnx_clusters_nodes_v2.py | 4 +- plugins/modules/ntnx_clusters_v2.py | 8 +- .../ntnx_directory_services_info_v2.py | 6 +- plugins/modules/ntnx_directory_services_v2.py | 6 +- .../ntnx_discover_unconfigured_nodes_v2.py | 2 +- plugins/modules/ntnx_floating_ips_info_v2.py | 4 +- plugins/modules/ntnx_floating_ips_v2.py | 6 +- plugins/modules/ntnx_gpus_info_v2.py | 6 +- plugins/modules/ntnx_gpus_v2.py | 4 +- plugins/modules/ntnx_hosts_info_v2.py | 8 +- .../ntnx_image_placement_policies_info_v2.py | 4 +- .../ntnx_image_placement_policies_v2.py | 4 +- plugins/modules/ntnx_images_info_v2.py | 4 +- plugins/modules/ntnx_images_v2.py | 6 +- plugins/modules/ntnx_nodes_network_info_v2.py | 93 +++++++++++++++++++ plugins/modules/ntnx_operations_info_v2.py | 6 +- plugins/modules/ntnx_pbrs_info_v2.py | 6 +- plugins/modules/ntnx_pbrs_v2.py | 10 +- plugins/modules/ntnx_pc_registration_v2.py | 2 +- .../ntnx_recovery_point_replicate_v2.py | 2 +- .../modules/ntnx_recovery_point_restore_v2.py | 2 +- .../modules/ntnx_recovery_points_info_v2.py | 6 +- plugins/modules/ntnx_recovery_points_v2.py | 6 +- plugins/modules/ntnx_roles_info_v2.py | 6 +- plugins/modules/ntnx_roles_v2.py | 6 +- plugins/modules/ntnx_route_tables_info_v2.py | 6 +- plugins/modules/ntnx_routes_info_v2.py | 8 +- plugins/modules/ntnx_routes_v2.py | 6 +- .../ntnx_saml_identity_providers_info_v2.py | 8 +- .../ntnx_saml_identity_providers_v2.py | 6 +- .../modules/ntnx_security_rules_info_v2.py | 8 +- .../modules/ntnx_service_groups_info_v2.py | 4 +- plugins/modules/ntnx_service_groups_v2.py | 8 +- .../ntnx_storage_containers_info_v2.py | 6 +- .../ntnx_storage_containers_stats_v2.py | 4 +- plugins/modules/ntnx_storage_containers_v2.py | 8 +- plugins/modules/ntnx_subnets_info_v2.py | 8 +- plugins/modules/ntnx_subnets_v2.py | 8 +- plugins/modules/ntnx_templates_deploy_v2.py | 4 +- plugins/modules/ntnx_templates_guest_os_v2.py | 6 +- plugins/modules/ntnx_templates_info_v2.py | 4 +- plugins/modules/ntnx_templates_v2.py | 6 +- plugins/modules/ntnx_templates_version_v2.py | 4 +- .../ntnx_templates_versions_info_v2.py | 2 +- plugins/modules/ntnx_user_groups_info_v2.py | 6 +- plugins/modules/ntnx_user_groups_v2.py | 6 +- plugins/modules/ntnx_users_info_v2.py | 6 +- plugins/modules/ntnx_users_v2.py | 8 +- .../modules/ntnx_vm_recovery_point_info_v2.py | 2 +- plugins/modules/ntnx_vm_revert_v2.py | 2 +- plugins/modules/ntnx_vms_categories_v2.py | 4 +- plugins/modules/ntnx_vms_cd_rom_info_v2.py | 4 +- plugins/modules/ntnx_vms_cd_rom_iso_v2.py | 2 +- plugins/modules/ntnx_vms_cd_rom_v2.py | 2 +- plugins/modules/ntnx_vms_clone_v2.py | 4 +- plugins/modules/ntnx_vms_disks_info_v2.py | 4 +- plugins/modules/ntnx_vms_disks_v2.py | 6 +- plugins/modules/ntnx_vms_info_v2.py | 4 +- plugins/modules/ntnx_vms_ngt_info_v2.py | 5 +- plugins/modules/ntnx_vms_ngt_insert_iso_v2.py | 2 +- plugins/modules/ntnx_vms_ngt_update_v2.py | 2 +- plugins/modules/ntnx_vms_ngt_upgrade_v2.py | 2 +- plugins/modules/ntnx_vms_ngt_v2.py | 4 +- plugins/modules/ntnx_vms_nics_info_v2.py | 4 +- plugins/modules/ntnx_vms_nics_ip_v2.py | 4 +- plugins/modules/ntnx_vms_power_actions_v2.py | 16 ++-- .../modules/ntnx_vms_serial_port_info_v2.py | 4 +- plugins/modules/ntnx_vms_serial_port_v2.py | 6 +- .../ntnx_vms_stage_guest_customization_v2.py | 2 +- plugins/modules/ntnx_vms_v2.py | 8 +- .../ntnx_volume_groups_categories_info_v2.py | 2 +- .../ntnx_volume_groups_disks_info_v2.py | 6 +- .../modules/ntnx_volume_groups_disks_v2.py | 9 +- plugins/modules/ntnx_volume_groups_info_v2.py | 6 +- ...tnx_volume_groups_iscsi_clients_info_v2.py | 6 +- .../ntnx_volume_groups_iscsi_clients_v2.py | 6 +- plugins/modules/ntnx_volume_groups_v2.py | 6 +- .../modules/ntnx_volume_groups_vms_info_v2.py | 4 +- plugins/modules/ntnx_volume_groups_vms_v2.py | 4 +- plugins/modules/ntnx_vpcs_info_v2.py | 6 +- plugins/modules/ntnx_vpcs_v2.py | 8 +- 87 files changed, 317 insertions(+), 226 deletions(-) diff --git a/plugins/modules/ntnx_address_groups_info_v2.py b/plugins/modules/ntnx_address_groups_info_v2.py index 624e8f1b..9ad30185 100644 --- a/plugins/modules/ntnx_address_groups_info_v2.py +++ b/plugins/modules/ntnx_address_groups_info_v2.py @@ -31,7 +31,7 @@ """ 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 +40,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..b00b37d0 100644 --- a/plugins/modules/ntnx_address_groups_v2.py +++ b/plugins/modules/ntnx_address_groups_v2.py @@ -78,7 +78,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 +92,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..3ab6c71c 100644 --- a/plugins/modules/ntnx_authorization_policies_info_v2.py +++ b/plugins/modules/ntnx_authorization_policies_info_v2.py @@ -33,7 +33,7 @@ """ 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 +42,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 +51,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_categories_info_v2.py b/plugins/modules/ntnx_categories_info_v2.py index 3e903bc0..f993205d 100644 --- a/plugins/modules/ntnx_categories_info_v2.py +++ b/plugins/modules/ntnx_categories_info_v2.py @@ -33,13 +33,13 @@ """ 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..754b0a2a 100644 --- a/plugins/modules/ntnx_categories_v2.py +++ b/plugins/modules/ntnx_categories_v2.py @@ -59,7 +59,7 @@ EXAMPLES = r""" - name: Create category key & value - ntnx_categories_v2: + nutanix.ncp.ntnx_categories_v2: nutanix_host: nutanix_username: nutanix_password: @@ -68,7 +68,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 +78,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..60644a35 100644 --- a/plugins/modules/ntnx_clusters_info_v2.py +++ b/plugins/modules/ntnx_clusters_info_v2.py @@ -33,7 +33,7 @@ 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 +41,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..66bd35f9 100644 --- a/plugins/modules/ntnx_clusters_nodes_v2.py +++ b/plugins/modules/ntnx_clusters_nodes_v2.py @@ -471,7 +471,7 @@ EXAMPLES = r""" - name: Expand cluster - ntnx_clusters_nodes_v2: + nutanix.ncp.ntnx_clusters_nodes_v2: nutanix_host: nutanix_username: nutanix_password: @@ -523,7 +523,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..0a6e0bf1 100644 --- a/plugins/modules/ntnx_clusters_v2.py +++ b/plugins/modules/ntnx_clusters_v2.py @@ -753,7 +753,7 @@ EXAMPLES = r""" - name: Create cluster - ntnx_clusters_v2: + nutanix.ncp.ntnx_clusters_v2: nutanix_host: nutanix_username: nutanix_password: @@ -771,7 +771,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 +803,7 @@ timeout: 1800 - name: Update cluster - ntnx_clusters_v2: + nutanix.ncp.ntnx_clusters_v2: nutanix_host: nutanix_username: nutanix_password: @@ -822,7 +822,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..56cce98c 100644 --- a/plugins/modules/ntnx_directory_services_info_v2.py +++ b/plugins/modules/ntnx_directory_services_info_v2.py @@ -34,7 +34,7 @@ """ 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 +42,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 +51,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..988fb53a 100644 --- a/plugins/modules/ntnx_directory_services_v2.py +++ b/plugins/modules/ntnx_directory_services_v2.py @@ -145,7 +145,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 +161,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 +180,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..8455dfa1 100644 --- a/plugins/modules/ntnx_discover_unconfigured_nodes_v2.py +++ b/plugins/modules/ntnx_discover_unconfigured_nodes_v2.py @@ -91,7 +91,7 @@ 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..9c32e226 100644 --- a/plugins/modules/ntnx_floating_ips_info_v2.py +++ b/plugins/modules/ntnx_floating_ips_info_v2.py @@ -32,14 +32,14 @@ """ 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..657f5acf 100644 --- a/plugins/modules/ntnx_floating_ips_v2.py +++ b/plugins/modules/ntnx_floating_ips_v2.py @@ -144,7 +144,7 @@ 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 +160,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 +169,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..af704965 100644 --- a/plugins/modules/ntnx_gpus_info_v2.py +++ b/plugins/modules/ntnx_gpus_info_v2.py @@ -37,7 +37,7 @@ 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..21ec803e 100644 --- a/plugins/modules/ntnx_gpus_v2.py +++ b/plugins/modules/ntnx_gpus_v2.py @@ -68,7 +68,7 @@ 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..d1512f84 100644 --- a/plugins/modules/ntnx_hosts_info_v2.py +++ b/plugins/modules/ntnx_hosts_info_v2.py @@ -37,7 +37,7 @@ 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 +45,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 +53,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..7f6fbf85 100644 --- a/plugins/modules/ntnx_image_placement_policies_info_v2.py +++ b/plugins/modules/ntnx_image_placement_policies_info_v2.py @@ -28,7 +28,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 +36,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..1e47fc3d 100644 --- a/plugins/modules/ntnx_image_placement_policies_v2.py +++ b/plugins/modules/ntnx_image_placement_policies_v2.py @@ -126,7 +126,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 +149,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..a07b947a 100644 --- a/plugins/modules/ntnx_images_info_v2.py +++ b/plugins/modules/ntnx_images_info_v2.py @@ -30,14 +30,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..4c918284 100644 --- a/plugins/modules/ntnx_images_v2.py +++ b/plugins/modules/ntnx_images_v2.py @@ -163,7 +163,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 +191,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 +202,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..e0fe4154 100644 --- a/plugins/modules/ntnx_nodes_network_info_v2.py +++ b/plugins/modules/ntnx_nodes_network_info_v2.py @@ -184,9 +184,102 @@ """ 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..dafe3844 100644 --- a/plugins/modules/ntnx_operations_info_v2.py +++ b/plugins/modules/ntnx_operations_info_v2.py @@ -33,7 +33,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 +41,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 +50,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..0005b01b 100644 --- a/plugins/modules/ntnx_pbrs_info_v2.py +++ b/plugins/modules/ntnx_pbrs_info_v2.py @@ -31,18 +31,18 @@ """ 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..76efdf60 100644 --- a/plugins/modules/ntnx_pbrs_v2.py +++ b/plugins/modules/ntnx_pbrs_v2.py @@ -384,7 +384,7 @@ 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 +427,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 +459,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 +481,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 +491,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..165dca1f 100644 --- a/plugins/modules/ntnx_pc_registration_v2.py +++ b/plugins/modules/ntnx_pc_registration_v2.py @@ -224,7 +224,7 @@ 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..e71b23f8 100644 --- a/plugins/modules/ntnx_recovery_point_replicate_v2.py +++ b/plugins/modules/ntnx_recovery_point_replicate_v2.py @@ -39,7 +39,7 @@ """ 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..774dd085 100644 --- a/plugins/modules/ntnx_recovery_point_restore_v2.py +++ b/plugins/modules/ntnx_recovery_point_restore_v2.py @@ -67,7 +67,7 @@ """ 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..71645bf5 100644 --- a/plugins/modules/ntnx_recovery_points_info_v2.py +++ b/plugins/modules/ntnx_recovery_points_info_v2.py @@ -30,7 +30,7 @@ """ 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 +38,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..c2d11608 100644 --- a/plugins/modules/ntnx_recovery_points_v2.py +++ b/plugins/modules/ntnx_recovery_points_v2.py @@ -117,7 +117,7 @@ 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 +134,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 +143,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..9220f0f3 100644 --- a/plugins/modules/ntnx_roles_info_v2.py +++ b/plugins/modules/ntnx_roles_info_v2.py @@ -31,7 +31,7 @@ """ 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 +39,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 +48,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..960d5aef 100644 --- a/plugins/modules/ntnx_roles_v2.py +++ b/plugins/modules/ntnx_roles_v2.py @@ -68,7 +68,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 +81,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 +94,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..b6acf3cf 100644 --- a/plugins/modules/ntnx_route_tables_info_v2.py +++ b/plugins/modules/ntnx_route_tables_info_v2.py @@ -29,7 +29,7 @@ """ 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 +37,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 +46,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..17ad9e2d 100644 --- a/plugins/modules/ntnx_routes_info_v2.py +++ b/plugins/modules/ntnx_routes_info_v2.py @@ -34,7 +34,7 @@ """ 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 +43,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 +54,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 +64,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..ca01a779 100644 --- a/plugins/modules/ntnx_routes_v2.py +++ b/plugins/modules/ntnx_routes_v2.py @@ -205,7 +205,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 +230,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 +250,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..420a9641 100644 --- a/plugins/modules/ntnx_saml_identity_providers_info_v2.py +++ b/plugins/modules/ntnx_saml_identity_providers_info_v2.py @@ -32,22 +32,24 @@ """ 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..0a41ed53 100644 --- a/plugins/modules/ntnx_saml_identity_providers_v2.py +++ b/plugins/modules/ntnx_saml_identity_providers_v2.py @@ -127,7 +127,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 +143,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 +155,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..3c27a988 100644 --- a/plugins/modules/ntnx_security_rules_info_v2.py +++ b/plugins/modules/ntnx_security_rules_info_v2.py @@ -31,14 +31,14 @@ """ 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_service_groups_info_v2.py b/plugins/modules/ntnx_service_groups_info_v2.py index f82502b3..08ee95fc 100644 --- a/plugins/modules/ntnx_service_groups_info_v2.py +++ b/plugins/modules/ntnx_service_groups_info_v2.py @@ -31,7 +31,7 @@ """ 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 +39,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..4104f2e2 100644 --- a/plugins/modules/ntnx_service_groups_v2.py +++ b/plugins/modules/ntnx_service_groups_v2.py @@ -98,7 +98,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 +116,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 +134,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 +148,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..a3390939 100644 --- a/plugins/modules/ntnx_storage_containers_info_v2.py +++ b/plugins/modules/ntnx_storage_containers_info_v2.py @@ -34,7 +34,7 @@ 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 +42,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..e5ca87cd 100644 --- a/plugins/modules/ntnx_storage_containers_stats_v2.py +++ b/plugins/modules/ntnx_storage_containers_stats_v2.py @@ -62,7 +62,7 @@ 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 +72,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..e4f5dc78 100644 --- a/plugins/modules/ntnx_storage_containers_v2.py +++ b/plugins/modules/ntnx_storage_containers_v2.py @@ -190,7 +190,7 @@ 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 +198,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 +219,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 +230,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..031439e7 100644 --- a/plugins/modules/ntnx_subnets_info_v2.py +++ b/plugins/modules/ntnx_subnets_info_v2.py @@ -33,7 +33,7 @@ """ EXAMPLES = r""" - name: List all subnets - ntnx_subnets_info: + nutanix.ncp.ntnx_subnets_info_v2: nutanix_host: nutanix_username: nutanix_password: @@ -41,7 +41,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 +50,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 +58,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..e27f2bc0 100644 --- a/plugins/modules/ntnx_subnets_v2.py +++ b/plugins/modules/ntnx_subnets_v2.py @@ -378,7 +378,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 +407,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 +442,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 +469,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..46d5944b 100644 --- a/plugins/modules/ntnx_templates_deploy_v2.py +++ b/plugins/modules/ntnx_templates_deploy_v2.py @@ -260,7 +260,7 @@ 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 +270,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..8240c7b1 100644 --- a/plugins/modules/ntnx_templates_guest_os_v2.py +++ b/plugins/modules/ntnx_templates_guest_os_v2.py @@ -58,7 +58,7 @@ 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 +68,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 +78,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..664349fb 100644 --- a/plugins/modules/ntnx_templates_info_v2.py +++ b/plugins/modules/ntnx_templates_info_v2.py @@ -28,7 +28,7 @@ """ 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 +36,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..b89e3215 100644 --- a/plugins/modules/ntnx_templates_v2.py +++ b/plugins/modules/ntnx_templates_v2.py @@ -1148,7 +1148,7 @@ 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 +1162,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 +1181,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..298b5b90 100644 --- a/plugins/modules/ntnx_templates_version_v2.py +++ b/plugins/modules/ntnx_templates_version_v2.py @@ -47,7 +47,7 @@ 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 +56,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..b615bf70 100644 --- a/plugins/modules/ntnx_templates_versions_info_v2.py +++ b/plugins/modules/ntnx_templates_versions_info_v2.py @@ -36,7 +36,7 @@ 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..044c3f9f 100644 --- a/plugins/modules/ntnx_user_groups_info_v2.py +++ b/plugins/modules/ntnx_user_groups_info_v2.py @@ -32,7 +32,7 @@ """ 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 +40,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 +49,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..1d838e47 100644 --- a/plugins/modules/ntnx_user_groups_v2.py +++ b/plugins/modules/ntnx_user_groups_v2.py @@ -63,7 +63,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 +73,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 +83,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..47318c67 100644 --- a/plugins/modules/ntnx_users_info_v2.py +++ b/plugins/modules/ntnx_users_info_v2.py @@ -31,7 +31,7 @@ """ 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 +39,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 +48,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..bf838dc4 100644 --- a/plugins/modules/ntnx_users_v2.py +++ b/plugins/modules/ntnx_users_v2.py @@ -134,7 +134,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 +149,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 +160,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 +170,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..4b18bda9 100644 --- a/plugins/modules/ntnx_vm_recovery_point_info_v2.py +++ b/plugins/modules/ntnx_vm_recovery_point_info_v2.py @@ -35,7 +35,7 @@ """ 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..032ceea9 100644 --- a/plugins/modules/ntnx_vm_revert_v2.py +++ b/plugins/modules/ntnx_vm_revert_v2.py @@ -34,7 +34,7 @@ """ 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..61109ea9 100644 --- a/plugins/modules/ntnx_vms_categories_v2.py +++ b/plugins/modules/ntnx_vms_categories_v2.py @@ -55,7 +55,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 +69,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..122f5dac 100644 --- a/plugins/modules/ntnx_vms_cd_rom_info_v2.py +++ b/plugins/modules/ntnx_vms_cd_rom_info_v2.py @@ -35,7 +35,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 +43,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..09430e34 100644 --- a/plugins/modules/ntnx_vms_cd_rom_iso_v2.py +++ b/plugins/modules/ntnx_vms_cd_rom_iso_v2.py @@ -155,7 +155,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..b6faa1db 100644 --- a/plugins/modules/ntnx_vms_cd_rom_v2.py +++ b/plugins/modules/ntnx_vms_cd_rom_v2.py @@ -169,7 +169,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..bb460bd1 100644 --- a/plugins/modules/ntnx_vms_clone_v2.py +++ b/plugins/modules/ntnx_vms_clone_v2.py @@ -417,7 +417,7 @@ 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 +426,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..22c1f776 100644 --- a/plugins/modules/ntnx_vms_disks_info_v2.py +++ b/plugins/modules/ntnx_vms_disks_info_v2.py @@ -35,7 +35,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 +43,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..95d8f011 100644 --- a/plugins/modules/ntnx_vms_disks_v2.py +++ b/plugins/modules/ntnx_vms_disks_v2.py @@ -179,7 +179,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 +203,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 +218,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..74746529 100644 --- a/plugins/modules/ntnx_vms_info_v2.py +++ b/plugins/modules/ntnx_vms_info_v2.py @@ -30,14 +30,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..6b3d493e 100644 --- a/plugins/modules/ntnx_vms_ngt_info_v2.py +++ b/plugins/modules/ntnx_vms_ngt_info_v2.py @@ -28,7 +28,7 @@ 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 }}" @@ -36,9 +36,6 @@ 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..eea26d38 100644 --- a/plugins/modules/ntnx_vms_ngt_insert_iso_v2.py +++ b/plugins/modules/ntnx_vms_ngt_insert_iso_v2.py @@ -44,7 +44,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..f8d9ac4d 100644 --- a/plugins/modules/ntnx_vms_ngt_update_v2.py +++ b/plugins/modules/ntnx_vms_ngt_update_v2.py @@ -44,7 +44,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..08645745 100644 --- a/plugins/modules/ntnx_vms_ngt_upgrade_v2.py +++ b/plugins/modules/ntnx_vms_ngt_upgrade_v2.py @@ -54,7 +54,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..90b4f34e 100644 --- a/plugins/modules/ntnx_vms_ngt_v2.py +++ b/plugins/modules/ntnx_vms_ngt_v2.py @@ -96,7 +96,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 +113,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..768a5a8f 100644 --- a/plugins/modules/ntnx_vms_nics_info_v2.py +++ b/plugins/modules/ntnx_vms_nics_info_v2.py @@ -35,7 +35,7 @@ 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 +43,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..1b430651 100644 --- a/plugins/modules/ntnx_vms_nics_ip_v2.py +++ b/plugins/modules/ntnx_vms_nics_ip_v2.py @@ -62,7 +62,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 +74,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_power_actions_v2.py b/plugins/modules/ntnx_vms_power_actions_v2.py index 3652889e..c16d0095 100644 --- a/plugins/modules/ntnx_vms_power_actions_v2.py +++ b/plugins/modules/ntnx_vms_power_actions_v2.py @@ -70,7 +70,7 @@ 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..e84fe030 100644 --- a/plugins/modules/ntnx_vms_serial_port_info_v2.py +++ b/plugins/modules/ntnx_vms_serial_port_info_v2.py @@ -35,7 +35,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 +43,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..1fdcb2fe 100644 --- a/plugins/modules/ntnx_vms_serial_port_v2.py +++ b/plugins/modules/ntnx_vms_serial_port_v2.py @@ -58,7 +58,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 +69,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 +80,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..12650cf8 100644 --- a/plugins/modules/ntnx_vms_stage_guest_customization_v2.py +++ b/plugins/modules/ntnx_vms_stage_guest_customization_v2.py @@ -129,7 +129,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..fbee08e9 100644 --- a/plugins/modules/ntnx_vms_v2.py +++ b/plugins/modules/ntnx_vms_v2.py @@ -928,7 +928,7 @@ """ 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 +937,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 +965,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 +987,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_categories_info_v2.py b/plugins/modules/ntnx_volume_groups_categories_info_v2.py index be9ef280..b468feb4 100644 --- a/plugins/modules/ntnx_volume_groups_categories_info_v2.py +++ b/plugins/modules/ntnx_volume_groups_categories_info_v2.py @@ -31,7 +31,7 @@ EXAMPLES = r""" - name: Fetch info of all categories attached to VG - ntnx_volume_groups_vms_info_v2: + nutanix.ncp.ntnx_volume_groups_categories_info_v2: nutanix_host: "{{ ip }}" nutanix_username: "{{ username }}" nutanix_password: "{{ password }}" diff --git a/plugins/modules/ntnx_volume_groups_disks_info_v2.py b/plugins/modules/ntnx_volume_groups_disks_info_v2.py index 93fc0e97..bac288c9 100644 --- a/plugins/modules/ntnx_volume_groups_disks_info_v2.py +++ b/plugins/modules/ntnx_volume_groups_disks_info_v2.py @@ -35,7 +35,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 +43,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 +53,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..1a7e174d 100644 --- a/plugins/modules/ntnx_volume_groups_disks_v2.py +++ b/plugins/modules/ntnx_volume_groups_disks_v2.py @@ -101,7 +101,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 +120,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 +139,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 +157,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..d0f03328 100644 --- a/plugins/modules/ntnx_volume_groups_info_v2.py +++ b/plugins/modules/ntnx_volume_groups_info_v2.py @@ -30,14 +30,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 +45,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 dfd538d7..706af549 100644 --- a/plugins/modules/ntnx_volume_groups_iscsi_clients_info_v2.py +++ b/plugins/modules/ntnx_volume_groups_iscsi_clients_info_v2.py @@ -39,7 +39,7 @@ EXAMPLES = r""" - name: Fetch iscsi clients attached to VG - 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 }}" @@ -48,7 +48,7 @@ register: result - 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 }}" @@ -57,7 +57,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..310fe919 100644 --- a/plugins/modules/ntnx_volume_groups_iscsi_clients_v2.py +++ b/plugins/modules/ntnx_volume_groups_iscsi_clients_v2.py @@ -132,7 +132,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 +143,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 +159,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..8189afaa 100644 --- a/plugins/modules/ntnx_volume_groups_v2.py +++ b/plugins/modules/ntnx_volume_groups_v2.py @@ -159,7 +159,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 +181,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 +193,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_info_v2.py b/plugins/modules/ntnx_volume_groups_vms_info_v2.py index 66d1348c..a3d51cad 100644 --- a/plugins/modules/ntnx_volume_groups_vms_info_v2.py +++ b/plugins/modules/ntnx_volume_groups_vms_info_v2.py @@ -30,7 +30,7 @@ EXAMPLES = r""" - name: Fetch particular VM attached to VG using filters - ntnx_volume_groups_vms_info_v2: + nutanix.ncp.ntnx_volume_groups_vms_info_v2: nutanix_host: "{{ ip }}" nutanix_username: "{{ username }}" nutanix_password: "{{ password }}" @@ -40,7 +40,7 @@ register: result - name: Fetch all VMs attached to VG - ntnx_volume_groups_vms_info_v2: + nutanix.ncp.ntnx_volume_groups_vms_info_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..24a8a0dc 100644 --- a/plugins/modules/ntnx_volume_groups_vms_v2.py +++ b/plugins/modules/ntnx_volume_groups_vms_v2.py @@ -58,7 +58,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 +69,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..18540828 100644 --- a/plugins/modules/ntnx_vpcs_info_v2.py +++ b/plugins/modules/ntnx_vpcs_info_v2.py @@ -30,7 +30,7 @@ """ 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 +38,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 +47,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..4043addc 100644 --- a/plugins/modules/ntnx_vpcs_v2.py +++ b/plugins/modules/ntnx_vpcs_v2.py @@ -233,7 +233,7 @@ 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 +246,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 +261,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 +281,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 }}" From 0a68873c25606faa389c30ce59506f3a2a245143 Mon Sep 17 00:00:00 2001 From: george-ghawali Date: Sun, 22 Dec 2024 08:23:42 +0200 Subject: [PATCH 7/9] Adding docs to some V4 module utils files (#544) * Adding docs to some V4 module utils files * minor ansible lint fix * Adding minor ansible lint fix --- plugins/module_utils/v4/iam/helpers.py | 9 +++ plugins/module_utils/v4/vmm/helpers.py | 77 +++++++++++++++++++ plugins/modules/ntnx_vms_ngt_info_v2.py | 1 - .../prepare_env/playbooks/prepare_env.yml | 1 - 4 files changed, 86 insertions(+), 2 deletions(-) diff --git a/plugins/module_utils/v4/iam/helpers.py b/plugins/module_utils/v4/iam/helpers.py index a7d4fc55..737cf55d 100644 --- a/plugins/module_utils/v4/iam/helpers.py +++ b/plugins/module_utils/v4/iam/helpers.py @@ -6,6 +6,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/vmm/helpers.py b/plugins/module_utils/v4/vmm/helpers.py index 8f8f7c1d..f6ae3240 100644 --- a/plugins/module_utils/v4/vmm/helpers.py +++ b/plugins/module_utils/v4/vmm/helpers.py @@ -6,6 +6,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 +26,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 +47,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 +67,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 +88,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 +109,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 +129,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 +150,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/modules/ntnx_vms_ngt_info_v2.py b/plugins/modules/ntnx_vms_ngt_info_v2.py index 6b3d493e..6f9229dd 100644 --- a/plugins/modules/ntnx_vms_ngt_info_v2.py +++ b/plugins/modules/ntnx_vms_ngt_info_v2.py @@ -35,7 +35,6 @@ validate_certs: false ext_id: "98b9dc89-be08-3c56-b554-692b8b676fd1" register: result - """ RETURN = r""" diff --git a/tests/integration/targets/prepare_env/playbooks/prepare_env.yml b/tests/integration/targets/prepare_env/playbooks/prepare_env.yml index ce6f5c67..1159d1c7 100644 --- a/tests/integration/targets/prepare_env/playbooks/prepare_env.yml +++ b/tests/integration/targets/prepare_env/playbooks/prepare_env.yml @@ -222,4 +222,3 @@ mode: "0644" url: "{{ unattendxml.url }}" dest: "{{ unattendxml.dest }}" - From 5158f7b9d7195b1e135da9b7020845d451968b0a Mon Sep 17 00:00:00 2001 From: george-ghawali Date: Sun, 22 Dec 2024 08:32:15 +0200 Subject: [PATCH 8/9] fixing copyrights data in files (#541) * fixing authors data for new modules * Fixing copyrights in V4 files --- plugins/module_utils/v4/base_info_module.py | 8 ++++++-- .../module_utils/v4/clusters_mgmt/api_client.py | 6 ++++++ plugins/module_utils/v4/clusters_mgmt/helpers.py | 6 ++++++ .../v4/clusters_mgmt/spec/clusters.py | 8 ++++++-- plugins/module_utils/v4/constants.py | 5 ++++- .../v4/data_protection/api_client.py | 6 ++++++ .../module_utils/v4/data_protection/helpers.py | 6 ++++++ plugins/module_utils/v4/flow/api_client.py | 6 ++++++ plugins/module_utils/v4/flow/helpers.py | 6 ++++++ plugins/module_utils/v4/iam/api_client.py | 6 ++++++ plugins/module_utils/v4/iam/helpers.py | 6 ++++++ plugins/module_utils/v4/network/api_client.py | 6 ++++++ plugins/module_utils/v4/network/helpers.py | 6 ++++++ plugins/module_utils/v4/prism/pc_api_client.py | 6 ++++++ plugins/module_utils/v4/prism/tasks.py | 6 +++++- plugins/module_utils/v4/sdk_mock.py | 6 ++++++ plugins/module_utils/v4/spec_generator.py | 6 +++++- plugins/module_utils/v4/utils.py | 5 ++++- plugins/module_utils/v4/vmm/api_client.py | 6 ++++++ plugins/module_utils/v4/vmm/helpers.py | 6 ++++++ plugins/module_utils/v4/vmm/spec/vms.py | 8 ++++++-- plugins/module_utils/v4/volumes/api_client.py | 6 ++++++ plugins/module_utils/v4/volumes/helpers.py | 6 ++++++ .../module_utils/v4/volumes/spec/volume_group.py | 8 ++++++-- plugins/modules/ntnx_address_groups_info_v2.py | 4 ++-- plugins/modules/ntnx_address_groups_v2.py | 4 ++-- .../ntnx_authorization_policies_info_v2.py | 4 ++-- .../modules/ntnx_authorization_policies_v2.py | 10 +++++----- plugins/modules/ntnx_categories_info_v2.py | 4 ++-- plugins/modules/ntnx_categories_v2.py | 4 ++-- plugins/modules/ntnx_clusters_info_v2.py | 4 ++-- plugins/modules/ntnx_clusters_nodes_v2.py | 4 ++-- plugins/modules/ntnx_clusters_v2.py | 4 ++-- .../modules/ntnx_directory_services_info_v2.py | 4 ++-- plugins/modules/ntnx_directory_services_v2.py | 4 ++-- .../ntnx_discover_unconfigured_nodes_v2.py | 4 ++-- plugins/modules/ntnx_floating_ips_info_v2.py | 4 ++-- plugins/modules/ntnx_floating_ips_v2.py | 4 ++-- plugins/modules/ntnx_gpus_info_v2.py | 3 +-- plugins/modules/ntnx_gpus_v2.py | 3 +-- plugins/modules/ntnx_hosts_info_v2.py | 4 ++-- .../ntnx_image_placement_policies_info_v2.py | 3 ++- .../modules/ntnx_image_placement_policies_v2.py | 2 +- plugins/modules/ntnx_images_info_v2.py | 4 ++-- plugins/modules/ntnx_images_v2.py | 4 ++-- plugins/modules/ntnx_nodes_network_info_v2.py | 4 ++-- plugins/modules/ntnx_operations_info_v2.py | 4 ++-- plugins/modules/ntnx_pbrs_info_v2.py | 4 ++-- plugins/modules/ntnx_pbrs_v2.py | 4 ++-- plugins/modules/ntnx_pc_registration_v2.py | 4 ++-- .../modules/ntnx_recovery_point_replicate_v2.py | 4 ++-- .../modules/ntnx_recovery_point_restore_v2.py | 4 ++-- plugins/modules/ntnx_recovery_points_info_v2.py | 4 ++-- plugins/modules/ntnx_recovery_points_v2.py | 16 ++++++++-------- plugins/modules/ntnx_roles_info_v2.py | 4 ++-- plugins/modules/ntnx_roles_v2.py | 4 ++-- plugins/modules/ntnx_route_tables_info_v2.py | 4 ++-- plugins/modules/ntnx_routes_info_v2.py | 4 ++-- plugins/modules/ntnx_routes_v2.py | 4 ++-- .../ntnx_saml_identity_providers_info_v2.py | 4 ++-- .../modules/ntnx_saml_identity_providers_v2.py | 4 ++-- plugins/modules/ntnx_security_rules_info_v2.py | 4 ++-- plugins/modules/ntnx_security_rules_v2.py | 4 ++-- plugins/modules/ntnx_service_groups_info_v2.py | 4 ++-- plugins/modules/ntnx_service_groups_v2.py | 4 ++-- .../modules/ntnx_storage_containers_info_v2.py | 4 ++-- .../modules/ntnx_storage_containers_stats_v2.py | 4 ++-- plugins/modules/ntnx_storage_containers_v2.py | 4 ++-- plugins/modules/ntnx_subnets_info_v2.py | 4 ++-- plugins/modules/ntnx_subnets_v2.py | 4 ++-- plugins/modules/ntnx_templates_deploy_v2.py | 10 +++++----- plugins/modules/ntnx_templates_guest_os_v2.py | 4 ++-- plugins/modules/ntnx_templates_info_v2.py | 4 ++-- plugins/modules/ntnx_templates_v2.py | 4 ++-- plugins/modules/ntnx_templates_version_v2.py | 4 ++-- .../modules/ntnx_templates_versions_info_v2.py | 4 ++-- plugins/modules/ntnx_user_groups_info_v2.py | 4 ++-- plugins/modules/ntnx_user_groups_v2.py | 4 ++-- plugins/modules/ntnx_users_info_v2.py | 4 ++-- plugins/modules/ntnx_users_v2.py | 4 ++-- .../modules/ntnx_vm_recovery_point_info_v2.py | 4 ++-- plugins/modules/ntnx_vm_revert_v2.py | 4 ++-- plugins/modules/ntnx_vms_categories_v2.py | 4 ++-- plugins/modules/ntnx_vms_cd_rom_info_v2.py | 4 ++-- plugins/modules/ntnx_vms_cd_rom_iso_v2.py | 10 +++++----- plugins/modules/ntnx_vms_cd_rom_v2.py | 4 ++-- plugins/modules/ntnx_vms_clone_v2.py | 4 ++-- plugins/modules/ntnx_vms_disks_info_v2.py | 4 ++-- plugins/modules/ntnx_vms_disks_v2.py | 4 ++-- plugins/modules/ntnx_vms_info_v2.py | 4 ++-- plugins/modules/ntnx_vms_ngt_info_v2.py | 4 ++-- plugins/modules/ntnx_vms_ngt_insert_iso_v2.py | 4 ++-- plugins/modules/ntnx_vms_ngt_update_v2.py | 4 ++-- plugins/modules/ntnx_vms_ngt_upgrade_v2.py | 4 ++-- plugins/modules/ntnx_vms_ngt_v2.py | 4 ++-- plugins/modules/ntnx_vms_nics_info_v2.py | 4 ++-- plugins/modules/ntnx_vms_nics_ip_v2.py | 4 ++-- plugins/modules/ntnx_vms_nics_migrate_v2.py | 4 ++-- plugins/modules/ntnx_vms_nics_v2.py | 4 ++-- plugins/modules/ntnx_vms_power_actions_v2.py | 3 +-- plugins/modules/ntnx_vms_serial_port_info_v2.py | 4 ++-- plugins/modules/ntnx_vms_serial_port_v2.py | 4 ++-- .../ntnx_vms_stage_guest_customization_v2.py | 4 ++-- plugins/modules/ntnx_vms_v2.py | 4 ++-- .../ntnx_volume_groups_categories_info_v2.py | 4 ++-- .../modules/ntnx_volume_groups_disks_info_v2.py | 4 ++-- plugins/modules/ntnx_volume_groups_disks_v2.py | 4 ++-- plugins/modules/ntnx_volume_groups_info_v2.py | 4 ++-- .../ntnx_volume_groups_iscsi_clients_info_v2.py | 4 ++-- .../ntnx_volume_groups_iscsi_clients_v2.py | 4 ++-- plugins/modules/ntnx_volume_groups_v2.py | 4 ++-- .../modules/ntnx_volume_groups_vms_info_v2.py | 4 ++-- plugins/modules/ntnx_volume_groups_vms_v2.py | 4 ++-- plugins/modules/ntnx_vpcs_info_v2.py | 4 ++-- plugins/modules/ntnx_vpcs_v2.py | 4 ++-- 115 files changed, 331 insertions(+), 207 deletions(-) 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 737cf55d..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 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 f6ae3240..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 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 9ad30185..8fda5560 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 @@ -24,7 +25,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) diff --git a/plugins/modules/ntnx_address_groups_v2.py b/plugins/modules/ntnx_address_groups_v2.py index b00b37d0..65d3bd93 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 @@ -70,7 +71,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) diff --git a/plugins/modules/ntnx_authorization_policies_info_v2.py b/plugins/modules/ntnx_authorization_policies_info_v2.py index 3ab6c71c..a7fdbbb9 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 @@ -27,7 +28,6 @@ - nutanix.ncp.ntnx_credentials - nutanix.ncp.ntnx_info_v2 author: - - Prem Karat (@premkarat) - Gevorg Khachatryan (@Gevorg-Khachatryan-97) - Alaa Bishtawi (@alaa-bish) """ diff --git a/plugins/modules/ntnx_authorization_policies_v2.py b/plugins/modules/ntnx_authorization_policies_v2.py index f54ba795..6a9c5941 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 @@ -75,7 +76,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) @@ -425,9 +425,9 @@ def delete_authorization_policy(module, result): result["changed"] = True if resp is None: - result[ - "msg" - ] = "Authorization policy with ext_id: {} deleted successfully".format(ext_id) + result["msg"] = ( + "Authorization policy with ext_id: {} deleted successfully".format(ext_id) + ) else: result["response"] = strip_internal_attributes(resp.to_dict()) diff --git a/plugins/modules/ntnx_categories_info_v2.py b/plugins/modules/ntnx_categories_info_v2.py index f993205d..146309ec 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 @@ -27,7 +28,6 @@ - nutanix.ncp.ntnx_credentials - nutanix.ncp.ntnx_info_v2 author: - - Prem Karat (@premkarat) - Gevorg Khachatryan (@Gevorg-Khachatryan-97) - Alaa Bishtawi (@alaa-bish) """ diff --git a/plugins/modules/ntnx_categories_v2.py b/plugins/modules/ntnx_categories_v2.py index 754b0a2a..adcdfc0e 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 @@ -52,7 +53,6 @@ - nutanix.ncp.ntnx_credentials - nutanix.ncp.ntnx_operations_v2 author: - - Prem Karat (@premkarat) - Gevorg Khachatryan (@Gevorg-Khachatryan-97) - Alaa Bishtawi (@alaa-bish) """ diff --git a/plugins/modules/ntnx_clusters_info_v2.py b/plugins/modules/ntnx_clusters_info_v2.py index 60644a35..1c8475c4 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 @@ -27,7 +28,6 @@ - nutanix.ncp.ntnx_credentials - nutanix.ncp.ntnx_info_v2 author: - - Prem Karat (@premkarat) - Pradeepsingh Bhati (@bhati-pradeep) """ diff --git a/plugins/modules/ntnx_clusters_nodes_v2.py b/plugins/modules/ntnx_clusters_nodes_v2.py index 66bd35f9..c886efc6 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 @@ -464,7 +465,6 @@ - nutanix.ncp.ntnx_credentials - nutanix.ncp.ntnx_operations_v2 author: - - Prem Karat (@premkarat) - Alaa Bishtawi (@alaabishtawi) - George Ghawali (@george-ghawali) """ diff --git a/plugins/modules/ntnx_clusters_v2.py b/plugins/modules/ntnx_clusters_v2.py index 0a6e0bf1..187139e5 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 @@ -747,7 +748,6 @@ - nutanix.ncp.ntnx_credentials - nutanix.ncp.ntnx_operations_v2 author: - - Prem Karat (@premkarat) - Pradeepsingh Bhati (@bhati-pradeep) """ diff --git a/plugins/modules/ntnx_directory_services_info_v2.py b/plugins/modules/ntnx_directory_services_info_v2.py index 56cce98c..1c1427ca 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 @@ -27,7 +28,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) diff --git a/plugins/modules/ntnx_directory_services_v2.py b/plugins/modules/ntnx_directory_services_v2.py index 988fb53a..757c93c0 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 @@ -137,7 +138,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) diff --git a/plugins/modules/ntnx_discover_unconfigured_nodes_v2.py b/plugins/modules/ntnx_discover_unconfigured_nodes_v2.py index 8455dfa1..340f5b50 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 @@ -84,7 +85,6 @@ - nutanix.ncp.ntnx_credentials - nutanix.ncp.ntnx_operations_v2 author: - - Prem Karat (@premkarat) - Alaa Bishtawi (@alaabishtawi) - George Ghawali (@george-ghawali) """ diff --git a/plugins/modules/ntnx_floating_ips_info_v2.py b/plugins/modules/ntnx_floating_ips_info_v2.py index 9c32e226..7d474c63 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 @@ -26,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) """ diff --git a/plugins/modules/ntnx_floating_ips_v2.py b/plugins/modules/ntnx_floating_ips_v2.py index 657f5acf..c781435f 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 @@ -137,7 +138,6 @@ - nutanix.ncp.ntnx_credentials - nutanix.ncp.ntnx_operations_v2 author: - - Prem Karat (@premkarat) - Gevorg Khachatryan (@Gevorg-Khachatryan-97) - Alaa Bishtawi (@alaa-bish) """ diff --git a/plugins/modules/ntnx_gpus_info_v2.py b/plugins/modules/ntnx_gpus_info_v2.py index af704965..3d2b4871 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 @@ -30,7 +30,6 @@ - nutanix.ncp.ntnx_credentials - nutanix.ncp.ntnx_info_v2 author: - - Prem Karat (@premkarat) - George Ghawali (@george-ghawali) """ diff --git a/plugins/modules/ntnx_gpus_v2.py b/plugins/modules/ntnx_gpus_v2.py index 21ec803e..c601fc9c 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 @@ -62,7 +62,6 @@ - nutanix.ncp.ntnx_credentials - nutanix.ncp.ntnx_operations_v2 author: - - Prem Karat (@premkarat) - George Ghawali (@george-ghawali) """ diff --git a/plugins/modules/ntnx_hosts_info_v2.py b/plugins/modules/ntnx_hosts_info_v2.py index d1512f84..f49d15f3 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 @@ -31,7 +32,6 @@ - nutanix.ncp.ntnx_credentials - nutanix.ncp.ntnx_info_v2 author: - - Prem Karat (@premkarat) - Pradeepsingh Bhati (@bhati-pradeep) """ diff --git a/plugins/modules/ntnx_image_placement_policies_info_v2.py b/plugins/modules/ntnx_image_placement_policies_info_v2.py index 7f6fbf85..141f568d 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 diff --git a/plugins/modules/ntnx_image_placement_policies_v2.py b/plugins/modules/ntnx_image_placement_policies_v2.py index 1e47fc3d..4c7ae701 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 diff --git a/plugins/modules/ntnx_images_info_v2.py b/plugins/modules/ntnx_images_info_v2.py index a07b947a..6aa6691a 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 @@ -15,7 +16,6 @@ - The module can fetch information about all images or a specific image. version_added: "2.0.0" author: - - Prem Karat (@premkarat) - Pradeepsingh Bhati (@bhati-pradeep) options: ext_id: diff --git a/plugins/modules/ntnx_images_v2.py b/plugins/modules/ntnx_images_v2.py index 4c918284..6585ce96 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 @@ -15,7 +16,6 @@ - This module allows you to create, update, and delete images in Nutanix. version_added: "2.0.0" author: - - Prem Karat (@premkarat) - Pradeepsingh Bhati (@bhati-pradeep) options: state: diff --git a/plugins/modules/ntnx_nodes_network_info_v2.py b/plugins/modules/ntnx_nodes_network_info_v2.py index e0fe4154..159dbe1b 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 @@ -178,7 +179,6 @@ - nutanix.ncp.ntnx_credentials - nutanix.ncp.ntnx_operations_v2 author: - - Prem Karat (@premkarat) - Alaa Bishtawi (@alaabishtawi) - George Ghawali (@george-ghawali) """ diff --git a/plugins/modules/ntnx_operations_info_v2.py b/plugins/modules/ntnx_operations_info_v2.py index dafe3844..17de463d 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 @@ -25,7 +26,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) diff --git a/plugins/modules/ntnx_pbrs_info_v2.py b/plugins/modules/ntnx_pbrs_info_v2.py index 0005b01b..e237df46 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 @@ -25,7 +26,6 @@ - nutanix.ncp.ntnx_credentials - nutanix.ncp.ntnx_info_v2 author: - - Prem Karat (@premkarat) - Gevorg Khachatryan (@Gevorg-Khachatryan-97) - Alaa Bishtawi (@alaa-bish) """ diff --git a/plugins/modules/ntnx_pbrs_v2.py b/plugins/modules/ntnx_pbrs_v2.py index 76efdf60..bcd473e9 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 @@ -377,7 +378,6 @@ - nutanix.ncp.ntnx_credentials - nutanix.ncp.ntnx_operations_v2 author: - - Prem Karat (@premkarat) - Gevorg Khachatryan (@Gevorg-Khachatryan-97) - Alaa Bishtawi (@alaa-bish) """ diff --git a/plugins/modules/ntnx_pc_registration_v2.py b/plugins/modules/ntnx_pc_registration_v2.py index 165dca1f..891f2bc6 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 @@ -218,7 +219,6 @@ - nutanix.ncp.ntnx_credentials - nutanix.ncp.ntnx_operations_v2 author: - - Prem Karat (@premkarat) - George Ghawali (@george-ghawali) """ diff --git a/plugins/modules/ntnx_recovery_point_replicate_v2.py b/plugins/modules/ntnx_recovery_point_replicate_v2.py index e71b23f8..8d1ff38f 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 @@ -33,7 +34,6 @@ - nutanix.ncp.ntnx_credentials - nutanix.ncp.ntnx_operations_v2 author: - - Prem Karat (@premkarat) - Abhinav Bansal (@abhinavbansal29) - Pradeepsingh Bhati (@bhati-pradeep) """ diff --git a/plugins/modules/ntnx_recovery_point_restore_v2.py b/plugins/modules/ntnx_recovery_point_restore_v2.py index 774dd085..51289b42 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 @@ -61,7 +62,6 @@ - nutanix.ncp.ntnx_credentials - nutanix.ncp.ntnx_operations_v2 author: - - Prem Karat (@premkarat) - Abhinav Bansal (@abhinavbansal29) - Pradeepsingh Bhati (@bhati-pradeep) """ diff --git a/plugins/modules/ntnx_recovery_points_info_v2.py b/plugins/modules/ntnx_recovery_points_info_v2.py index 71645bf5..4ebc6b7d 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 @@ -24,7 +25,6 @@ - nutanix.ncp.ntnx_credentials - nutanix.ncp.ntnx_info_v2 author: - - Prem Karat (@premkarat) - Abhinav Bansal (@abhinavbansal29) - Pradeepsingh Bhati (@bhati-pradeep) """ diff --git a/plugins/modules/ntnx_recovery_points_v2.py b/plugins/modules/ntnx_recovery_points_v2.py index c2d11608..e573ec6a 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 @@ -110,7 +111,6 @@ - nutanix.ncp.ntnx_credentials - nutanix.ncp.ntnx_operations_v2 author: - - Prem Karat (@premkarat) - Abhinav Bansal (@abhinavbansal29) - Pradeepsingh Bhati (@bhati-pradeep) """ @@ -389,9 +389,9 @@ def update_expiry_date_recovery_point(module, result): new_expiration_time = module.params.get("expiration_time") if new_expiration_time is None: - result[ - "error" - ] = "Expiration time is required for updating recovery point and other fields can't be updated." + result["error"] = ( + "Expiration time is required for updating recovery point and other fields can't be updated." + ) module.fail_json(msg="Expiration time is required", **result) if int(old_expiration_time.timestamp()) == int( @@ -413,9 +413,9 @@ def update_expiry_date_recovery_point(module, result): elif not check_recovery_point_idempotency_without_expiration( old_spec.to_dict(), update_spec.to_dict() ): - result[ - "warning" - ] = "Only Expiration time Updation is allowed. Can't update other fields." + result["warning"] = ( + "Only Expiration time Updation is allowed. Can't update other fields." + ) expirationTimeSpec = data_protection_sdk.ExpirationTimeSpec() expirationTimeSpec.expiration_time = new_expiration_time diff --git a/plugins/modules/ntnx_roles_info_v2.py b/plugins/modules/ntnx_roles_info_v2.py index 9220f0f3..eca3121c 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 @@ -24,7 +25,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) diff --git a/plugins/modules/ntnx_roles_v2.py b/plugins/modules/ntnx_roles_v2.py index 960d5aef..c521aa82 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 @@ -60,7 +61,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) diff --git a/plugins/modules/ntnx_route_tables_info_v2.py b/plugins/modules/ntnx_route_tables_info_v2.py index b6acf3cf..cb7a1652 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 @@ -22,7 +23,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) diff --git a/plugins/modules/ntnx_routes_info_v2.py b/plugins/modules/ntnx_routes_info_v2.py index 17ad9e2d..60daef5f 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 @@ -27,7 +28,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) diff --git a/plugins/modules/ntnx_routes_v2.py b/plugins/modules/ntnx_routes_v2.py index ca01a779..0dc6c77f 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 @@ -197,7 +198,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) diff --git a/plugins/modules/ntnx_saml_identity_providers_info_v2.py b/plugins/modules/ntnx_saml_identity_providers_info_v2.py index 420a9641..cdb86f19 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 @@ -26,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) """ diff --git a/plugins/modules/ntnx_saml_identity_providers_v2.py b/plugins/modules/ntnx_saml_identity_providers_v2.py index 0a41ed53..61229397 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 @@ -119,7 +120,6 @@ - nutanix.ncp.ntnx_credentials - nutanix.ncp.ntnx_operations_v2 author: - - Prem Karat (@premkarat) - Gevorg Khachatryan (@Gevorg-Khachatryan-97) - Alaa Bishtawi (@alaa-bish) """ diff --git a/plugins/modules/ntnx_security_rules_info_v2.py b/plugins/modules/ntnx_security_rules_info_v2.py index 3c27a988..4aa353eb 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 @@ -25,7 +26,6 @@ - nutanix.ncp.ntnx_credentials - nutanix.ncp.ntnx_info_v2 author: - - Prem Karat (@premkarat) - Gevorg Khachatryan (@Gevorg-Khachatryan-97) - Alaa Bishtawi (@alaa-bish) """ diff --git a/plugins/modules/ntnx_security_rules_v2.py b/plugins/modules/ntnx_security_rules_v2.py index 0d088ce8..e94cb0c0 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 @@ -314,7 +315,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 08ee95fc..d8acc789 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 @@ -24,7 +25,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) diff --git a/plugins/modules/ntnx_service_groups_v2.py b/plugins/modules/ntnx_service_groups_v2.py index 4104f2e2..6c347c5b 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 @@ -90,7 +91,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) diff --git a/plugins/modules/ntnx_storage_containers_info_v2.py b/plugins/modules/ntnx_storage_containers_info_v2.py index a3390939..f1394467 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 @@ -27,7 +28,6 @@ - nutanix.ncp.ntnx_credentials - nutanix.ncp.ntnx_info_v2 author: - - Prem Karat (@premkarat) - Alaa Bishtawi (@alaabishtawi) - George Ghawali (@george-ghawali) """ diff --git a/plugins/modules/ntnx_storage_containers_stats_v2.py b/plugins/modules/ntnx_storage_containers_stats_v2.py index e5ca87cd..ef9970b4 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 @@ -55,7 +56,6 @@ extends_documentation_fragment: - nutanix.ncp.ntnx_credentials author: - - Prem Karat (@premkarat) - Alaa Bishtawi (@alaabishtawi) - George Ghawali (@george-ghawali) """ diff --git a/plugins/modules/ntnx_storage_containers_v2.py b/plugins/modules/ntnx_storage_containers_v2.py index e4f5dc78..81a39b1e 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 @@ -183,7 +184,6 @@ - nutanix.ncp.ntnx_credentials - nutanix.ncp.ntnx_operations_v2 author: - - Prem Karat (@premkarat) - Alaa Bishtawi (@alaabishtawi) - George Ghawali (@george-ghawali) """ diff --git a/plugins/modules/ntnx_subnets_info_v2.py b/plugins/modules/ntnx_subnets_info_v2.py index 031439e7..a98a5876 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 @@ -26,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) diff --git a/plugins/modules/ntnx_subnets_v2.py b/plugins/modules/ntnx_subnets_v2.py index e27f2bc0..d2921415 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 @@ -370,7 +371,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) diff --git a/plugins/modules/ntnx_templates_deploy_v2.py b/plugins/modules/ntnx_templates_deploy_v2.py index 46d5944b..c987e6c9 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 @@ -253,7 +254,6 @@ - nutanix.ncp.ntnx_credentials - nutanix.ncp.ntnx_operations_v2 author: - - Prem Karat (@premkarat) - Gevorg Khachatryan (@Gevorg-Khachatryan-97) - Alaa Bishtawi (@alaa-bish) """ @@ -470,9 +470,9 @@ def deploy_template(module, result): if module.check_mode: result["response"] = strip_internal_attributes(spec.to_dict()) version_ext_id = module.params.get("version_id") - result[ - "msg" - ] = f"Template ({ext_id}) with given version ({version_ext_id}) will be deployed." + result["msg"] = ( + f"Template ({ext_id}) with given version ({version_ext_id}) will be deployed." + ) return etag = get_etag(data=current_spec) diff --git a/plugins/modules/ntnx_templates_guest_os_v2.py b/plugins/modules/ntnx_templates_guest_os_v2.py index 8240c7b1..eda21ba7 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 @@ -51,7 +52,6 @@ - nutanix.ncp.ntnx_credentials - nutanix.ncp.ntnx_operations_v2 author: - - Prem Karat (@premkarat) - Gevorg Khachatryan (@Gevorg-Khachatryan-97) - Alaa Bishtawi (@alaa-bish) """ diff --git a/plugins/modules/ntnx_templates_info_v2.py b/plugins/modules/ntnx_templates_info_v2.py index 664349fb..7fa8df89 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 @@ -22,7 +23,6 @@ - nutanix.ncp.ntnx_credentials - nutanix.ncp.ntnx_info_v2 author: - - Prem Karat (@premkarat) - Gevorg Khachatryan (@Gevorg-Khachatryan-97) - Alaa Bishtawi (@alaa-bish) """ diff --git a/plugins/modules/ntnx_templates_v2.py b/plugins/modules/ntnx_templates_v2.py index b89e3215..ea6ac558 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 @@ -1141,7 +1142,6 @@ - nutanix.ncp.ntnx_credentials - nutanix.ncp.ntnx_operations_v2 author: - - Prem Karat (@premkarat) - Gevorg Khachatryan (@Gevorg-Khachatryan-97) - Alaa Bishtawi (@alaa-bish) """ diff --git a/plugins/modules/ntnx_templates_version_v2.py b/plugins/modules/ntnx_templates_version_v2.py index 298b5b90..fe40e56e 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 @@ -40,7 +41,6 @@ - nutanix.ncp.ntnx_credentials - nutanix.ncp.ntnx_operations_v2 author: - - Prem Karat (@premkarat) - Gevorg Khachatryan (@Gevorg-Khachatryan-97) - Alaa Bishtawi (@alaa-bish) """ diff --git a/plugins/modules/ntnx_templates_versions_info_v2.py b/plugins/modules/ntnx_templates_versions_info_v2.py index b615bf70..c7bc3801 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 @@ -29,7 +30,6 @@ - nutanix.ncp.ntnx_credentials - nutanix.ncp.ntnx_info_v2 author: - - Prem Karat (@premkarat) - Gevorg Khachatryan (@Gevorg-Khachatryan-97) - Alaa Bishtawi (@alaa-bish) """ diff --git a/plugins/modules/ntnx_user_groups_info_v2.py b/plugins/modules/ntnx_user_groups_info_v2.py index 044c3f9f..737ed176 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 @@ -25,7 +26,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) diff --git a/plugins/modules/ntnx_user_groups_v2.py b/plugins/modules/ntnx_user_groups_v2.py index 1d838e47..931a71c6 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 @@ -55,7 +56,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) diff --git a/plugins/modules/ntnx_users_info_v2.py b/plugins/modules/ntnx_users_info_v2.py index 47318c67..ad60e0db 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 @@ -24,7 +25,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) diff --git a/plugins/modules/ntnx_users_v2.py b/plugins/modules/ntnx_users_v2.py index bf838dc4..eeb3bb41 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 @@ -125,7 +126,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) diff --git a/plugins/modules/ntnx_vm_recovery_point_info_v2.py b/plugins/modules/ntnx_vm_recovery_point_info_v2.py index 4b18bda9..e5cbb20a 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 @@ -29,7 +30,6 @@ - nutanix.ncp.ntnx_credentials - nutanix.ncp.ntnx_info_v2 author: - - Prem Karat (@premkarat) - Abhinav Bansal (@abhinavbansal29) - Pradeepsingh Bhati (@bhati-pradeep) """ diff --git a/plugins/modules/ntnx_vm_revert_v2.py b/plugins/modules/ntnx_vm_revert_v2.py index 032ceea9..a9d09b08 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 @@ -28,7 +29,6 @@ - nutanix.ncp.ntnx_credentials - nutanix.ncp.ntnx_operations_v2 author: - - Prem Karat (@premkarat) - Abhinav Bansal (@abhinavbansal29) - Pradeepsingh Bhati (@bhati-pradeep) """ diff --git a/plugins/modules/ntnx_vms_categories_v2.py b/plugins/modules/ntnx_vms_categories_v2.py index 61109ea9..73815765 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 @@ -46,7 +47,6 @@ type: bool default: true author: - - Prem Karat (@premkarat) - Pradeepsingh Bhati (@bhati-pradeep) extends_documentation_fragment: - nutanix.ncp.ntnx_credentials diff --git a/plugins/modules/ntnx_vms_cd_rom_info_v2.py b/plugins/modules/ntnx_vms_cd_rom_info_v2.py index 122f5dac..4dda1ea6 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 @@ -15,7 +16,6 @@ - The module can fetch information about all CD ROMs or a specific CD ROM. version_added: "2.0.0" author: - - Prem Karat (@premkarat) - Pradeepsingh Bhati (@bhati-pradeep) options: ext_id: diff --git a/plugins/modules/ntnx_vms_cd_rom_iso_v2.py b/plugins/modules/ntnx_vms_cd_rom_iso_v2.py index 09430e34..fb3c5bad 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 @@ -146,7 +147,6 @@ type: bool default: true author: - - Prem Karat (@premkarat) - Pradeepsingh Bhati (@bhati-pradeep) extends_documentation_fragment: - nutanix.ncp.ntnx_credentials @@ -342,9 +342,9 @@ def eject_iso(module, vms, result): result["ext_id"] = ext_id if module.check_mode: - result[ - "response" - ] = "ISO will be ejected from CD ROM with external ID: {0}".format(ext_id) + result["response"] = ( + "ISO will be ejected from CD ROM with external ID: {0}".format(ext_id) + ) return diff --git a/plugins/modules/ntnx_vms_cd_rom_v2.py b/plugins/modules/ntnx_vms_cd_rom_v2.py index b6faa1db..cace4dea 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 @@ -148,7 +149,6 @@ type: bool default: true author: - - Prem Karat (@premkarat) - Pradeepsingh Bhati (@bhati-pradeep) extends_documentation_fragment: - nutanix.ncp.ntnx_credentials diff --git a/plugins/modules/ntnx_vms_clone_v2.py b/plugins/modules/ntnx_vms_clone_v2.py index bb460bd1..5d30a6f8 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 @@ -410,7 +411,6 @@ - nutanix.ncp.ntnx_credentials - nutanix.ncp.ntnx_operations_v2 author: - - Prem Karat (@premkarat) - Gevorg Khachatryan (@Gevorg-Khachatryan-97) - Alaa Bishtawi (@alaa-bish) """ diff --git a/plugins/modules/ntnx_vms_disks_info_v2.py b/plugins/modules/ntnx_vms_disks_info_v2.py index 22c1f776..5b4d714c 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 @@ -15,7 +16,6 @@ - The module can fetch information about all disks or a specific disks. version_added: "2.0.0" author: - - Prem Karat (@premkarat) - Pradeepsingh Bhati (@bhati-pradeep) options: ext_id: diff --git a/plugins/modules/ntnx_vms_disks_v2.py b/plugins/modules/ntnx_vms_disks_v2.py index 95d8f011..8eb40c6f 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 @@ -170,7 +171,6 @@ type: bool default: true author: - - Prem Karat (@premkarat) - Pradeepsingh Bhati (@bhati-pradeep) extends_documentation_fragment: - nutanix.ncp.ntnx_credentials diff --git a/plugins/modules/ntnx_vms_info_v2.py b/plugins/modules/ntnx_vms_info_v2.py index 74746529..16198171 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 @@ -15,7 +16,6 @@ - The module can fetch information about all VMs or a specific AHV based PC VMs version_added: "2.0.0" author: - - Prem Karat (@premkarat) - Pradeepsingh Bhati (@bhati-pradeep) options: ext_id: diff --git a/plugins/modules/ntnx_vms_ngt_info_v2.py b/plugins/modules/ntnx_vms_ngt_info_v2.py index 6f9229dd..0154daf7 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 @@ -14,7 +15,6 @@ - This module retrieves Nutanix Guest Tools (NGT) current config for a virtual machine in a Nutanix cluster. version_added: "2.0.0" author: - - Prem Karat (@premkarat) - Pradeepsingh Bhati (@bhati-pradeep) options: ext_id: diff --git a/plugins/modules/ntnx_vms_ngt_insert_iso_v2.py b/plugins/modules/ntnx_vms_ngt_insert_iso_v2.py index eea26d38..cc80364d 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 @@ -14,7 +15,6 @@ - This module allows you to insert the Nutanix Guest Tools (NGT) ISO into a virtual machine's available CD-ROM in Nutanix PC. version_added: "2.0.0" author: - - Prem Karat (@premkarat) - Pradeepsingh Bhati (@bhati-pradeep) options: ext_id: diff --git a/plugins/modules/ntnx_vms_ngt_update_v2.py b/plugins/modules/ntnx_vms_ngt_update_v2.py index f8d9ac4d..9f500574 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 @@ -14,7 +15,6 @@ description: - This module allows you to update the Nutanix Guest Tools (NGT) configuration for a VM. author: - - Prem Karat (@premkarat) - Pradeepsingh Bhati (@bhati-pradeep) options: ext_id: diff --git a/plugins/modules/ntnx_vms_ngt_upgrade_v2.py b/plugins/modules/ntnx_vms_ngt_upgrade_v2.py index 08645745..6b74a4fa 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 @@ -14,7 +15,6 @@ description: - This module upgrades Nutanix Guest Tools (NGT) on a VM in a Nutanix PC. author: - - Prem Karat (@premkarat) - Pradeepsingh Bhati (@bhati-pradeep) options: ext_id: diff --git a/plugins/modules/ntnx_vms_ngt_v2.py b/plugins/modules/ntnx_vms_ngt_v2.py index 90b4f34e..460578b6 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 @@ -15,7 +16,6 @@ - This module allows you to install or uninstall Nutanix Guest Tools (NGT) on a VM in a Nutanix cluster. 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. diff --git a/plugins/modules/ntnx_vms_nics_info_v2.py b/plugins/modules/ntnx_vms_nics_info_v2.py index 768a5a8f..20bcd53c 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 @@ -29,7 +30,6 @@ - nutanix.ncp.ntnx_credentials - nutanix.ncp.ntnx_info_v2 author: - - Prem Karat (@premkarat) - Pradeepsingh Bhati (@bhati-pradeep) """ diff --git a/plugins/modules/ntnx_vms_nics_ip_v2.py b/plugins/modules/ntnx_vms_nics_ip_v2.py index 1b430651..8cfb702c 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 @@ -14,7 +15,6 @@ - This module allows you to assign or release IP from Nutanix VM NICs. 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. diff --git a/plugins/modules/ntnx_vms_nics_migrate_v2.py b/plugins/modules/ntnx_vms_nics_migrate_v2.py index c874bc63..33679ae6 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 @@ -13,7 +14,6 @@ description: - Migrates a network device attached to a Virtual Machine to another subnet. 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..90e6a4ba 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 @@ -14,7 +15,6 @@ - This module allows you to create, update, and delete NICs of Nutanix VMs. 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 c16d0095..2c08cf20 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 @@ -64,7 +64,6 @@ - nutanix.ncp.ntnx_credentials - nutanix.ncp.ntnx_operations_v2 author: - - Prem Karat (@premkarat) - George Ghawali (@george-ghawali) """ EXAMPLES = r""" diff --git a/plugins/modules/ntnx_vms_serial_port_info_v2.py b/plugins/modules/ntnx_vms_serial_port_info_v2.py index e84fe030..6c07d784 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 @@ -15,7 +16,6 @@ - The module can fetch information about all serial ports or a specific serial ports. version_added: "2.0.0" author: - - Prem Karat (@premkarat) - Pradeepsingh Bhati (@bhati-pradeep) options: ext_id: diff --git a/plugins/modules/ntnx_vms_serial_port_v2.py b/plugins/modules/ntnx_vms_serial_port_v2.py index 1fdcb2fe..6045d70e 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 @@ -49,7 +50,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 diff --git a/plugins/modules/ntnx_vms_stage_guest_customization_v2.py b/plugins/modules/ntnx_vms_stage_guest_customization_v2.py index 12650cf8..4f309743 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 @@ -121,7 +122,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 diff --git a/plugins/modules/ntnx_vms_v2.py b/plugins/modules/ntnx_vms_v2.py index fbee08e9..f8cf832f 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 @@ -921,7 +922,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_volume_groups_categories_info_v2.py b/plugins/modules/ntnx_volume_groups_categories_info_v2.py index b468feb4..2d26cc3b 100644 --- a/plugins/modules/ntnx_volume_groups_categories_info_v2.py +++ b/plugins/modules/ntnx_volume_groups_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 @@ -16,7 +17,6 @@ - Fetch list of attached categories to VG version_added: "2.0.0" author: - - Prem Karat (@premkarat) - Pradeepsingh Bhati (@bhati-pradeep) options: ext_id: diff --git a/plugins/modules/ntnx_volume_groups_disks_info_v2.py b/plugins/modules/ntnx_volume_groups_disks_info_v2.py index bac288c9..52779329 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 @@ -15,7 +16,6 @@ - The module can fetch information about all Volume groups or a specific Volume group disk. version_added: "2.0.0" author: - - Prem Karat (@premkarat) - Pradeepsingh Bhati (@bhati-pradeep) options: ext_id: diff --git a/plugins/modules/ntnx_volume_groups_disks_v2.py b/plugins/modules/ntnx_volume_groups_disks_v2.py index 1a7e174d..9ca32e10 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 @@ -15,7 +16,6 @@ - This module allows you to create and delete volume group disks in Nutanix. version_added: "2.0.0" author: - - Prem Karat (@premkarat) - Pradeepsingh Bhati (@bhati-pradeep) options: state: diff --git a/plugins/modules/ntnx_volume_groups_info_v2.py b/plugins/modules/ntnx_volume_groups_info_v2.py index d0f03328..a0d00943 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 @@ -15,7 +16,6 @@ - The module can fetch information about all Volume groups or a specific Volume group. version_added: "2.0.0" author: - - Prem Karat (@premkarat) - Pradeepsingh Bhati (@bhati-pradeep) options: ext_id: 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 706af549..5323614c 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 @@ -17,7 +18,6 @@ - Fetch all iscsi clients attached to a particular VG if C(volume_group_ext_id) is given version_added: "2.0.0" author: - - Prem Karat (@premkarat) - Pradeepsingh Bhati (@bhati-pradeep) options: ext_id: diff --git a/plugins/modules/ntnx_volume_groups_iscsi_clients_v2.py b/plugins/modules/ntnx_volume_groups_iscsi_clients_v2.py index 310fe919..fea64fe9 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 @@ -15,7 +16,6 @@ - This module allows you to attach & detach ISCSI clients to/from a volume group in a Nutanix cluster. version_added: "2.0.0" author: - - Prem Karat (@premkarat) - Pradeepsingh Bhati (@bhati-pradeep) options: state: diff --git a/plugins/modules/ntnx_volume_groups_v2.py b/plugins/modules/ntnx_volume_groups_v2.py index 8189afaa..e02f74c0 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 @@ -15,7 +16,6 @@ - This module allows you to create and delete volume group in Nutanix PC. version_added: "2.0.0" author: - - Prem Karat (@premkarat) - Pradeepsingh Bhati (@bhati-pradeep) options: state: diff --git a/plugins/modules/ntnx_volume_groups_vms_info_v2.py b/plugins/modules/ntnx_volume_groups_vms_info_v2.py index a3d51cad..11b54657 100644 --- a/plugins/modules/ntnx_volume_groups_vms_info_v2.py +++ b/plugins/modules/ntnx_volume_groups_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 @@ -15,7 +16,6 @@ - Fetch all VMs info attached to VM version_added: "2.0.0" author: - - Prem Karat (@premkarat) - Pradeepsingh Bhati (@bhati-pradeep) options: ext_id: diff --git a/plugins/modules/ntnx_volume_groups_vms_v2.py b/plugins/modules/ntnx_volume_groups_vms_v2.py index 24a8a0dc..ef66fcb1 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 @@ -15,7 +16,6 @@ - Attach/Detach volume group to AHV VMs in Nutanix PC version_added: "2.0.0" author: - - Prem Karat (@premkarat) - Pradeepsingh Bhati (@bhati-pradeep) options: state: diff --git a/plugins/modules/ntnx_vpcs_info_v2.py b/plugins/modules/ntnx_vpcs_info_v2.py index 18540828..28e23efb 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 @@ -24,7 +25,6 @@ - nutanix.ncp.ntnx_credentials - nutanix.ncp.ntnx_info_v2 author: - - Prem Karat (@premkarat) - Gevorg Khachatryan (@Gevorg-Khachatryan-97) - Alaa Bishtawi (@alaa-bish) """ diff --git a/plugins/modules/ntnx_vpcs_v2.py b/plugins/modules/ntnx_vpcs_v2.py index 4043addc..03568585 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 @@ -226,7 +227,6 @@ - nutanix.ncp.ntnx_credentials - nutanix.ncp.ntnx_operations_v2 author: - - Prem Karat (@premkarat) - Gevorg Khachatryan (@Gevorg-Khachatryan-97) - Alaa Bishtawi (@alaa-bish) """ From 23496fea1315fe0c4da7a7ca42e5bb40045c67f4 Mon Sep 17 00:00:00 2001 From: george-ghawali Date: Mon, 23 Dec 2024 09:18:59 +0200 Subject: [PATCH 9/9] Adding statement in description to clarify that V4 modules uses PC V4 APIs based SDKs (#548) * Adding statement in description to clarify that V4 modules uses PC V4 APIs based SDKs * Black fix --- plugins/modules/ntnx_address_groups_info_v2.py | 1 + plugins/modules/ntnx_address_groups_v2.py | 6 ++++-- .../ntnx_authorization_policies_info_v2.py | 1 + .../modules/ntnx_authorization_policies_v2.py | 7 ++++--- plugins/modules/ntnx_categories_info_v2.py | 4 +++- plugins/modules/ntnx_categories_v2.py | 1 + plugins/modules/ntnx_clusters_info_v2.py | 1 + plugins/modules/ntnx_clusters_nodes_v2.py | 1 + plugins/modules/ntnx_clusters_v2.py | 1 + .../modules/ntnx_directory_services_info_v2.py | 1 + plugins/modules/ntnx_directory_services_v2.py | 1 + .../ntnx_discover_unconfigured_nodes_v2.py | 1 + plugins/modules/ntnx_floating_ips_info_v2.py | 4 +++- plugins/modules/ntnx_floating_ips_v2.py | 1 + plugins/modules/ntnx_gpus_info_v2.py | 1 + plugins/modules/ntnx_gpus_v2.py | 1 + plugins/modules/ntnx_hosts_info_v2.py | 1 + .../ntnx_image_placement_policies_info_v2.py | 1 + .../modules/ntnx_image_placement_policies_v2.py | 1 + plugins/modules/ntnx_images_info_v2.py | 1 + plugins/modules/ntnx_images_v2.py | 1 + plugins/modules/ntnx_nodes_network_info_v2.py | 1 + plugins/modules/ntnx_operations_info_v2.py | 1 + plugins/modules/ntnx_pbrs_info_v2.py | 1 + plugins/modules/ntnx_pbrs_v2.py | 4 +++- plugins/modules/ntnx_pc_registration_v2.py | 1 + .../modules/ntnx_recovery_point_replicate_v2.py | 1 + .../modules/ntnx_recovery_point_restore_v2.py | 4 +++- plugins/modules/ntnx_recovery_points_info_v2.py | 1 + plugins/modules/ntnx_recovery_points_v2.py | 16 +++++++++------- plugins/modules/ntnx_roles_info_v2.py | 4 +++- plugins/modules/ntnx_roles_v2.py | 1 + plugins/modules/ntnx_route_tables_info_v2.py | 4 +++- plugins/modules/ntnx_routes_info_v2.py | 4 +++- plugins/modules/ntnx_routes_v2.py | 4 +++- .../ntnx_saml_identity_providers_info_v2.py | 1 + .../modules/ntnx_saml_identity_providers_v2.py | 4 +++- plugins/modules/ntnx_security_rules_info_v2.py | 2 +- plugins/modules/ntnx_security_rules_v2.py | 1 + plugins/modules/ntnx_service_groups_info_v2.py | 1 + plugins/modules/ntnx_service_groups_v2.py | 1 + .../modules/ntnx_storage_containers_info_v2.py | 1 + .../modules/ntnx_storage_containers_stats_v2.py | 1 + plugins/modules/ntnx_storage_containers_v2.py | 1 + plugins/modules/ntnx_subnets_info_v2.py | 4 +++- plugins/modules/ntnx_subnets_v2.py | 4 +++- plugins/modules/ntnx_templates_deploy_v2.py | 7 ++++--- plugins/modules/ntnx_templates_guest_os_v2.py | 1 + plugins/modules/ntnx_templates_info_v2.py | 4 +++- plugins/modules/ntnx_templates_v2.py | 1 + plugins/modules/ntnx_templates_version_v2.py | 1 + .../modules/ntnx_templates_versions_info_v2.py | 1 + plugins/modules/ntnx_user_groups_info_v2.py | 1 + plugins/modules/ntnx_user_groups_v2.py | 4 +++- plugins/modules/ntnx_users_info_v2.py | 4 +++- plugins/modules/ntnx_users_v2.py | 1 + .../modules/ntnx_vm_recovery_point_info_v2.py | 1 + plugins/modules/ntnx_vm_revert_v2.py | 1 + plugins/modules/ntnx_vms_categories_v2.py | 1 + plugins/modules/ntnx_vms_cd_rom_info_v2.py | 1 + plugins/modules/ntnx_vms_cd_rom_iso_v2.py | 7 ++++--- plugins/modules/ntnx_vms_cd_rom_v2.py | 1 + plugins/modules/ntnx_vms_clone_v2.py | 1 + plugins/modules/ntnx_vms_disks_info_v2.py | 1 + plugins/modules/ntnx_vms_disks_v2.py | 1 + plugins/modules/ntnx_vms_info_v2.py | 1 + plugins/modules/ntnx_vms_ngt_info_v2.py | 1 + plugins/modules/ntnx_vms_ngt_insert_iso_v2.py | 1 + plugins/modules/ntnx_vms_ngt_update_v2.py | 1 + plugins/modules/ntnx_vms_ngt_upgrade_v2.py | 1 + plugins/modules/ntnx_vms_ngt_v2.py | 1 + plugins/modules/ntnx_vms_nics_info_v2.py | 1 + plugins/modules/ntnx_vms_nics_ip_v2.py | 1 + plugins/modules/ntnx_vms_nics_migrate_v2.py | 1 + plugins/modules/ntnx_vms_nics_v2.py | 1 + plugins/modules/ntnx_vms_power_actions_v2.py | 1 + plugins/modules/ntnx_vms_serial_port_info_v2.py | 1 + plugins/modules/ntnx_vms_serial_port_v2.py | 1 + .../ntnx_vms_stage_guest_customization_v2.py | 1 + plugins/modules/ntnx_vms_v2.py | 4 +++- .../ntnx_volume_groups_categories_info_v2.py | 1 + .../modules/ntnx_volume_groups_disks_info_v2.py | 1 + plugins/modules/ntnx_volume_groups_disks_v2.py | 1 + plugins/modules/ntnx_volume_groups_info_v2.py | 1 + .../ntnx_volume_groups_iscsi_clients_info_v2.py | 1 + .../ntnx_volume_groups_iscsi_clients_v2.py | 1 + plugins/modules/ntnx_volume_groups_v2.py | 1 + .../modules/ntnx_volume_groups_vms_info_v2.py | 1 + plugins/modules/ntnx_volume_groups_vms_v2.py | 1 + plugins/modules/ntnx_vpcs_info_v2.py | 1 + plugins/modules/ntnx_vpcs_v2.py | 4 +++- 91 files changed, 143 insertions(+), 35 deletions(-) diff --git a/plugins/modules/ntnx_address_groups_info_v2.py b/plugins/modules/ntnx_address_groups_info_v2.py index 8fda5560..72ba19ab 100644 --- a/plugins/modules/ntnx_address_groups_info_v2.py +++ b/plugins/modules/ntnx_address_groups_info_v2.py @@ -16,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: diff --git a/plugins/modules/ntnx_address_groups_v2.py b/plugins/modules/ntnx_address_groups_v2.py index 65d3bd93..d0353cc3 100644 --- a/plugins/modules/ntnx_address_groups_v2.py +++ b/plugins/modules/ntnx_address_groups_v2.py @@ -11,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: diff --git a/plugins/modules/ntnx_authorization_policies_info_v2.py b/plugins/modules/ntnx_authorization_policies_info_v2.py index a7fdbbb9..4aecaf00 100644 --- a/plugins/modules/ntnx_authorization_policies_info_v2.py +++ b/plugins/modules/ntnx_authorization_policies_info_v2.py @@ -18,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: diff --git a/plugins/modules/ntnx_authorization_policies_v2.py b/plugins/modules/ntnx_authorization_policies_v2.py index 6a9c5941..719ce6b0 100644 --- a/plugins/modules/ntnx_authorization_policies_v2.py +++ b/plugins/modules/ntnx_authorization_policies_v2.py @@ -14,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: @@ -425,9 +426,9 @@ def delete_authorization_policy(module, result): result["changed"] = True if resp is None: - result["msg"] = ( - "Authorization policy with ext_id: {} deleted successfully".format(ext_id) - ) + result[ + "msg" + ] = "Authorization policy with ext_id: {} deleted successfully".format(ext_id) else: result["response"] = strip_internal_attributes(resp.to_dict()) diff --git a/plugins/modules/ntnx_categories_info_v2.py b/plugins/modules/ntnx_categories_info_v2.py index 146309ec..6bf10c2b 100644 --- a/plugins/modules/ntnx_categories_info_v2.py +++ b/plugins/modules/ntnx_categories_info_v2.py @@ -13,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: diff --git a/plugins/modules/ntnx_categories_v2.py b/plugins/modules/ntnx_categories_v2.py index adcdfc0e..7f35cbc8 100644 --- a/plugins/modules/ntnx_categories_v2.py +++ b/plugins/modules/ntnx_categories_v2.py @@ -15,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: diff --git a/plugins/modules/ntnx_clusters_info_v2.py b/plugins/modules/ntnx_clusters_info_v2.py index 1c8475c4..8a35ca5a 100644 --- a/plugins/modules/ntnx_clusters_info_v2.py +++ b/plugins/modules/ntnx_clusters_info_v2.py @@ -17,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: diff --git a/plugins/modules/ntnx_clusters_nodes_v2.py b/plugins/modules/ntnx_clusters_nodes_v2.py index c886efc6..51df2add 100644 --- a/plugins/modules/ntnx_clusters_nodes_v2.py +++ b/plugins/modules/ntnx_clusters_nodes_v2.py @@ -13,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: diff --git a/plugins/modules/ntnx_clusters_v2.py b/plugins/modules/ntnx_clusters_v2.py index 187139e5..b8795212 100644 --- a/plugins/modules/ntnx_clusters_v2.py +++ b/plugins/modules/ntnx_clusters_v2.py @@ -14,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: diff --git a/plugins/modules/ntnx_directory_services_info_v2.py b/plugins/modules/ntnx_directory_services_info_v2.py index 1c1427ca..d9fe978a 100644 --- a/plugins/modules/ntnx_directory_services_info_v2.py +++ b/plugins/modules/ntnx_directory_services_info_v2.py @@ -16,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: diff --git a/plugins/modules/ntnx_directory_services_v2.py b/plugins/modules/ntnx_directory_services_v2.py index 757c93c0..8a954d8a 100644 --- a/plugins/modules/ntnx_directory_services_v2.py +++ b/plugins/modules/ntnx_directory_services_v2.py @@ -15,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: diff --git a/plugins/modules/ntnx_discover_unconfigured_nodes_v2.py b/plugins/modules/ntnx_discover_unconfigured_nodes_v2.py index 340f5b50..1e08cae1 100644 --- a/plugins/modules/ntnx_discover_unconfigured_nodes_v2.py +++ b/plugins/modules/ntnx_discover_unconfigured_nodes_v2.py @@ -13,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: diff --git a/plugins/modules/ntnx_floating_ips_info_v2.py b/plugins/modules/ntnx_floating_ips_info_v2.py index 7d474c63..6f53540b 100644 --- a/plugins/modules/ntnx_floating_ips_info_v2.py +++ b/plugins/modules/ntnx_floating_ips_info_v2.py @@ -13,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: diff --git a/plugins/modules/ntnx_floating_ips_v2.py b/plugins/modules/ntnx_floating_ips_v2.py index c781435f..f61dd6de 100644 --- a/plugins/modules/ntnx_floating_ips_v2.py +++ b/plugins/modules/ntnx_floating_ips_v2.py @@ -17,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: diff --git a/plugins/modules/ntnx_gpus_info_v2.py b/plugins/modules/ntnx_gpus_info_v2.py index 3d2b4871..878f1990 100644 --- a/plugins/modules/ntnx_gpus_info_v2.py +++ b/plugins/modules/ntnx_gpus_info_v2.py @@ -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: diff --git a/plugins/modules/ntnx_gpus_v2.py b/plugins/modules/ntnx_gpus_v2.py index c601fc9c..adfeef3a 100644 --- a/plugins/modules/ntnx_gpus_v2.py +++ b/plugins/modules/ntnx_gpus_v2.py @@ -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: diff --git a/plugins/modules/ntnx_hosts_info_v2.py b/plugins/modules/ntnx_hosts_info_v2.py index f49d15f3..3b6c5c8d 100644 --- a/plugins/modules/ntnx_hosts_info_v2.py +++ b/plugins/modules/ntnx_hosts_info_v2.py @@ -17,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: diff --git a/plugins/modules/ntnx_image_placement_policies_info_v2.py b/plugins/modules/ntnx_image_placement_policies_info_v2.py index 141f568d..8f5cbe40 100644 --- a/plugins/modules/ntnx_image_placement_policies_info_v2.py +++ b/plugins/modules/ntnx_image_placement_policies_info_v2.py @@ -16,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: diff --git a/plugins/modules/ntnx_image_placement_policies_v2.py b/plugins/modules/ntnx_image_placement_policies_v2.py index 4c7ae701..f2bda2cd 100644 --- a/plugins/modules/ntnx_image_placement_policies_v2.py +++ b/plugins/modules/ntnx_image_placement_policies_v2.py @@ -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) diff --git a/plugins/modules/ntnx_images_info_v2.py b/plugins/modules/ntnx_images_info_v2.py index 6aa6691a..7283e30f 100644 --- a/plugins/modules/ntnx_images_info_v2.py +++ b/plugins/modules/ntnx_images_info_v2.py @@ -14,6 +14,7 @@ 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: - Pradeepsingh Bhati (@bhati-pradeep) diff --git a/plugins/modules/ntnx_images_v2.py b/plugins/modules/ntnx_images_v2.py index 6585ce96..f6a3e8ea 100644 --- a/plugins/modules/ntnx_images_v2.py +++ b/plugins/modules/ntnx_images_v2.py @@ -14,6 +14,7 @@ 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: - Pradeepsingh Bhati (@bhati-pradeep) diff --git a/plugins/modules/ntnx_nodes_network_info_v2.py b/plugins/modules/ntnx_nodes_network_info_v2.py index 159dbe1b..a8bc90f3 100644 --- a/plugins/modules/ntnx_nodes_network_info_v2.py +++ b/plugins/modules/ntnx_nodes_network_info_v2.py @@ -13,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: diff --git a/plugins/modules/ntnx_operations_info_v2.py b/plugins/modules/ntnx_operations_info_v2.py index 17de463d..a25cf4a8 100644 --- a/plugins/modules/ntnx_operations_info_v2.py +++ b/plugins/modules/ntnx_operations_info_v2.py @@ -16,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: diff --git a/plugins/modules/ntnx_pbrs_info_v2.py b/plugins/modules/ntnx_pbrs_info_v2.py index e237df46..82fa5b64 100644 --- a/plugins/modules/ntnx_pbrs_info_v2.py +++ b/plugins/modules/ntnx_pbrs_info_v2.py @@ -17,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: diff --git a/plugins/modules/ntnx_pbrs_v2.py b/plugins/modules/ntnx_pbrs_v2.py index bcd473e9..5f7d4e97 100644 --- a/plugins/modules/ntnx_pbrs_v2.py +++ b/plugins/modules/ntnx_pbrs_v2.py @@ -13,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: diff --git a/plugins/modules/ntnx_pc_registration_v2.py b/plugins/modules/ntnx_pc_registration_v2.py index 891f2bc6..27760c7e 100644 --- a/plugins/modules/ntnx_pc_registration_v2.py +++ b/plugins/modules/ntnx_pc_registration_v2.py @@ -16,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. diff --git a/plugins/modules/ntnx_recovery_point_replicate_v2.py b/plugins/modules/ntnx_recovery_point_replicate_v2.py index 8d1ff38f..a9608b73 100644 --- a/plugins/modules/ntnx_recovery_point_replicate_v2.py +++ b/plugins/modules/ntnx_recovery_point_replicate_v2.py @@ -15,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: diff --git a/plugins/modules/ntnx_recovery_point_restore_v2.py b/plugins/modules/ntnx_recovery_point_restore_v2.py index 51289b42..07075ecf 100644 --- a/plugins/modules/ntnx_recovery_point_restore_v2.py +++ b/plugins/modules/ntnx_recovery_point_restore_v2.py @@ -13,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: diff --git a/plugins/modules/ntnx_recovery_points_info_v2.py b/plugins/modules/ntnx_recovery_points_info_v2.py index 4ebc6b7d..4ceddfd4 100644 --- a/plugins/modules/ntnx_recovery_points_info_v2.py +++ b/plugins/modules/ntnx_recovery_points_info_v2.py @@ -16,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: diff --git a/plugins/modules/ntnx_recovery_points_v2.py b/plugins/modules/ntnx_recovery_points_v2.py index e573ec6a..4f30c436 100644 --- a/plugins/modules/ntnx_recovery_points_v2.py +++ b/plugins/modules/ntnx_recovery_points_v2.py @@ -13,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: @@ -389,9 +391,9 @@ def update_expiry_date_recovery_point(module, result): new_expiration_time = module.params.get("expiration_time") if new_expiration_time is None: - result["error"] = ( - "Expiration time is required for updating recovery point and other fields can't be updated." - ) + result[ + "error" + ] = "Expiration time is required for updating recovery point and other fields can't be updated." module.fail_json(msg="Expiration time is required", **result) if int(old_expiration_time.timestamp()) == int( @@ -413,9 +415,9 @@ def update_expiry_date_recovery_point(module, result): elif not check_recovery_point_idempotency_without_expiration( old_spec.to_dict(), update_spec.to_dict() ): - result["warning"] = ( - "Only Expiration time Updation is allowed. Can't update other fields." - ) + result[ + "warning" + ] = "Only Expiration time Updation is allowed. Can't update other fields." expirationTimeSpec = data_protection_sdk.ExpirationTimeSpec() expirationTimeSpec.expiration_time = new_expiration_time diff --git a/plugins/modules/ntnx_roles_info_v2.py b/plugins/modules/ntnx_roles_info_v2.py index eca3121c..66d81d46 100644 --- a/plugins/modules/ntnx_roles_info_v2.py +++ b/plugins/modules/ntnx_roles_info_v2.py @@ -13,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: diff --git a/plugins/modules/ntnx_roles_v2.py b/plugins/modules/ntnx_roles_v2.py index c521aa82..250555c9 100644 --- a/plugins/modules/ntnx_roles_v2.py +++ b/plugins/modules/ntnx_roles_v2.py @@ -13,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: diff --git a/plugins/modules/ntnx_route_tables_info_v2.py b/plugins/modules/ntnx_route_tables_info_v2.py index cb7a1652..3c3e39b7 100644 --- a/plugins/modules/ntnx_route_tables_info_v2.py +++ b/plugins/modules/ntnx_route_tables_info_v2.py @@ -13,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: diff --git a/plugins/modules/ntnx_routes_info_v2.py b/plugins/modules/ntnx_routes_info_v2.py index 60daef5f..21c43c03 100644 --- a/plugins/modules/ntnx_routes_info_v2.py +++ b/plugins/modules/ntnx_routes_info_v2.py @@ -13,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: diff --git a/plugins/modules/ntnx_routes_v2.py b/plugins/modules/ntnx_routes_v2.py index 0dc6c77f..e93445fb 100644 --- a/plugins/modules/ntnx_routes_v2.py +++ b/plugins/modules/ntnx_routes_v2.py @@ -14,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: diff --git a/plugins/modules/ntnx_saml_identity_providers_info_v2.py b/plugins/modules/ntnx_saml_identity_providers_info_v2.py index cdb86f19..5b683c0d 100644 --- a/plugins/modules/ntnx_saml_identity_providers_info_v2.py +++ b/plugins/modules/ntnx_saml_identity_providers_info_v2.py @@ -17,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: diff --git a/plugins/modules/ntnx_saml_identity_providers_v2.py b/plugins/modules/ntnx_saml_identity_providers_v2.py index 61229397..aafaee32 100644 --- a/plugins/modules/ntnx_saml_identity_providers_v2.py +++ b/plugins/modules/ntnx_saml_identity_providers_v2.py @@ -12,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: diff --git a/plugins/modules/ntnx_security_rules_info_v2.py b/plugins/modules/ntnx_security_rules_info_v2.py index 4aa353eb..e4434de3 100644 --- a/plugins/modules/ntnx_security_rules_info_v2.py +++ b/plugins/modules/ntnx_security_rules_info_v2.py @@ -16,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: diff --git a/plugins/modules/ntnx_security_rules_v2.py b/plugins/modules/ntnx_security_rules_v2.py index e94cb0c0..09bc98ce 100644 --- a/plugins/modules/ntnx_security_rules_v2.py +++ b/plugins/modules/ntnx_security_rules_v2.py @@ -15,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: diff --git a/plugins/modules/ntnx_service_groups_info_v2.py b/plugins/modules/ntnx_service_groups_info_v2.py index d8acc789..135148eb 100644 --- a/plugins/modules/ntnx_service_groups_info_v2.py +++ b/plugins/modules/ntnx_service_groups_info_v2.py @@ -16,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: diff --git a/plugins/modules/ntnx_service_groups_v2.py b/plugins/modules/ntnx_service_groups_v2.py index 6c347c5b..32dd7829 100644 --- a/plugins/modules/ntnx_service_groups_v2.py +++ b/plugins/modules/ntnx_service_groups_v2.py @@ -20,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'] diff --git a/plugins/modules/ntnx_storage_containers_info_v2.py b/plugins/modules/ntnx_storage_containers_info_v2.py index f1394467..67effe50 100644 --- a/plugins/modules/ntnx_storage_containers_info_v2.py +++ b/plugins/modules/ntnx_storage_containers_info_v2.py @@ -17,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: diff --git a/plugins/modules/ntnx_storage_containers_stats_v2.py b/plugins/modules/ntnx_storage_containers_stats_v2.py index ef9970b4..054fd721 100644 --- a/plugins/modules/ntnx_storage_containers_stats_v2.py +++ b/plugins/modules/ntnx_storage_containers_stats_v2.py @@ -15,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: diff --git a/plugins/modules/ntnx_storage_containers_v2.py b/plugins/modules/ntnx_storage_containers_v2.py index 81a39b1e..04e85f21 100644 --- a/plugins/modules/ntnx_storage_containers_v2.py +++ b/plugins/modules/ntnx_storage_containers_v2.py @@ -14,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: diff --git a/plugins/modules/ntnx_subnets_info_v2.py b/plugins/modules/ntnx_subnets_info_v2.py index a98a5876..80e77ef9 100644 --- a/plugins/modules/ntnx_subnets_info_v2.py +++ b/plugins/modules/ntnx_subnets_info_v2.py @@ -13,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: diff --git a/plugins/modules/ntnx_subnets_v2.py b/plugins/modules/ntnx_subnets_v2.py index d2921415..9ab6903c 100644 --- a/plugins/modules/ntnx_subnets_v2.py +++ b/plugins/modules/ntnx_subnets_v2.py @@ -13,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. diff --git a/plugins/modules/ntnx_templates_deploy_v2.py b/plugins/modules/ntnx_templates_deploy_v2.py index c987e6c9..a0285562 100644 --- a/plugins/modules/ntnx_templates_deploy_v2.py +++ b/plugins/modules/ntnx_templates_deploy_v2.py @@ -13,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: @@ -470,9 +471,9 @@ def deploy_template(module, result): if module.check_mode: result["response"] = strip_internal_attributes(spec.to_dict()) version_ext_id = module.params.get("version_id") - result["msg"] = ( - f"Template ({ext_id}) with given version ({version_ext_id}) will be deployed." - ) + result[ + "msg" + ] = f"Template ({ext_id}) with given version ({version_ext_id}) will be deployed." return etag = get_etag(data=current_spec) diff --git a/plugins/modules/ntnx_templates_guest_os_v2.py b/plugins/modules/ntnx_templates_guest_os_v2.py index eda21ba7..3fbd8db2 100644 --- a/plugins/modules/ntnx_templates_guest_os_v2.py +++ b/plugins/modules/ntnx_templates_guest_os_v2.py @@ -13,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: diff --git a/plugins/modules/ntnx_templates_info_v2.py b/plugins/modules/ntnx_templates_info_v2.py index 7fa8df89..0f9c9ffb 100644 --- a/plugins/modules/ntnx_templates_info_v2.py +++ b/plugins/modules/ntnx_templates_info_v2.py @@ -13,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: diff --git a/plugins/modules/ntnx_templates_v2.py b/plugins/modules/ntnx_templates_v2.py index ea6ac558..4e155d09 100644 --- a/plugins/modules/ntnx_templates_v2.py +++ b/plugins/modules/ntnx_templates_v2.py @@ -13,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: diff --git a/plugins/modules/ntnx_templates_version_v2.py b/plugins/modules/ntnx_templates_version_v2.py index fe40e56e..c45fa6a4 100644 --- a/plugins/modules/ntnx_templates_version_v2.py +++ b/plugins/modules/ntnx_templates_version_v2.py @@ -13,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: diff --git a/plugins/modules/ntnx_templates_versions_info_v2.py b/plugins/modules/ntnx_templates_versions_info_v2.py index c7bc3801..70b3cd44 100644 --- a/plugins/modules/ntnx_templates_versions_info_v2.py +++ b/plugins/modules/ntnx_templates_versions_info_v2.py @@ -15,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: diff --git a/plugins/modules/ntnx_user_groups_info_v2.py b/plugins/modules/ntnx_user_groups_info_v2.py index 737ed176..fc8b27d3 100644 --- a/plugins/modules/ntnx_user_groups_info_v2.py +++ b/plugins/modules/ntnx_user_groups_info_v2.py @@ -16,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: diff --git a/plugins/modules/ntnx_user_groups_v2.py b/plugins/modules/ntnx_user_groups_v2.py index 931a71c6..249cdc64 100644 --- a/plugins/modules/ntnx_user_groups_v2.py +++ b/plugins/modules/ntnx_user_groups_v2.py @@ -12,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: diff --git a/plugins/modules/ntnx_users_info_v2.py b/plugins/modules/ntnx_users_info_v2.py index ad60e0db..1cfa8ba8 100644 --- a/plugins/modules/ntnx_users_info_v2.py +++ b/plugins/modules/ntnx_users_info_v2.py @@ -13,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: diff --git a/plugins/modules/ntnx_users_v2.py b/plugins/modules/ntnx_users_v2.py index eeb3bb41..9b9c850f 100644 --- a/plugins/modules/ntnx_users_v2.py +++ b/plugins/modules/ntnx_users_v2.py @@ -14,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: diff --git a/plugins/modules/ntnx_vm_recovery_point_info_v2.py b/plugins/modules/ntnx_vm_recovery_point_info_v2.py index e5cbb20a..85990369 100644 --- a/plugins/modules/ntnx_vm_recovery_point_info_v2.py +++ b/plugins/modules/ntnx_vm_recovery_point_info_v2.py @@ -15,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: diff --git a/plugins/modules/ntnx_vm_revert_v2.py b/plugins/modules/ntnx_vm_revert_v2.py index a9d09b08..b88bf10f 100644 --- a/plugins/modules/ntnx_vm_revert_v2.py +++ b/plugins/modules/ntnx_vm_revert_v2.py @@ -15,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: diff --git a/plugins/modules/ntnx_vms_categories_v2.py b/plugins/modules/ntnx_vms_categories_v2.py index 73815765..daf4f150 100644 --- a/plugins/modules/ntnx_vms_categories_v2.py +++ b/plugins/modules/ntnx_vms_categories_v2.py @@ -13,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: diff --git a/plugins/modules/ntnx_vms_cd_rom_info_v2.py b/plugins/modules/ntnx_vms_cd_rom_info_v2.py index 4dda1ea6..becc59a7 100644 --- a/plugins/modules/ntnx_vms_cd_rom_info_v2.py +++ b/plugins/modules/ntnx_vms_cd_rom_info_v2.py @@ -14,6 +14,7 @@ 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: - Pradeepsingh Bhati (@bhati-pradeep) diff --git a/plugins/modules/ntnx_vms_cd_rom_iso_v2.py b/plugins/modules/ntnx_vms_cd_rom_iso_v2.py index fb3c5bad..f054d898 100644 --- a/plugins/modules/ntnx_vms_cd_rom_iso_v2.py +++ b/plugins/modules/ntnx_vms_cd_rom_iso_v2.py @@ -15,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: @@ -342,9 +343,9 @@ def eject_iso(module, vms, result): result["ext_id"] = ext_id if module.check_mode: - result["response"] = ( - "ISO will be ejected from CD ROM with external ID: {0}".format(ext_id) - ) + result[ + "response" + ] = "ISO will be ejected from CD ROM with external ID: {0}".format(ext_id) return diff --git a/plugins/modules/ntnx_vms_cd_rom_v2.py b/plugins/modules/ntnx_vms_cd_rom_v2.py index cace4dea..927b8ba9 100644 --- a/plugins/modules/ntnx_vms_cd_rom_v2.py +++ b/plugins/modules/ntnx_vms_cd_rom_v2.py @@ -15,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: diff --git a/plugins/modules/ntnx_vms_clone_v2.py b/plugins/modules/ntnx_vms_clone_v2.py index 5d30a6f8..f6cecd7f 100644 --- a/plugins/modules/ntnx_vms_clone_v2.py +++ b/plugins/modules/ntnx_vms_clone_v2.py @@ -14,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: diff --git a/plugins/modules/ntnx_vms_disks_info_v2.py b/plugins/modules/ntnx_vms_disks_info_v2.py index 5b4d714c..a7ce0479 100644 --- a/plugins/modules/ntnx_vms_disks_info_v2.py +++ b/plugins/modules/ntnx_vms_disks_info_v2.py @@ -14,6 +14,7 @@ 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: - Pradeepsingh Bhati (@bhati-pradeep) diff --git a/plugins/modules/ntnx_vms_disks_v2.py b/plugins/modules/ntnx_vms_disks_v2.py index 8eb40c6f..557d531e 100644 --- a/plugins/modules/ntnx_vms_disks_v2.py +++ b/plugins/modules/ntnx_vms_disks_v2.py @@ -15,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: diff --git a/plugins/modules/ntnx_vms_info_v2.py b/plugins/modules/ntnx_vms_info_v2.py index 16198171..9365aeb5 100644 --- a/plugins/modules/ntnx_vms_info_v2.py +++ b/plugins/modules/ntnx_vms_info_v2.py @@ -14,6 +14,7 @@ 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: - Pradeepsingh Bhati (@bhati-pradeep) diff --git a/plugins/modules/ntnx_vms_ngt_info_v2.py b/plugins/modules/ntnx_vms_ngt_info_v2.py index 0154daf7..84169d6f 100644 --- a/plugins/modules/ntnx_vms_ngt_info_v2.py +++ b/plugins/modules/ntnx_vms_ngt_info_v2.py @@ -13,6 +13,7 @@ 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: - Pradeepsingh Bhati (@bhati-pradeep) diff --git a/plugins/modules/ntnx_vms_ngt_insert_iso_v2.py b/plugins/modules/ntnx_vms_ngt_insert_iso_v2.py index cc80364d..e92e4410 100644 --- a/plugins/modules/ntnx_vms_ngt_insert_iso_v2.py +++ b/plugins/modules/ntnx_vms_ngt_insert_iso_v2.py @@ -13,6 +13,7 @@ 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: - Pradeepsingh Bhati (@bhati-pradeep) diff --git a/plugins/modules/ntnx_vms_ngt_update_v2.py b/plugins/modules/ntnx_vms_ngt_update_v2.py index 9f500574..364e8a13 100644 --- a/plugins/modules/ntnx_vms_ngt_update_v2.py +++ b/plugins/modules/ntnx_vms_ngt_update_v2.py @@ -14,6 +14,7 @@ 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: - Pradeepsingh Bhati (@bhati-pradeep) options: diff --git a/plugins/modules/ntnx_vms_ngt_upgrade_v2.py b/plugins/modules/ntnx_vms_ngt_upgrade_v2.py index 6b74a4fa..c766c238 100644 --- a/plugins/modules/ntnx_vms_ngt_upgrade_v2.py +++ b/plugins/modules/ntnx_vms_ngt_upgrade_v2.py @@ -14,6 +14,7 @@ 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: - Pradeepsingh Bhati (@bhati-pradeep) options: diff --git a/plugins/modules/ntnx_vms_ngt_v2.py b/plugins/modules/ntnx_vms_ngt_v2.py index 460578b6..c1eafb31 100644 --- a/plugins/modules/ntnx_vms_ngt_v2.py +++ b/plugins/modules/ntnx_vms_ngt_v2.py @@ -14,6 +14,7 @@ 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: - Pradeepsingh Bhati (@bhati-pradeep) diff --git a/plugins/modules/ntnx_vms_nics_info_v2.py b/plugins/modules/ntnx_vms_nics_info_v2.py index 20bcd53c..53fe9ead 100644 --- a/plugins/modules/ntnx_vms_nics_info_v2.py +++ b/plugins/modules/ntnx_vms_nics_info_v2.py @@ -14,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: diff --git a/plugins/modules/ntnx_vms_nics_ip_v2.py b/plugins/modules/ntnx_vms_nics_ip_v2.py index 8cfb702c..a8b8d09f 100644 --- a/plugins/modules/ntnx_vms_nics_ip_v2.py +++ b/plugins/modules/ntnx_vms_nics_ip_v2.py @@ -13,6 +13,7 @@ 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: - Pradeepsingh Bhati (@bhati-pradeep) diff --git a/plugins/modules/ntnx_vms_nics_migrate_v2.py b/plugins/modules/ntnx_vms_nics_migrate_v2.py index 33679ae6..fd42448d 100644 --- a/plugins/modules/ntnx_vms_nics_migrate_v2.py +++ b/plugins/modules/ntnx_vms_nics_migrate_v2.py @@ -13,6 +13,7 @@ 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: - Pradeepsingh Bhati (@bhati-pradeep) options: diff --git a/plugins/modules/ntnx_vms_nics_v2.py b/plugins/modules/ntnx_vms_nics_v2.py index 90e6a4ba..568743c0 100644 --- a/plugins/modules/ntnx_vms_nics_v2.py +++ b/plugins/modules/ntnx_vms_nics_v2.py @@ -13,6 +13,7 @@ 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: - Pradeepsingh Bhati (@bhati-pradeep) diff --git a/plugins/modules/ntnx_vms_power_actions_v2.py b/plugins/modules/ntnx_vms_power_actions_v2.py index 2c08cf20..65de9127 100644 --- a/plugins/modules/ntnx_vms_power_actions_v2.py +++ b/plugins/modules/ntnx_vms_power_actions_v2.py @@ -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: diff --git a/plugins/modules/ntnx_vms_serial_port_info_v2.py b/plugins/modules/ntnx_vms_serial_port_info_v2.py index 6c07d784..ab0a9705 100644 --- a/plugins/modules/ntnx_vms_serial_port_info_v2.py +++ b/plugins/modules/ntnx_vms_serial_port_info_v2.py @@ -14,6 +14,7 @@ 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: - Pradeepsingh Bhati (@bhati-pradeep) diff --git a/plugins/modules/ntnx_vms_serial_port_v2.py b/plugins/modules/ntnx_vms_serial_port_v2.py index 6045d70e..2a610c85 100644 --- a/plugins/modules/ntnx_vms_serial_port_v2.py +++ b/plugins/modules/ntnx_vms_serial_port_v2.py @@ -13,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: diff --git a/plugins/modules/ntnx_vms_stage_guest_customization_v2.py b/plugins/modules/ntnx_vms_stage_guest_customization_v2.py index 4f309743..a431bb4c 100644 --- a/plugins/modules/ntnx_vms_stage_guest_customization_v2.py +++ b/plugins/modules/ntnx_vms_stage_guest_customization_v2.py @@ -15,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: diff --git a/plugins/modules/ntnx_vms_v2.py b/plugins/modules/ntnx_vms_v2.py index f8cf832f..70dbb4a7 100644 --- a/plugins/modules/ntnx_vms_v2.py +++ b/plugins/modules/ntnx_vms_v2.py @@ -12,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. diff --git a/plugins/modules/ntnx_volume_groups_categories_info_v2.py b/plugins/modules/ntnx_volume_groups_categories_info_v2.py index 2d26cc3b..e7c906a1 100644 --- a/plugins/modules/ntnx_volume_groups_categories_info_v2.py +++ b/plugins/modules/ntnx_volume_groups_categories_info_v2.py @@ -15,6 +15,7 @@ short_description: Fetch list of attached categories to VG description: - Fetch list of attached categories to VG + - This module uses PC v4 APIs based SDKs version_added: "2.0.0" author: - Pradeepsingh Bhati (@bhati-pradeep) diff --git a/plugins/modules/ntnx_volume_groups_disks_info_v2.py b/plugins/modules/ntnx_volume_groups_disks_info_v2.py index 52779329..d69cf2c0 100644 --- a/plugins/modules/ntnx_volume_groups_disks_info_v2.py +++ b/plugins/modules/ntnx_volume_groups_disks_info_v2.py @@ -14,6 +14,7 @@ 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: - Pradeepsingh Bhati (@bhati-pradeep) diff --git a/plugins/modules/ntnx_volume_groups_disks_v2.py b/plugins/modules/ntnx_volume_groups_disks_v2.py index 9ca32e10..532ee787 100644 --- a/plugins/modules/ntnx_volume_groups_disks_v2.py +++ b/plugins/modules/ntnx_volume_groups_disks_v2.py @@ -14,6 +14,7 @@ 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: - Pradeepsingh Bhati (@bhati-pradeep) diff --git a/plugins/modules/ntnx_volume_groups_info_v2.py b/plugins/modules/ntnx_volume_groups_info_v2.py index a0d00943..eea3aaa0 100644 --- a/plugins/modules/ntnx_volume_groups_info_v2.py +++ b/plugins/modules/ntnx_volume_groups_info_v2.py @@ -14,6 +14,7 @@ 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: - Pradeepsingh Bhati (@bhati-pradeep) 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 5323614c..2f721d92 100644 --- a/plugins/modules/ntnx_volume_groups_iscsi_clients_info_v2.py +++ b/plugins/modules/ntnx_volume_groups_iscsi_clients_info_v2.py @@ -16,6 +16,7 @@ - By default, Fetch all iscsi clients currently attached to any VG - Fetch iscsi client if C(ext_id) is given - Fetch all iscsi clients attached to a particular VG if C(volume_group_ext_id) is given + - This module uses PC v4 APIs based SDKs version_added: "2.0.0" author: - Pradeepsingh Bhati (@bhati-pradeep) diff --git a/plugins/modules/ntnx_volume_groups_iscsi_clients_v2.py b/plugins/modules/ntnx_volume_groups_iscsi_clients_v2.py index fea64fe9..b697e742 100644 --- a/plugins/modules/ntnx_volume_groups_iscsi_clients_v2.py +++ b/plugins/modules/ntnx_volume_groups_iscsi_clients_v2.py @@ -14,6 +14,7 @@ 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: - Pradeepsingh Bhati (@bhati-pradeep) diff --git a/plugins/modules/ntnx_volume_groups_v2.py b/plugins/modules/ntnx_volume_groups_v2.py index e02f74c0..dca8ae4a 100644 --- a/plugins/modules/ntnx_volume_groups_v2.py +++ b/plugins/modules/ntnx_volume_groups_v2.py @@ -14,6 +14,7 @@ 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: - Pradeepsingh Bhati (@bhati-pradeep) diff --git a/plugins/modules/ntnx_volume_groups_vms_info_v2.py b/plugins/modules/ntnx_volume_groups_vms_info_v2.py index 11b54657..623ba7be 100644 --- a/plugins/modules/ntnx_volume_groups_vms_info_v2.py +++ b/plugins/modules/ntnx_volume_groups_vms_info_v2.py @@ -14,6 +14,7 @@ short_description: Fetch VG attached VMs info description: - Fetch all VMs info attached to VM + - This module uses PC v4 APIs based SDKs version_added: "2.0.0" author: - Pradeepsingh Bhati (@bhati-pradeep) diff --git a/plugins/modules/ntnx_volume_groups_vms_v2.py b/plugins/modules/ntnx_volume_groups_vms_v2.py index ef66fcb1..c744b044 100644 --- a/plugins/modules/ntnx_volume_groups_vms_v2.py +++ b/plugins/modules/ntnx_volume_groups_vms_v2.py @@ -14,6 +14,7 @@ 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: - Pradeepsingh Bhati (@bhati-pradeep) diff --git a/plugins/modules/ntnx_vpcs_info_v2.py b/plugins/modules/ntnx_vpcs_info_v2.py index 28e23efb..c16f1da1 100644 --- a/plugins/modules/ntnx_vpcs_info_v2.py +++ b/plugins/modules/ntnx_vpcs_info_v2.py @@ -16,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: diff --git a/plugins/modules/ntnx_vpcs_v2.py b/plugins/modules/ntnx_vpcs_v2.py index 03568585..2612efaa 100644 --- a/plugins/modules/ntnx_vpcs_v2.py +++ b/plugins/modules/ntnx_vpcs_v2.py @@ -13,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: