Debian Codegraph @

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

raw
1 .. _idrac_firmware_module:
2
3
4 idrac_firmware -- Firmware update from a repository on a network share (CIFS, NFS, HTTP, HTTPS, FTP)
5 ====================================================================================================
6
7 .. contents::
8 :local:
9 :depth: 1
10
11
12 Synopsis
13 --------
14
15 Update the Firmware by connecting to a network share (CIFS, NFS, HTTP, HTTPS, FTP) that contains a catalog of available updates.
16
17 Network share should contain a valid repository of Update Packages (DUPs) and a catalog file describing the DUPs.
18
19 All applicable updates contained in the repository are applied to the system.
20
21 This feature is available only with iDRAC Enterprise License.
22
23
24
25 Requirements
26 ------------
27 The below requirements are needed on the host that executes this module.
28
29 - omsdk \>= 1.2.503
30 - python \>= 3.9.6
31
32
33
34 Parameters
35 ----------
36
37 share_name (True, str, None)
38 Network share path of update repository. CIFS, NFS, HTTP, HTTPS and FTP share types are supported.
39
40
41 share_user (optional, str, None)
42 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.
43
44
45 share_password (optional, str, None)
46 Network share user password. This option is mandatory for CIFS Network Share.
47
48
49 share_mnt (optional, str, None)
50 Local mount path of the network share with read-write permission for ansible user.
51
52 This option is not applicable for HTTP, HTTPS, and FTP shares.
53
54
55 job_wait (optional, bool, True)
56 Whether to wait for job completion or not.
57
58
59 catalog_file_name (optional, str, Catalog.xml)
60 Catalog file name relative to the \ :emphasis:`share\_name`\ .
61
62
63 ignore_cert_warning (optional, bool, True)
64 Specifies if certificate warnings are ignored when HTTPS share is used. If \ :literal:`true`\ option is set, then the certificate warnings are ignored.
65
66
67 apply_update (optional, bool, True)
68 If \ :emphasis:`apply\_update`\ is set to \ :literal:`true`\ , then the packages are applied.
69
70 If \ :emphasis:`apply\_update`\ is set to \ :literal:`false`\ , no updates are applied, and a catalog report of packages is generated and returned.
71
72
73 reboot (optional, bool, False)
74 Provides the option to apply the update packages immediately or in the next reboot.
75
76 If \ :emphasis:`reboot`\ is set to \ :literal:`true`\ , then the packages are applied immediately.
77
78 If \ :emphasis:`reboot`\ is set to \ :literal:`false`\ , then the packages are staged and applied in the next reboot.
79
80 Packages that do not require a reboot are applied immediately irrespective of I (reboot).
81
82
83 proxy_support (optional, str, Off)
84 Specifies if a proxy should be used.
85
86 Proxy parameters are applicable on \ :literal:`HTTP`\ , \ :literal:`HTTPS`\ , and \ :literal:`FTP`\ share type of repositories.
87
88 \ :literal:`ParametersProxy`\ , sets the proxy parameters for the current firmware operation.
89
90 \ :literal:`DefaultProxy`\ , iDRAC uses the proxy values set by default.
91
92 Default Proxy can be set in the Lifecycle Controller attributes using \ :ref:`dellemc.openmanage.idrac\_attributes <ansible_collections.dellemc.openmanage.idrac_attributes_module>`\ .
93
94 \ :literal:`Off`\ , will not use the proxy.
95
96 For iDRAC8 based servers, use proxy server with basic authentication.
97
98 For iDRAC9 based servers, ensure that you use digest authentication for the proxy server, basic authentication is not supported.
99
100
101 proxy_server (optional, str, None)
102 The IP address of the proxy server.
103
104 This IP will not be validated. The download job will be created even for invalid \ :emphasis:`proxy\_server`\ . Please check the results of the job for error details.
105
106 This is required when \ :emphasis:`proxy\_support`\ is \ :literal:`ParametersProxy`\ .
107
108
109 proxy_port (optional, int, None)
110 The Port for the proxy server.
111
112 This is required when \ :emphasis:`proxy\_support`\ is \ :literal:`ParametersProxy`\ .
113
114
115 proxy_type (optional, str, None)
116 The proxy type of the proxy server.
117
118 This is required when \ :emphasis:`proxy\_support`\ is \ :literal:`ParametersProxy`\ .
119
120 Note: SOCKS4 proxy does not support IPv6 address.
121
122
123 proxy_uname (optional, str, None)
124 The user name for the proxy server.
125
126
127 proxy_passwd (optional, str, None)
128 The password for the proxy server.
129
130
131 idrac_ip (True, str, None)
132 iDRAC IP Address.
133
134
135 idrac_user (True, str, None)
136 iDRAC username.
137
138 If the username is not provided, then the environment variable \ :envvar:`IDRAC\_USERNAME`\ is used.
139
140 Example: export IDRAC\_USERNAME=username
141
142
143 idrac_password (True, str, None)
144 iDRAC user password.
145
146 If the password is not provided, then the environment variable \ :envvar:`IDRAC\_PASSWORD`\ is used.
147
148 Example: export IDRAC\_PASSWORD=password
149
150
151 idrac_port (optional, int, 443)
152 iDRAC port.
153
154
155 validate_certs (optional, bool, True)
156 If \ :literal:`false`\ , the SSL certificates will not be validated.
157
158 Configure \ :literal:`false`\ only on personally controlled sites where self-signed certificates are used.
159
160 Prior to collection version \ :literal:`5.0.0`\ , the \ :emphasis:`validate\_certs`\ is \ :literal:`false`\ by default.
161
162
163 ca_path (optional, path, None)
164 The Privacy Enhanced Mail (PEM) file that contains a CA certificate to be used for the validation.
165
166
167 timeout (optional, int, 30)
168 The socket level timeout in seconds.
169
170
171
172
173
174 Notes
175 -----
176
177 .. note::
178 - Run this module from a system that has direct access to Dell iDRAC.
179 - Module will report success based on the iDRAC firmware update parent job status if there are no individual component jobs present.
180 - For server with iDRAC firmware 5.00.00.00 and later, if the repository contains unsupported packages, then the module will return success with a proper message.
181 - This module supports both IPv4 and IPv6 address for \ :emphasis:`idrac\_ip`\ and \ :emphasis:`share\_name`\ .
182 - This module supports \ :literal:`check\_mode`\ .
183
184
185
186
187 Examples
188 --------
189
190 .. code-block:: yaml+jinja
191
192
193 ---
194 - name: Update firmware from repository on a NFS Share
195 dellemc.openmanage.idrac_firmware:
196 idrac_ip: "192.168.0.1"
197 idrac_user: "user_name"
198 idrac_password: "user_password"
199 ca_path: "/path/to/ca_cert.pem"
200 share_name: "192.168.0.0:/share"
201 reboot: true
202 job_wait: true
203 apply_update: true
204 catalog_file_name: "Catalog.xml"
205
206 - name: Update firmware from repository on a CIFS Share
207 dellemc.openmanage.idrac_firmware:
208 idrac_ip: "192.168.0.1"
209 idrac_user: "user_name"
210 idrac_password: "user_password"
211 ca_path: "/path/to/ca_cert.pem"
212 share_name: "full_cifs_path"
213 share_user: "share_user"
214 share_password: "share_password"
215 reboot: true
216 job_wait: true
217 apply_update: true
218 catalog_file_name: "Catalog.xml"
219
220 - name: Update firmware from repository on a HTTP
221 dellemc.openmanage.idrac_firmware:
222 idrac_ip: "192.168.0.1"
223 idrac_user: "user_name"
224 idrac_password: "user_password"
225 ca_path: "/path/to/ca_cert.pem"
226 share_name: "http://downloads.dell.com"
227 reboot: true
228 job_wait: true
229 apply_update: true
230
231 - name: Update firmware from repository on a HTTPS
232 dellemc.openmanage.idrac_firmware:
233 idrac_ip: "192.168.0.1"
234 idrac_user: "user_name"
235 idrac_password: "user_password"
236 ca_path: "/path/to/ca_cert.pem"
237 share_name: "https://downloads.dell.com"
238 reboot: true
239 job_wait: true
240 apply_update: true
241
242 - name: Update firmware from repository on a HTTPS via proxy
243 dellemc.openmanage.idrac_firmware:
244 idrac_ip: "192.168.0.1"
245 idrac_user: "user_name"
246 idrac_password: "user_password"
247 ca_path: "/path/to/ca_cert.pem"
248 share_name: "https://downloads.dell.com"
249 reboot: true
250 job_wait: true
251 apply_update: true
252 proxy_support: ParametersProxy
253 proxy_server: 192.168.1.10
254 proxy_type: HTTP
255 proxy_port: 80
256 proxy_uname: "proxy_user"
257 proxy_passwd: "proxy_pwd"
258
259 - name: Update firmware from repository on a FTP
260 dellemc.openmanage.idrac_firmware:
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 share_name: "ftp://ftp.mydomain.com"
266 reboot: true
267 job_wait: true
268 apply_update: true
269
270
271
272 Return Values
273 -------------
274
275 msg (always, str, Successfully updated the firmware.)
276 Overall firmware update status.
277
278
279 update_status (success, dict, {'InstanceID': 'JID_XXXXXXXXXXXX', 'JobState': 'Completed', 'Message': 'Job completed successfully.', 'MessageId': 'REDXXX', 'Name': 'Repository Update', 'JobStartTime': 'NA', 'Status': 'Success'})
280 Firmware Update job and progress details from the iDRAC.
281
282
283
284
285
286 Status
287 ------
288
289
290
291
292
293 Authors
294 ~~~~~~~
295
296 - Rajeev Arakkal (@rajeevarakkal)
297 - Felix Stephen (@felixs88)
298 - Jagadeesh N V (@jagadeeshnv)
299