| 1 | --- |
| 2 | argument_specs: |
| 3 | main: |
| 4 | version_added: "8.0.0" |
| 5 | short_description: Configure the boot order settings |
| 6 | description: |
| 7 | - This role allows to configure the boot order settings. |
| 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 self-signed certificates are used. |
| 27 | type: bool |
| 28 | default: true |
| 29 | ca_path: |
| 30 | description: |
| 31 | - The Privacy Enhanced Mail (PEM) file that contains a CA certificate to be used for the validation. |
| 32 | type: path |
| 33 | https_timeout: |
| 34 | description: The socket level timeout in seconds. |
| 35 | type: int |
| 36 | default: 30 |
| 37 | boot_options: |
| 38 | description: |
| 39 | - Options to enable or disable the boot devices. |
| 40 | - This is mutually exclusive with I(boot_order), I(boot_source_override_mode), |
| 41 | I(boot_source_override_enabled), I(boot_source_override_target), and I(uefi_target_boot_source_override). |
| 42 | type: list |
| 43 | elements: dict |
| 44 | options: |
| 45 | boot_option_reference: |
| 46 | description: |
| 47 | - FQDD of the boot device. |
| 48 | - This is mutually exclusive with I(display_name). |
| 49 | type: str |
| 50 | display_name: |
| 51 | description: |
| 52 | - Display name of the boot source device. |
| 53 | - This is mutually exclusive with I(boot_option_reference). |
| 54 | type: str |
| 55 | enabled: |
| 56 | description: Enable or disable the boot device. |
| 57 | type: bool |
| 58 | required: true |
| 59 | boot_order: |
| 60 | description: |
| 61 | - This option allows to set the boot devices in the required boot order sequence. |
| 62 | - This is mutually exclusive with I(boot_options). |
| 63 | type: list |
| 64 | elements: str |
| 65 | boot_source_override_mode: |
| 66 | description: |
| 67 | - The BIOS boot mode (either Legacy or UEFI) to be used when I(boot_source_override_target) |
| 68 | boot source is booted. |
| 69 | - C(legacy) The system boot in non-UEFI(Legacy) boot mode to the I(boot_source_override_target). |
| 70 | - C(uefi) The system boot in UEFI boot mode to the I(boot_source_override_target). |
| 71 | - This is read-only property for iDRAC 17G and later. |
| 72 | - This is mutually exclusive with I(boot_options). |
| 73 | type: str |
| 74 | choices: [legacy, uefi] |
| 75 | boot_source_override_enabled: |
| 76 | description: |
| 77 | - The state of the Boot Source Override feature. |
| 78 | - C(disabled), the system boots normally. |
| 79 | - C(once), the system boots 1 time to the I(boot_source_override_target). |
| 80 | - C(continuous), the system boots to the target specified in the I(boot_source_override_target) |
| 81 | until this property is set to Disabled. |
| 82 | - The state is set to C(once) for the 1 time boot override and C(continuous) for the |
| 83 | remain-active-until—cancelled override. If the state is set C(once) or C(continuous), the value is reset |
| 84 | to C(disabled) after the I(boot_source_override_target) actions have completed successfully. |
| 85 | - Changes to these options do not alter the BIOS persistent boot order configuration. |
| 86 | - This is mutually exclusive with I(boot_options). |
| 87 | choices: [continuous, disabled, once] |
| 88 | boot_source_override_target: |
| 89 | description: |
| 90 | - The boot source override targets the device to use during the next boot instead of the normal boot device. |
| 91 | - C(pxe) performs PXE boot from the primary NIC. |
| 92 | - C(floppy), C(cd), C(hdd), and C(sd_card) performs boot from their devices respectively. |
| 93 | - C(bios_setup) performs boot into the native BIOS setup. |
| 94 | - C(uefi_http) performs boot from a URI over HTTP. |
| 95 | - C(utilities) performs boot from the local utilities. |
| 96 | - C(uefi_target) performs boot from the UEFI device path found in I(uefi_target_boot_source_override). |
| 97 | - C(none) if the I(boot_source_override_target) is set to a value other than C(none) then the |
| 98 | I(boot_source_override_enabled) is automatically set to C(once). |
| 99 | - Changes to these options do not alter the BIOS persistent boot order configuration. |
| 100 | - This is required if I(boot_source_override_enabled) is C(once) or |
| 101 | C(continuous) for iDRAC 17G and later. |
| 102 | - This is mutually exclusive with I(boot_options). |
| 103 | type: str |
| 104 | choices: [uefi_http, sd_card, uefi_target, utilities, bios_setup, hdd, cd, floppy, pxe, none] |
| 105 | uefi_target_boot_source_override: |
| 106 | description: |
| 107 | - The UEFI device path of the device from which to boot when I(boot_source_override_target) is C(uefi_target). |
| 108 | - If I(boot_source_override_target) is set to C(uefi_target), then I(boot_source_override_enabled) cannot be |
| 109 | set to c(continuous) because this setting is defined in UEFI as a one-time-boot setting. |
| 110 | - Changes to these options do not alter the BIOS persistent boot order configuration. |
| 111 | - This is required if I(boot_source_override_target) is C(uefi_target). |
| 112 | - This is mutually exclusive with I(boot_options). |
| 113 | type: str |
| 114 | reset_type: |
| 115 | description: |
| 116 | - C(none) Host system is not rebooted and I(job_wait) is not applicable. |
| 117 | - C(force_restart) Forcefully reboot the Host system. |
| 118 | - C(graceful_restart) Gracefully reboot the Host system. |
| 119 | type: str |
| 120 | choices: [graceful_restart, force_restart, none] |
| 121 | default: graceful_restart |
| 122 | job_wait: |
| 123 | description: |
| 124 | - Provides the option to wait for job completion. |
| 125 | - This is applicable when I(reset_type) is C(force_reset) or C(graceful_reset). |
| 126 | type: bool |
| 127 | default: true |
| 128 | job_wait_timeout: |
| 129 | description: |
| 130 | - The maximum wait time of I(job_wait) in seconds. The job is tracked only for this duration. |
| 131 | - This option is applicable when I(job_wait) is C(True). |
| 132 | type: int |
| 133 | default: 900 |
| 134 | resource_id: |
| 135 | description: Redfish ID of the resource. |
| 136 | type: str |