-
Notifications
You must be signed in to change notification settings - Fork 326
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add support vPMem disk config in vmware_guest_disk module (#1382)
Add support vPMem disk config in vmware_guest_disk module Signed-off-by: dianew dianew@vmware.com SUMMARY Add a new disk type for supporting add, reconfigure, remove vPMem disk like this: - name: Add a new vPMem disk to virtual machine to SATA controller community.vmware.vmware_guest_disk: hostname: "{{ vcenter_hostname }}" username: "{{ vcenter_username }}" password: "{{ vcenter_password }}" datacenter: "{{ datacenter_name }}" validate_certs: no name: VM_226 disk: - type: vpmemdisk size_gb: 1 state: present controller_type: sata controller_number: 1 unit_number: 2 delegate_to: localhost register: disk_facts ISSUE TYPE Feature Pull Request COMPONENT NAME vmware_guest_disk ADDITIONAL INFORMATION ok: [localhost] => { "results": { "changed": true, "disk_changes": { "0": "Disk created." }, "disk_data": { "0": { "backing_datastore": "datastore4", "backing_disk_mode": "persistent", "backing_eagerlyscrub": false, "backing_filename": "[datastore4] dw_winsrv/dw_winsrv-000002.vmdk", "backing_sharing": "sharingNone", "backing_thinprovisioned": true, "backing_uuid": "6000C29d-2508-d42f-9b83-d0dbaf8ac842", "backing_writethrough": false, "capacity_in_bytes": 96636764160, "capacity_in_kb": 94371840, "controller_key": 1000, "iolimit_limit": -1, "iolimit_shares_level": "normal", "iolimit_shares_limit": 1000, "key": 2000, "label": "Hard disk 1", "shares_level": "normal", "shares_limit": 1000, "summary": "94,371,840 KB", "unit_number": 0 }, "1": { "backing_datastore": "PMemDS-d615280a-5aed-2943-bc3a-a05c181c6b0d", "backing_disk_mode": "persistent", "backing_filename": "[PMemDS-d615280a-5aed-2943-bc3a-a05c181c6b0d] dw_winsrv/dw_winsrv.vmdk", "backing_sharing": null, "backing_uuid": "6000C29e-9fb3-a74a-abed-5e264ec14367", "capacity_in_bytes": 1073741824, "capacity_in_kb": 1048576, "controller_key": 1001, "iolimit_limit": -1, "iolimit_shares_level": "normal", "iolimit_shares_limit": 1000, "key": 2020, "label": "Hard disk 2", "shares_level": "normal", "shares_limit": 1000, "summary": "1,048,576 KB", "unit_number": 4 } }, "failed": false } } Reviewed-by: Mario Lenz <m@riolenz.de> Reviewed-by: sky-joker <sky.jokerxx@gmail.com>
- Loading branch information
Showing
2 changed files
with
84 additions
and
31 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,2 @@ | ||
minor_changes: | ||
- vmware_guest_disk - Add a new disk type to support add/reconfigure/remove vPMem disk (https://github.com/ansible-collections/community.vmware/pull/1382). |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters