Debian Codegraph @

ansible_collections/dellemc/openmanage/docs/modules/idrac_boot.rst

raw
1 .. _idrac_boot_module:
2
3
4 idrac_boot -- Configure the boot order settings.
5 ================================================
6
7 .. contents::
8 :local:
9 :depth: 1
10
11
12 Synopsis
13 --------
14
15 This module allows to configure the boot order settings.
16
17
18
19 Requirements
20 ------------
21 The below requirements are needed on the host that executes this module.
22
23 - python \>= 3.9.6
24
25
26
27 Parameters
28 ----------
29
30 boot_options (optional, list, None)
31 Options to enable or disable the boot devices.
32
33 This is mutually exclusive with :emphasis:`boot\_order`\ , :emphasis:`boot\_source\_override\_mode`\ , :emphasis:`boot\_source\_override\_enabled` :emphasis:`boot\_source\_override\_target`\ , and :emphasis:`uefi\_target\_boot\_source\_override`.
34
35
36 boot_option_reference (optional, str, None)
37 FQDD of the boot device.
38
39 This is mutually exclusive with :emphasis:`display\_name`.
40
41
42 display_name (optional, str, None)
43 Display name of the boot source device.
44
45 This is mutually exclusive with :emphasis:`boot\_option\_reference`.
46
47
48 enabled (True, bool, None)
49 Enable or disable the boot device.
50
51
52
53 boot_order (optional, list, None)
54 This option allows to set the boot devices in the required boot order sequences.
55
56 This is mutually exclusive with :emphasis:`boot\_options`.
57
58
59 boot_source_override_mode (optional, str, None)
60 The BIOS boot mode (either Legacy or UEFI) to be used when :emphasis:`boot\_source\_override\_target` boot source is booted from.
61
62 :literal:`legacy` The system boot in non-UEFI(Legacy) boot mode to the :emphasis:`boot\_source\_override\_target`.
63
64 :literal:`uefi` The system boot in UEFI boot mode to the :emphasis:`boot\_source\_override\_target`.
65
66 This is read-only property for iDRAC 17G and later.
67
68 This is mutually exclusive with :emphasis:`boot\_options`.
69
70
71 boot_source_override_enabled (optional, str, None)
72 The state of the Boot Source Override feature.
73
74 :literal:`disabled` The system boots normally.
75
76 :literal:`once` The system boots (one time) to the :emphasis:`boot\_source\_override\_target`.
77
78 :literal:`continuous` The system boots to the target specified in the :emphasis:`boot\_source\_override\_target` until this property is set to Disabled.
79
80 The state is set to :literal:`once` for the one-time boot override and :literal:`continuous` for the remain-active-until—canceled override. If the state is set :literal:`once` or :literal:`continuous`\ , the value is reset to :literal:`disabled` after the :emphasis:`boot\_source\_override\_target` actions have completed successfully.
81
82 Changes to this options do not alter the BIOS persistent boot order configuration.
83
84 This is mutually exclusive with :emphasis:`boot\_options`.
85
86
87 boot_source_override_target (optional, str, None)
88 The boot source override target device to use during the next boot instead of the normal boot device.
89
90 :literal:`pxe` performs PXE boot from the primary NIC.
91
92 :literal:`floppy`\ , :literal:`cd`\ , :literal:`hdd`\ , :literal:`sd\_card` performs boot from their devices respectively.
93
94 :literal:`bios\_setup` performs boot into the native BIOS setup.
95
96 :literal:`utilities` performs boot from the local utilities.
97
98 :literal:`uefi\_target` performs boot from the UEFI device path found in :emphasis:`uefi\_target\_boot\_source\_override`.
99
100 If the :emphasis:`boot\_source\_override\_target` is set to a value other than :literal:`none` then the :emphasis:`boot\_source\_override\_enabled` is automatically set to :literal:`once` if :emphasis:`boot\_source\_override\_enabled` is not provided.
101
102 Changes to this options do not alter the BIOS persistent boot order configuration.
103
104 This is required if :emphasis:`boot\_source\_override\_enabled` is :literal:`once` or :literal:`continuous` for iDRAC 17G and later.
105
106 This is not idempotent for iDRAC 17G and later.
107
108 This is mutually exclusive with :emphasis:`boot\_options`.
109
110
111 uefi_target_boot_source_override (optional, str, None)
112 The UEFI device path of the device from which to boot when :emphasis:`boot\_source\_override\_target` is :literal:`uefi\_target`.
113
114 :emphasis:`boot\_source\_override\_enabled` cannot be set to c(continuous) if :emphasis:`boot\_source\_override\_target` set to :literal:`uefi\_target` because this settings is defined in UEFI as a one-time-boot setting.
115
116 Changes to this options do not alter the BIOS persistent boot order configuration.
117
118 This is required if :emphasis:`boot\_source\_override\_target` is :literal:`uefi\_target`.
119
120 This is mutually exclusive with :emphasis:`boot\_options`.
121
122
123 reset_type (optional, str, graceful_restart)
124 :literal:`none` Host system is not rebooted and :emphasis:`job\_wait` is not applicable.
125
126 :literal:`force\_restart` Forcefully reboot the Host system.
127
128 :literal:`graceful\_restart` Gracefully reboot the Host system.
129
130
131 job_wait (optional, bool, True)
132 Provides the option to wait for job completion.
133
134 This is applicable when :emphasis:`reset\_type` is :literal:`force\_reset` or :literal:`graceful\_reset`.
135
136
137 job_wait_timeout (optional, int, 900)
138 The maximum wait time of :emphasis:`job\_wait` in seconds. The job is tracked only for this duration.
139
140 This option is applicable when :emphasis:`job\_wait` is :literal:`true`.
141
142
143 resource_id (optional, str, None)
144 Redfish ID of the resource.
145
146
147 idrac_ip (True, str, None)
148 iDRAC IP Address.
149
150
151 idrac_user (False, str, None)
152 iDRAC username.
153
154 If the username is not provided, then the environment variable :envvar:`IDRAC\_USERNAME` is used.
155
156 Example: export IDRAC\_USERNAME=username
157
158
159 idrac_password (False, str, None)
160 iDRAC user password.
161
162 If the password is not provided, then the environment variable :envvar:`IDRAC\_PASSWORD` is used.
163
164 Example: export IDRAC\_PASSWORD=password
165
166
167 x_auth_token (False, str, None)
168 Authentication token.
169
170 If the x\_auth\_token is not provided, then the environment variable :envvar:`IDRAC\_X\_AUTH\_TOKEN` is used.
171
172 Example: export IDRAC\_X\_AUTH\_TOKEN=x\_auth\_token
173
174
175 idrac_port (optional, int, 443)
176 iDRAC port.
177
178
179 validate_certs (optional, bool, True)
180 If :literal:`false`\ , the SSL certificates will not be validated.
181
182 Configure :literal:`false` only on personally controlled sites where self-signed certificates are used.
183
184 Prior to collection version :literal:`5.0.0`\ , the :emphasis:`validate\_certs` is :literal:`false` by default.
185
186
187 ca_path (optional, path, None)
188 The Privacy Enhanced Mail (PEM) file that contains a CA certificate to be used for the validation.
189
190
191 timeout (optional, int, 30)
192 The socket level timeout in seconds.
193
194
195
196
197
198 Notes
199 -----
200
201 .. note::
202 - Run this module from a system that has direct access to Dell iDRAC.
203 - This module supports :literal:`check\_mode`.
204
205
206
207
208 Examples
209 --------
210
211 .. code-block:: yaml+jinja
212
213
214 ---
215 - name: Configure the system boot options settings.
216 dellemc.openmanage.idrac_boot:
217 idrac_ip: "192.168.0.1"
218 idrac_user: "user_name"
219 idrac_password: "user_password"
220 ca_path: "/path/to/ca_cert.pem"
221 boot_options:
222 - display_name: Hard drive C
223 enabled: true
224 - boot_option_reference: NIC.PxeDevice.2-1
225 enabled: true
226
227 - name: Configure the boot order settings.
228 dellemc.openmanage.idrac_boot:
229 idrac_ip: "192.168.0.1"
230 idrac_user: "user_name"
231 idrac_password: "user_password"
232 ca_path: "/path/to/ca_cert.pem"
233 boot_order:
234 - Boot0001
235 - Boot0002
236 - Boot0004
237 - Boot0003
238
239 - name: Configure the boot source override mode.
240 dellemc.openmanage.idrac_boot:
241 idrac_ip: "192.168.0.1"
242 idrac_user: "user_name"
243 idrac_password: "user_password"
244 ca_path: "/path/to/ca_cert.pem"
245 boot_source_override_mode: legacy
246 boot_source_override_target: cd
247 boot_source_override_enabled: once
248
249 - name: Configure the UEFI target settings.
250 dellemc.openmanage.idrac_boot:
251 idrac_ip: "192.168.0.1"
252 idrac_user: "user_name"
253 idrac_password: "user_password"
254 ca_path: "/path/to/ca_cert.pem"
255 boot_source_override_mode: uefi
256 boot_source_override_target: uefi_target
257 uefi_target_boot_source_override: "VenHw(3A191845-5F86-4E78-8FCE-C4CFF59F9DAA)"
258
259 - name: Configure the boot source override mode as pxe.
260 dellemc.openmanage.idrac_boot:
261 idrac_ip: "192.168.0.1"
262 idrac_user: "user_name"
263 idrac_password: "user_password"
264 ca_path: "/path/to/ca_cert.pem"
265 boot_source_override_mode: legacy
266 boot_source_override_target: pxe
267 boot_source_override_enabled: continuous
268
269
270
271 Return Values
272 -------------
273
274 msg (success, str, Successfully updated the boot settings.)
275 Successfully updated the boot settings.
276
277
278 job (success, dict, {'ActualRunningStartTime': '2019-06-19T00:57:24', 'ActualRunningStopTime': '2019-06-19T01:00:27', 'CompletionTime': '2019-06-19T01:00:27', 'Description': 'Job Instance', 'EndTime': 'TIME_NA', 'Id': 'JID_609237056489', 'JobState': 'Completed', 'JobType': 'BIOSConfiguration', 'Message': 'Job completed successfully.', 'MessageArgs': [], 'MessageId': 'PR19', 'Name': 'Configure: BIOS.Setup.1-1', 'PercentComplete': 100, 'StartTime': '2019-06-19T00:55:05', 'TargetSettingsURI': None})
279 Configured job details.
280
281
282 boot (success, dict, {'BootOptions': {'Description': 'Collection of BootOptions', 'Members': [{'BootOptionEnabled': False, 'BootOptionReference': 'HardDisk.List.1-1', 'Description': 'Current settings of the Legacy Boot option', 'DisplayName': 'Hard drive C:', 'Id': 'HardDisk.List.1-1', 'Name': 'Legacy Boot option', 'UefiDevicePath': 'VenHw(D6C0639F-C705-4EB9-AA4F-5802D8823DE6)'}], 'Name': 'Boot Options Collection'}, 'BootOrder': ['HardDisk.List.1-1'], 'BootSourceOverrideEnabled': 'Disabled', 'BootSourceOverrideMode': 'Legacy', 'BootSourceOverrideTarget': 'None', 'UefiTargetBootSourceOverride': None})
283 Configured boot settings details.
284
285
286 error_info (on HTTP error, dict, {'error': {'code': 'Base.1.0.GeneralError', 'message': 'A general error has occurred. See ExtendedInfo for more information.', '@Message.ExtendedInfo': [{'MessageId': 'GEN1234', 'RelatedProperties': [], 'Message': 'Unable to process the request because an error occurred.', 'MessageArgs': [], 'Severity': 'Critical', 'Resolution': 'Retry the operation. If the issue persists, contact your system administrator.'}]}})
287 Details of the HTTP Error.
288
289
290
291
292
293 Status
294 ------
295
296
297
298
299
300 Authors
301 ~~~~~~~
302
303 - Felix Stephen (@felixs88)
304 - Abhishek Sinha (@ABHISHEK-SINHA10)
305