| 1 |
--- |
| 2 |
argument_specs: |
| 3 |
main: |
| 4 |
version_added: "7.4.0" |
| 5 |
short_description: Role to manage the different power states of the specified device |
| 6 |
description: |
| 7 |
- Role to manage the different power states of the specified device using iDRACs (iDRAC8 and iDRAC9 only) for Dell PowerEdge servers. |
| 8 |
options: |
| 9 |
hostname: |
| 10 |
required: true |
| 11 |
type: str |
| 12 |
description: iDRAC IP Address. |
| 13 |
username: |
| 14 |
type: str |
| 15 |
description: iDRAC username. |
| 16 |
password: |
| 17 |
type: str |
| 18 |
description: iDRAC user password. |
| 19 |
https_port: |
| 20 |
type: int |
| 21 |
description: iDRAC port. |
| 22 |
default: 443 |
| 23 |
validate_certs: |
| 24 |
description: |
| 25 |
- If C(false), the SSL certificates will not be validated. |
| 26 |
- Configure C(false) only on personally controlled sites where |
| 27 |
self-signed certificates are used. |
| 28 |
type: bool |
| 29 |
default: true |
| 30 |
ca_path: |
| 31 |
description: |
| 32 |
- The Privacy Enhanced Mail (PEM) file that contains a CA certificate |
| 33 |
to be used for the validation. |
| 34 |
type: path |
| 35 |
https_timeout: |
| 36 |
description: The HTTPS socket level timeout in seconds. |
| 37 |
type: int |
| 38 |
default: 30 |
| 39 |
resource_id: |
| 40 |
description: |
| 41 |
- This option is the unique identifier of the device being managed. |
| 42 |
For example, |
| 43 |
U(https://<I(baseuri)>/redfish/v1/Systems/<I(resource_id)>). |
| 44 |
- This option is mandatory for I(base_uri) with multiple devices. |
| 45 |
- To get the device details, |
| 46 |
use the API U(https://<I(baseuri)>/redfish/v1/Systems) for |
| 47 |
reset_type operation and U(https://<I(baseuri)>/redfish/v1/Chassis) |
| 48 |
for oem_reset_type operation. |
| 49 |
required: false |
| 50 |
type: str |
| 51 |
reset_type: |
| 52 |
description: |
| 53 |
- This option resets the device. |
| 54 |
- C(ForceOff) turns off the device immediately. |
| 55 |
- C(ForceOn) turns on the device immediately. |
| 56 |
- C(ForceRestart) turns off the device immediately, |
| 57 |
and then restarts the server. |
| 58 |
- C(GracefulRestart) performs graceful shutdown of the device, |
| 59 |
and then restarts the device. |
| 60 |
- C(GracefulShutdown) performs a graceful shutdown of the device, |
| 61 |
and then turns off the device. |
| 62 |
- C(Nmi) sends a diagnostic interrupt to the device. This option is |
| 63 |
usually a nonmaskable interrupt (NMI) on x86 systems. |
| 64 |
- C(On) turns on the device. |
| 65 |
- C(PowerCycle) performs a power cycle on the device. |
| 66 |
- C(PushPowerButton) simulates the pressing of a physical power |
| 67 |
button on the device. |
| 68 |
- I(reset_type) is mutually exclusive with I(oem_reset_type). |
| 69 |
- When a power control operation is performed, which is not supported |
| 70 |
on the device, an error message is displayed with the list of |
| 71 |
operations that can be performed. |
| 72 |
required: false |
| 73 |
type: str |
| 74 |
choices: |
| 75 |
[ |
| 76 |
"ForceOff", |
| 77 |
"ForceOn", |
| 78 |
"ForceRestart", |
| 79 |
"GracefulRestart", |
| 80 |
"GracefulShutdown", |
| 81 |
"Nmi", |
| 82 |
"On", |
| 83 |
"PowerCycle", |
| 84 |
"PushPowerButton" |
| 85 |
] |
| 86 |
oem_reset_type: |
| 87 |
description: |
| 88 |
- This parameter initiates a complete Alternate Current (AC) power |
| 89 |
cycle of the server which is equivalent to disconnecting power |
| 90 |
cables using OEM API. |
| 91 |
- I(oem_reset_type) is mutually exclusive with I(reset_type). |
| 92 |
- If the value of 'final_power_state' is not provided, the default |
| 93 |
value is 'Off'. |
| 94 |
required: false |
| 95 |
type: dict |
| 96 |
version_added: 9.5.0 |