| 1 |
.. _idrac_os_deployment_module: |
| 2 |
|
| 3 |
|
| 4 |
idrac_os_deployment -- Boot to a network ISO image |
| 5 |
================================================== |
| 6 |
|
| 7 |
.. contents:: |
| 8 |
:local: |
| 9 |
:depth: 1 |
| 10 |
|
| 11 |
|
| 12 |
Synopsis |
| 13 |
-------- |
| 14 |
|
| 15 |
Boot to a network ISO image. |
| 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 |
share_name (True, str, None) |
| 31 |
CIFS or NFS Network share. |
| 32 |
|
| 33 |
|
| 34 |
share_user (optional, str, None) |
| 35 |
Network share user in the format 'user@domain' or 'domain\\\\user' if user is part of a domain else 'user'. This option is mandatory for CIFS Network Share. |
| 36 |
|
| 37 |
|
| 38 |
share_password (optional, str, None) |
| 39 |
Network share user password. This option is mandatory for CIFS Network Share. |
| 40 |
|
| 41 |
|
| 42 |
iso_image (True, str, None) |
| 43 |
Network ISO name. |
| 44 |
|
| 45 |
|
| 46 |
expose_duration (optional, int, 1080) |
| 47 |
It is the time taken in minutes for the ISO image file to be exposed as a local CD-ROM device to the host server. When the time expires, the ISO image gets automatically detached. |
| 48 |
|
| 49 |
|
| 50 |
idrac_ip (True, str, None) |
| 51 |
iDRAC IP Address. |
| 52 |
|
| 53 |
|
| 54 |
idrac_user (False, str, None) |
| 55 |
iDRAC username. |
| 56 |
|
| 57 |
If the username is not provided, then the environment variable \ :envvar:`IDRAC\_USERNAME`\ is used. |
| 58 |
|
| 59 |
Example: export IDRAC\_USERNAME=username |
| 60 |
|
| 61 |
|
| 62 |
idrac_password (False, str, None) |
| 63 |
iDRAC user password. |
| 64 |
|
| 65 |
If the password is not provided, then the environment variable \ :envvar:`IDRAC\_PASSWORD`\ is used. |
| 66 |
|
| 67 |
Example: export IDRAC\_PASSWORD=password |
| 68 |
|
| 69 |
|
| 70 |
x_auth_token (False, str, None) |
| 71 |
Authentication token. |
| 72 |
|
| 73 |
If the x\_auth\_token is not provided, then the environment variable \ :envvar:`IDRAC\_X\_AUTH\_TOKEN`\ is used. |
| 74 |
|
| 75 |
Example: export IDRAC\_X\_AUTH\_TOKEN=x\_auth\_token |
| 76 |
|
| 77 |
|
| 78 |
idrac_port (optional, int, 443) |
| 79 |
iDRAC port. |
| 80 |
|
| 81 |
|
| 82 |
validate_certs (optional, bool, True) |
| 83 |
If \ :literal:`false`\ , the SSL certificates will not be validated. |
| 84 |
|
| 85 |
Configure \ :literal:`false`\ only on personally controlled sites where self-signed certificates are used. |
| 86 |
|
| 87 |
Prior to collection version \ :literal:`5.0.0`\ , the \ :emphasis:`validate\_certs`\ is \ :literal:`false`\ by default. |
| 88 |
|
| 89 |
|
| 90 |
ca_path (optional, path, None) |
| 91 |
The Privacy Enhanced Mail (PEM) file that contains a CA certificate to be used for the validation. |
| 92 |
|
| 93 |
|
| 94 |
timeout (optional, int, 30) |
| 95 |
The socket level timeout in seconds. |
| 96 |
|
| 97 |
|
| 98 |
|
| 99 |
|
| 100 |
|
| 101 |
Notes |
| 102 |
----- |
| 103 |
|
| 104 |
.. note:: |
| 105 |
- Run this module from a system that has direct access to Dell iDRAC. |
| 106 |
- This module supports both IPv4 and IPv6 address for \ :emphasis:`idrac\_ip`\ . |
| 107 |
- This module does not support \ :literal:`check\_mode`\ . |
| 108 |
|
| 109 |
|
| 110 |
|
| 111 |
|
| 112 |
Examples |
| 113 |
-------- |
| 114 |
|
| 115 |
.. code-block:: yaml+jinja |
| 116 |
|
| 117 |
|
| 118 |
--- |
| 119 |
- name: Boot to Network ISO |
| 120 |
dellemc.openmanage.idrac_os_deployment: |
| 121 |
idrac_ip: "192.168.0.1" |
| 122 |
idrac_user: "user_name" |
| 123 |
idrac_password: "user_password" |
| 124 |
ca_path: "/path/to/ca_cert.pem" |
| 125 |
share_name: "192.168.0.0:/nfsfileshare" |
| 126 |
iso_image: "unattended_os_image.iso" |
| 127 |
expose_duration: 180 |
| 128 |
|
| 129 |
|
| 130 |
|
| 131 |
Return Values |
| 132 |
------------- |
| 133 |
|
| 134 |
msg (on error, str, Failed to boot to network iso) |
| 135 |
Over all device information status. |
| 136 |
|
| 137 |
|
| 138 |
boot_status (always, dict, {'DeleteOnCompletion': 'false', 'InstanceID': 'DCIM_OSDConcreteJob:1', 'JobName': 'BootToNetworkISO', 'JobStatus': 'Success', 'Message': 'The command was successful.', 'MessageID': 'OSD1', 'Name': 'BootToNetworkISO', 'Status': 'Success', 'file': '192.168.0.0:/nfsfileshare/unattended_os_image.iso', 'retval': True}) |
| 139 |
Details of the boot to network ISO image operation. |
| 140 |
|
| 141 |
|
| 142 |
|
| 143 |
|
| 144 |
|
| 145 |
Status |
| 146 |
------ |
| 147 |
|
| 148 |
|
| 149 |
|
| 150 |
|
| 151 |
|
| 152 |
Authors |
| 153 |
~~~~~~~ |
| 154 |
|
| 155 |
- Felix Stephen (@felixs88) |
| 156 |
- Jagadeesh N V (@jagadeeshnv) |
| 157 |
- Abhishek Sinha (@ABHISHEK-SINHA10) |
| 158 |
- Bhavneet Sharma (@Bhavneet-Sharma) |
| 159 |
|