Skip to content

Commit

Permalink
vmware_guest: Fix documentation
Browse files Browse the repository at this point in the history
  • Loading branch information
mariolenz committed Oct 1, 2024
1 parent c54fcb0 commit 947118e
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 12 deletions.
2 changes: 2 additions & 0 deletions changelogs/fragments/2192-fix-documentation.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,3 +3,5 @@ bugfixes:
(https://github.com/ansible-collections/community.vmware/pull/2192).
- vmware_dvswitch_nioc - Fix documentation
(https://github.com/ansible-collections/community.vmware/pull/2192).
- vmware_guest - Fix documentation
(https://github.com/ansible-collections/community.vmware/pull/2192).
24 changes: 12 additions & 12 deletions plugins/modules/vmware_guest.py
Original file line number Diff line number Diff line change
Expand Up @@ -295,7 +295,7 @@
type: str
description:
- The name of datastore which will be used for the disk.
- If O(disk.autoselect_datastore) is set to True, will select the less used datastore whose name contains this "disk.datastore" string.
- If O(disk[].autoselect_datastore) is set to True, will select the less used datastore whose name contains this "disk.datastore" string.
filename:
type: str
description:
Expand All @@ -306,7 +306,7 @@
type: bool
description:
- Select the less used datastore.
- O(disk.datastore) and O(disk.autoselect_datastore) will not be used if O(datastore) is specified outside this O(disk) configuration.
- O(disk[].datastore) and O(disk[].autoselect_datastore) will not be used if O(datastore) is specified outside this O(disk[]) configuration.
disk_mode:
type: str
choices: ['persistent', 'independent_persistent', 'independent_nonpersistent']
Expand All @@ -322,8 +322,8 @@
description:
- Type of disk controller.
Set this type on not supported ESXi or VM hardware version will lead to failure in deployment.
- When set to V(sata), please make sure O(disk.unit_number) is correct and not used by SATA CDROMs.
- If set to V(sata) type, please make sure O(disk.controller_number) and O(disk.unit_number) are set correctly when O(cdrom=sata).
- When set to V(sata), please make sure O(disk[].unit_number) is correct and not used by SATA CDROMs.
- If set to V(sata) type, please make sure O(disk[].controller_number) and O(disk[].unit_number) are set correctly when O(cdrom=sata).
controller_number:
type: int
choices: [0, 1, 2, 3]
Expand All @@ -337,9 +337,9 @@
- Valid value range from 0 to 15 for SCSI controller, except 7.
- Valid value range from 0 to 14 for NVME controller.
- Valid value range from 0 to 29 for SATA controller.
- O(disk.controller_type), O(disk.controller_number) and O(disk.unit_number) are required when creating or reconfiguring VMs
- O(disk[].controller_type), O(disk[].controller_number) and O(disk[].unit_number) are required when creating or reconfiguring VMs
with multiple types of disk controllers and disks.
- When creating new VM, the first configured disk in the O(disk) list will be "Hard Disk 1".
- When creating new VM, the first configured disk in the O(disk[]) list will be "Hard Disk 1".
nvdimm:
description:
- Add or remove a virtual NVDIMM device to the virtual machine.
Expand Down Expand Up @@ -389,20 +389,20 @@
controller_type:
type: str
description:
- When set to V(sata), please make sure O(cdrom.unit_number) is correct and not used by SATA disks.
- When set to V(sata), please make sure O(cdrom[].unit_number) is correct and not used by SATA disks.
choices: [ 'ide', 'sata' ]
default: ide
controller_number:
type: int
description:
- For O(cdrom.controller_type=ide), valid value is 0 or 1.
- For O(cdrom.controller_type=sata), valid value is 0 to 3.
- For O(cdrom[].controller_type=ide), valid value is 0 or 1.
- For O(cdrom[].controller_type=sata), valid value is 0 to 3.
unit_number:
type: int
description:
- For O(cdrom.controller_type=ide), valid value is 0 or 1.
- For O(cdrom.controller_type=sata), valid value is 0 to 29.
- O(cdrom.controller_number) and O(cdrom.unit_number) are mandatory attributes.
- For O(cdrom[].controller_type=ide), valid value is 0 or 1.
- For O(cdrom[].controller_type=sata), valid value is 0 to 29.
- O(cdrom[].controller_number) and O(cdrom[].unit_number) are mandatory attributes.
state:
type: str
description:
Expand Down

0 comments on commit 947118e

Please sign in to comment.