Skip to content

Commit d6e75e7

Browse files
v2.0.0 release branch for v4 based module support (#522)
1 parent ddf9675 commit d6e75e7

File tree

901 files changed

+74602
-12742
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

901 files changed

+74602
-12742
lines changed

.github/workflows/ansible-lint.yml

+24
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,24 @@
1+
---
2+
name: ansible-lint
3+
# on:
4+
# push:
5+
# branches:
6+
# - main
7+
# pull_request:
8+
# branches:
9+
# - main
10+
on:
11+
- pull_request
12+
13+
jobs:
14+
build:
15+
name: Ansible Lint
16+
runs-on: ubuntu-latest
17+
steps:
18+
- uses: actions/checkout@v4
19+
- name: Set up Python 3.x (latest)
20+
uses: actions/setup-python@v2
21+
with:
22+
python-version: 3.9
23+
- name: Run ansible-lint
24+
uses: ansible/ansible-lint@main

.github/workflows/black.yml

+8-6
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,14 @@
11
---
22
name: Black
3+
# on:
4+
# push:
5+
# branches:
6+
# - main
7+
# pull_request:
8+
# branches:
9+
# - main
310
on:
4-
push:
5-
branches:
6-
- main
7-
pull_request:
8-
branches:
9-
- main
11+
- pull_request
1012

1113
jobs:
1214
black:

.github/workflows/flake8.yml

+8-6
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,14 @@
11
---
22
name: Flake8
3+
# on:
4+
# push:
5+
# branches:
6+
# - main
7+
# pull_request:
8+
# branches:
9+
# - main
310
on:
4-
push:
5-
branches:
6-
- main
7-
pull_request:
8-
branches:
9-
- main
11+
- pull_request
1012

1113
jobs:
1214
flake8:

.github/workflows/isort.yml

+8-6
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,14 @@
11
---
22
name: Isort
3+
# on:
4+
# push:
5+
# branches:
6+
# - main
7+
# pull_request:
8+
# branches:
9+
# - main
310
on:
4-
push:
5-
branches:
6-
- main
7-
pull_request:
8-
branches:
9-
- main
11+
- pull_request
1012

1113
jobs:
1214
isort:

.github/workflows/unit_testing.yml

+9-7
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,15 @@
11
---
22
name: Run compile and tests
33

4+
# on:
5+
# push:
6+
# branches:
7+
# - main
8+
# pull_request:
9+
# branches:
10+
# - main
411
on:
5-
push:
6-
branches:
7-
- main
8-
pull_request:
9-
branches:
10-
- main
12+
- pull_request
1113
jobs:
1214
sanity1:
1315
name: Sanity tests with ansible-core==2.15.0
@@ -73,7 +75,7 @@ jobs:
7375
run: |
7476
cd /home/${USER}/.ansible/collections/ansible_collections/${{ env.NAMESPACE }}/${{ env.COLLECTION_NAME }}
7577
echo "Code coverage: Checking if code coverage is above threshold..."
76-
export TESTCOV_THRESHOLD=55
78+
export TESTCOV_THRESHOLD=50
7779
echo "Threshold: $TESTCOV_THRESHOLD %"
7880
totalCoverage=`grep TOTAL coverage.txt | awk '{print $6}' | sed 's/%//'`
7981
echo "TOTAL_COVERAGE=${totalCoverage}" >> $GITHUB_ENV

CHANGELOG.md

+117
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,120 @@
1+
## v2.0.0 (7 Jan 2025)
2+
3+
Releasing new modules using PC GA v4 sdks
4+
5+
**New modules:**
6+
7+
Networks:
8+
- ntnx_floating_ips_info_v2
9+
- ntnx_floating_ips_v2
10+
- ntnx_pbrs_v2
11+
- ntnx_pbrs_info_v2
12+
- ntnx_subnets_v2
13+
- ntnx_subnets_info_v2
14+
- ntnx_vpcs_info_v2
15+
- ntnx_vpcs_v2
16+
- ntnx_routes_v2
17+
- ntnx_routes_info_v2
18+
- ntnx_route_tables_info_v2
19+
20+
IAM:
21+
- ntnx_permissions_info_v2
22+
- ntnx_roles_info_v2
23+
- ntnx_roles_v2
24+
- ntnx_roles_v2
25+
- ntnx_roles_info_v2
26+
- ntnx_directory_services_v2
27+
- ntnx_directory_services_info_v2
28+
- ntnx_saml_identity_providers_v2
29+
- ntnx_saml_identity_providers_info_v2
30+
- ntnx_user_groups_v2
31+
- ntnx_user_groups_info_v2
32+
- ntnx_users_v2
33+
- ntnx_users_info_v2
34+
- ntnx_operations_info_v2
35+
- ntnx_authorization_policies_v2
36+
- ntnx_authorization_policies_info_v2
37+
38+
VMM:
39+
- ntnx_images_v2
40+
- ntnx_images_info_v2
41+
- ntnx_image_placement_policies_v2
42+
- ntnx_image_placement_policies_info_v2
43+
- ntnx_vms_ngt_v2
44+
- ntnx_vms_ngt_update_v2
45+
- ntnx_vms_ngt_upgrade_v2
46+
- ntnx_vms_ngt_insert_iso_v2
47+
- ntnx_vms_ngt_info_v2
48+
- ntnx_vms_disks_v2
49+
- ntnx_vms_disks_info_v2
50+
- ntnx_vms_v2
51+
- ntnx_vms_info_v2
52+
- ntnx_vms_categories_v2
53+
- ntnx_vms_nics_v2
54+
- ntnx_vms_nics_info_v2
55+
- ntnx_vms_nics_ip_v2
56+
- ntnx_vms_nics_migrate_v2
57+
- ntnx_vms_cd_rom_v2
58+
- ntnx_vms_cd_rom_info_v2
59+
- ntnx_vms_cd_rom_iso_v2
60+
- ntnx_vms_stage_guest_customization_v2
61+
- ntnx_vms_serial_port_v2
62+
- ntnx_vms_serial_port_info_v2
63+
- ntnx_templates_deploy_v2
64+
- ntnx_templates_guest_os_v2
65+
- ntnx_templates_v2
66+
- ntnx_templates_info_v2
67+
- ntnx_templates_version_v2
68+
- ntnx_templates_versions_info_v2
69+
- ntnx_vms_clone_v2
70+
- ntnx_vms_power_actions_v2
71+
- ntnx_gpus_v2
72+
- ntnx_gpus_info_v2
73+
74+
Prism:
75+
- ntnx_categories_v2
76+
- ntnx_categories_info_v2
77+
78+
Volumes:
79+
- ntnx_volume_groups_v2
80+
- ntnx_volume_groups_info_v2
81+
- ntnx_volume_groups_disks_v2
82+
- ntnx_volume_groups_disks_info_v2
83+
- ntnx_volume_groups_vms_v2
84+
- ntnx_volume_groups_iscsi_clients_v2
85+
- ntnx_volume_groups_iscsi_clients_info_v2
86+
87+
Flow:
88+
- ntnx_security_rules_v2
89+
- ntnx_security_rules_info_v2
90+
- ntnx_service_groups_v2
91+
- ntnx_service_groups_info_v2
92+
- ntnx_address_groups_v2
93+
- ntnx_address_groups_info_v2
94+
95+
Clusters:
96+
- ntnx_clusters_v2
97+
- ntnx_clusters_info_v2
98+
- ntnx_hosts_info_v2
99+
- ntnx_clusters_nodes_v2
100+
- ntnx_nodes_network_info_v2
101+
- ntnx_pc_registration_v2
102+
- ntnx_discover_unconfigured_nodes_v2
103+
- ntnx_storage_containers_stats_v2
104+
- ntnx_storage_containers_info_v2
105+
- ntnx_storage_containers_v2
106+
107+
Data Protection:
108+
- ntnx_recovery_points_info_v2
109+
- ntnx_vm_recovery_point_info_v2
110+
- ntnx_recovery_points_v2
111+
- ntnx_recovery_point_restore_v2
112+
- ntnx_vm_revert_v2
113+
- ntnx_recovery_point_replicate_v2
114+
115+
**Full Changelog:** [here](https://github.com/nutanix/nutanix.ansible/compare/v1.9.2...v2.0.0)
116+
117+
1118
## v1.9.2 (30 May 2024)
2119

3120

CHANGELOG.rst

+107-10
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,103 @@ Nutanix.Ncp Release Notes
44

55
.. contents:: Topics
66

7+
v2.0.0
8+
======
9+
10+
Release Summary
11+
---------------
12+
13+
Releasing new modules using PC GA v4 sdks
14+
15+
New Modules
16+
-----------
17+
18+
- ntnx_address_groups_info_v2 - Get address groups info
19+
- ntnx_address_groups_v2 - Create, Update, Delete address groups
20+
- ntnx_authorization_policies_info_v2 - Fetch Authorization policies info from Nutanix PC.
21+
- ntnx_authorization_policies_v2 - Manage Nutanix PC IAM authorization policies
22+
- ntnx_categories_info_v2 - Nutanix PC categories info module
23+
- ntnx_categories_v2 - Manage categories in Nutanix Prism Central
24+
- ntnx_clusters_info_v2 - Retrieve information about Nutanix clusters from PC
25+
- ntnx_clusters_nodes_v2 - Add or Remove nodes from cluster using Nutanix PC
26+
- ntnx_clusters_v2 - Manage Nutanix clusters in Prism Central
27+
- ntnx_directory_services_info_v2 - Fetch directory services info
28+
- ntnx_directory_services_v2 - Module to create, update and delete directory services in Nutanix PC.
29+
- ntnx_discover_unconfigured_nodes_v2 - Discover unconfigured nodes from Nutanix Prism Central
30+
- ntnx_floating_ips_info_v2 - floating_ip info module
31+
- ntnx_floating_ips_v2 - floating_ips module which supports floating_ip CRUD operations
32+
- ntnx_hosts_info_v2 - Retrieve information about Nutanix hosts from PC.
33+
- ntnx_image_placement_policies_info_v2 - Fetches information about Nutanix PC image placement policies.
34+
- ntnx_image_placement_policies_v2 - Manage image placement policies in Nutanix Prism Central
35+
- ntnx_images_info_v2 - Fetch information about Nutanix images
36+
- ntnx_images_v2 - Manage Nutanix Prism Central images.
37+
- ntnx_nodes_network_info_v2 - Get netowrk information for uncofigured cluster nodes
38+
- ntnx_operations_info_v2 - Module to fetch IAM operations info (previously `permissions`)
39+
- ntnx_pbrs_info_v2 - Routing Policies info module
40+
- ntnx_pbrs_v2 - Module for create, update and delete of Policy based routing.
41+
- ntnx_pc_registration_v2 - Registers a domain manager (Prism Central) instance to other entities like PE and PC
42+
- ntnx_recovery_point_replicate_v2 - Replicate recovery points
43+
- ntnx_recovery_point_restore_v2 - Restore recovery points, Creates a clone of the VM/VG from the selected recovery point
44+
- ntnx_recovery_points_info_v2 - Get recovery points info
45+
- ntnx_recovery_points_v2 - Create, Update, Delete recovery points
46+
- ntnx_roles_info_v2 - Get roles info
47+
- ntnx_roles_v2 - Create, update, and delete roles.
48+
- ntnx_route_tables_info_v2 - Route tables info module
49+
- ntnx_routes_info_v2 - Routes info module
50+
- ntnx_routes_v2 - Module to create, update, and delete routes in route table in VPC
51+
- ntnx_saml_identity_providers_info_v2 - Fetch SAML identity providers from Nutanix PC
52+
- ntnx_saml_identity_providers_v2 - Manage SAML identity providers in Nutanix PC
53+
- ntnx_security_rules_info_v2 - Fetch network security policies info from Nutanix PC.
54+
- ntnx_security_rules_v2 - Manage network security policies in Nutanix Prism Central
55+
- ntnx_service_groups_info_v2 - service_group info module
56+
- ntnx_service_groups_v2 - Create, Update, Delete service groups
57+
- ntnx_storage_containers_info_v2 - Retrieve information about Nutanix storage continer from PC
58+
- ntnx_storage_containers_stats_v2 - Retrieve stats about Nutanix storage continer from PC
59+
- ntnx_storage_containers_v2 - Manage storage containers in Nutanix Prism Central
60+
- ntnx_subnets_info_v2 - subnet info module
61+
- ntnx_subnets_v2 - subnets module which supports Create, Update, Delete subnets
62+
- ntnx_templates_deploy_v2 - Deploy Nutanix templates
63+
- ntnx_templates_guest_os_v2 - Manage guest OS updates for Nutanix AHV templates.
64+
- ntnx_templates_info_v2 - template info module
65+
- ntnx_templates_v2 - Manage Nutanix AHV template resources
66+
- ntnx_templates_version_v2 - Manage Nutanix template versions
67+
- ntnx_templates_versions_info_v2 - Fetches information about Nutanix template versions.
68+
- ntnx_user_groups_info_v2 - Fetch user groups
69+
- ntnx_user_groups_v2 - Create and Delete user groups
70+
- ntnx_users_info_v2 - Get users info
71+
- ntnx_users_v2 - Module to create and update users from Nutanix PC.
72+
- ntnx_vm_recovery_point_info_v2 - Get VM recovery point info
73+
- ntnx_vm_revert_v2 - Revert VM from recovery point
74+
- ntnx_vms_categories_v2 - Associate or disassociate categories to a VM in AHV Nutanix.
75+
- ntnx_vms_cd_rom_info_v2 - Fetch information about Nutanix VM's CD ROM
76+
- ntnx_vms_cd_rom_iso_v2 - Insert or Eject ISO from CD ROM of Nutanix VMs
77+
- ntnx_vms_cd_rom_v2 - Manage CDROM for Nutanix AHV VMs
78+
- ntnx_vms_clone_v2 - Clone a virtual machine in Nutanix AHV.
79+
- ntnx_vms_disks_info_v2 - Fetch information about Nutanix VM's disks
80+
- ntnx_vms_disks_v2 - Manage disks for Nutanix AHV VMs
81+
- ntnx_vms_info_v2 - Fetch information about Nutanix AHV based PC VMs
82+
- ntnx_vms_ngt_info_v2 - Get Nutanix Guest Tools (NGT) current config for a virtual machine.
83+
- ntnx_vms_ngt_insert_iso_v2 - Insert Nutanix Guest Tools (NGT) ISO into a virtual machine.
84+
- ntnx_vms_ngt_update_v2 - Update Nutanix Guest Tools (NGT) configuration for a VM.
85+
- ntnx_vms_ngt_upgrade_v2 - Upgrade Nutanix Guest Tools on a VM
86+
- ntnx_vms_ngt_v2 - Install or uninstall Nutanix Guest Tools (NGT) on a VM.
87+
- ntnx_vms_nics_info_v2 - Fetch information about Nutanix VM's NICs
88+
- ntnx_vms_nics_ip_v2 - Assign/Release IP to/from Nutanix VM NICs.
89+
- ntnx_vms_nics_v2 - Manage NICs of Nutanix VMs
90+
- ntnx_vms_serial_port_info_v2 - Fetch information about Nutanix VM's serial ports
91+
- ntnx_vms_serial_port_v2 - VM Serial Port module which supports VM serial port CRUD states
92+
- ntnx_vms_stage_guest_customization_v2 - Stage guest customization configuration for a Nutanix VM
93+
- ntnx_vms_v2 - Create, Update and delete VMs in Nutanix AHV based PC
94+
- ntnx_volume_groups_disks_info_v2 - Fetch information about Nutanix PC Volume group disks.
95+
- ntnx_volume_groups_disks_v2 - Manage Nutanix volume group disks
96+
- ntnx_volume_groups_info_v2 - Fetch information about Nutanix PC Volume groups.
97+
- ntnx_volume_groups_iscsi_clients_info_v2 - Fetch ISCSI clients info.
98+
- ntnx_volume_groups_iscsi_clients_v2 - Manage Nutanix volume groups iscsi clients in Nutanix PC.
99+
- ntnx_volume_groups_v2 - Manage Nutanix volume group in PC
100+
- ntnx_volume_groups_vms_v2 - Attach/Detach volume group to AHV VMs in Nutanix PC
101+
- ntnx_vpcs_info_v2 - vpc info module
102+
- ntnx_vpcs_v2 - vpcs module which supports vpc CRUD operations
103+
7104
v1.9.2
8105
======
9106

@@ -144,9 +241,9 @@ v1.6.0
144241
New Modules
145242
-----------
146243

147-
- ntnx_karbon_clusters - Nutanix module for karbon clusters
244+
- ntnx_karbon_clusters - v4 sdks based module for karbon clusters
148245
- ntnx_karbon_clusters_info - Nutanix info module for karbon clusters with kubeconifg and ssh config
149-
- ntnx_karbon_registries - Nutanix module for karbon private registry
246+
- ntnx_karbon_registries - v4 sdks based module for karbon private registry
150247
- ntnx_karbon_registries_info - Nutanix info module for karbon private registry
151248

152249
v1.5.0
@@ -155,11 +252,11 @@ v1.5.0
155252
New Modules
156253
-----------
157254

158-
- ntnx_protection_rules - Nutanix module for protection rules
255+
- ntnx_protection_rules - v4 sdks based module for protection rules
159256
- ntnx_protection_rules_info - Nutanix info module for protection rules
160-
- ntnx_recovery_plan_jobs - Nutanix module for recovery plan jobs
257+
- ntnx_recovery_plan_jobs - v4 sdks based module for recovery plan jobs
161258
- ntnx_recovery_plan_jobs_info - Nutanix info module for protection
162-
- ntnx_recovery_plans - Nutanix module for recovery plan
259+
- ntnx_recovery_plans - v4 sdks based module for recovery plan
163260
- ntnx_recovery_plans_info - Nutanix info module for recovery plan
164261

165262
v1.4.0
@@ -294,8 +391,8 @@ Bugfixes
294391
New Modules
295392
-----------
296393

297-
- ntnx_floating_ips - Nutanix module for floating Ips
298-
- ntnx_pbrs - Nutanix module for policy based routing
299-
- ntnx_subnets - Nutanix module for subnets
300-
- ntnx_vms - Nutanix module for vms
301-
- ntnx_vpcs - Nutanix module for vpcs
394+
- ntnx_floating_ips - v4 sdks based module for floating Ips
395+
- ntnx_pbrs - v4 sdks based module for policy based routing
396+
- ntnx_subnets - v4 sdks based module for subnets
397+
- ntnx_vms - v4 sdks based module for vms
398+
- ntnx_vpcs - v4 sdks based module for vpcs

0 commit comments

Comments
 (0)