Debian Codegraph @

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

raw
1 .. _ome_firmware_baseline_module:
2
3
4 ome_firmware_baseline -- Create, modify, or delete a firmware baseline on OpenManage Enterprise or OpenManage Enterprise Modular
5 ================================================================================================================================
6
7 .. contents::
8 :local:
9 :depth: 1
10
11
12 Synopsis
13 --------
14
15 This module allows to create, modify, or delete a firmware baseline on OpenManage Enterprise or OpenManage Enterprise Modular.
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 state (optional, str, present)
31 \ :literal:`present`\ creates or modifies a baseline.
32
33 \ :literal:`absent`\ deletes an existing baseline.
34
35
36 baseline_name (optional, str, None)
37 Name of the the baseline.
38
39 This option is mutually exclusive with \ :emphasis:`baseline\_id`\ .
40
41
42 baseline_id (optional, int, None)
43 ID of the existing baseline.
44
45 This option is mutually exclusive with \ :emphasis:`baseline\_name`\ .
46
47
48 new_baseline_name (optional, str, None)
49 New name of the baseline.
50
51
52 baseline_description (optional, str, None)
53 Description for the baseline being created.
54
55
56 catalog_name (optional, str, None)
57 Name of the catalog to be associated with the baseline.
58
59
60 downgrade_enabled (optional, bool, None)
61 Indicates whether firmware downgrade is allowed for the devices in the baseline.
62
63 This value will be set to \ :literal:`true`\ by default, if not provided during baseline creation.
64
65
66 is_64_bit (optional, bool, None)
67 Indicates if the repository contains 64-bit DUPs.
68
69 This value will be set to \ :literal:`true`\ by default, if not provided during baseline creation.
70
71
72 device_ids (optional, list, None)
73 List of device IDs.
74
75 This option is mutually exclusive with \ :emphasis:`device\_service\_tags`\ and \ :emphasis:`device\_group\_names`\ .
76
77
78 device_service_tags (optional, list, None)
79 List of device service tags.
80
81 This option is mutually exclusive with \ :emphasis:`device\_ids`\ and \ :emphasis:`device\_group\_names`\ .
82
83
84 device_group_names (optional, list, None)
85 List of group names.
86
87 This option is mutually exclusive with \ :emphasis:`device\_ids`\ and \ :emphasis:`device\_service\_tags`\ .
88
89
90 job_wait (optional, bool, True)
91 Provides the option to wait for job completion.
92
93 This option is applicable when \ :emphasis:`state`\ is \ :literal:`present`\ .
94
95
96 job_wait_timeout (optional, int, 600)
97 The maximum wait time of \ :emphasis:`job\_wait`\ in seconds. The job is tracked only for this duration.
98
99 This option is applicable when \ :emphasis:`job\_wait`\ is \ :literal:`true`\ .
100
101
102 filter_no_reboot_required (optional, bool, None)
103 Select only components with no reboot required allows to create a firmware/driver baseline that consists of only the components of the target devices that don't require a reboot of the target devices.
104
105
106 hostname (True, str, None)
107 OpenManage Enterprise or OpenManage Enterprise Modular IP address or hostname.
108
109
110 username (False, str, None)
111 OpenManage Enterprise or OpenManage Enterprise Modular username.
112
113 If the username is not provided, then the environment variable \ :envvar:`OME\_USERNAME`\ is used.
114
115 Example: export OME\_USERNAME=username
116
117
118 password (False, str, None)
119 OpenManage Enterprise or OpenManage Enterprise Modular password.
120
121 If the password is not provided, then the environment variable \ :envvar:`OME\_PASSWORD`\ is used.
122
123 Example: export OME\_PASSWORD=password
124
125
126 x_auth_token (False, str, None)
127 Authentication token.
128
129 If the x\_auth\_token is not provided, then the environment variable \ :envvar:`OME\_X\_AUTH\_TOKEN`\ is used.
130
131 Example: export OME\_X\_AUTH\_TOKEN=x\_auth\_token
132
133
134 port (optional, int, 443)
135 OpenManage Enterprise or OpenManage Enterprise Modular HTTPS port.
136
137
138 validate_certs (optional, bool, True)
139 If \ :literal:`false`\ , the SSL certificates will not be validated.
140
141 Configure \ :literal:`false`\ only on personally controlled sites where self-signed certificates are used.
142
143 Prior to collection version \ :literal:`5.0.0`\ , the \ :emphasis:`validate\_certs`\ is \ :literal:`false`\ by default.
144
145
146 ca_path (optional, path, None)
147 The Privacy Enhanced Mail (PEM) file that contains a CA certificate to be used for the validation.
148
149
150 timeout (optional, int, 30)
151 The socket level timeout in seconds.
152
153
154
155
156
157 Notes
158 -----
159
160 .. note::
161 - Run this module from a system that has direct access to Dell OpenManage Enterprise or OpenManage Enterprise Modular.
162 - \ :emphasis:`device\_group\_names`\ option is not applicable for OpenManage Enterprise Modular.
163 - This module supports \ :literal:`check\_mode`\ .
164
165
166
167
168 Examples
169 --------
170
171 .. code-block:: yaml+jinja
172
173
174 ---
175 - name: Create baseline for device IDs
176 dellemc.openmanage.ome_firmware_baseline:
177 hostname: "192.168.0.1"
178 username: "username"
179 password: "password"
180 ca_path: "/path/to/ca_cert.pem"
181 baseline_name: "baseline_name"
182 baseline_description: "baseline_description"
183 catalog_name: "catalog_name"
184 device_ids:
185 - 1010
186 - 2020
187
188 - name: Create baseline for device IDs with no reboot required
189 dellemc.openmanage.ome_firmware_baseline:
190 hostname: "192.168.0.1"
191 username: "username"
192 password: "password"
193 ca_path: "/path/to/ca_cert.pem"
194 baseline_name: "baseline_name"
195 baseline_description: "baseline_description"
196 catalog_name: "catalog_name"
197 filter_no_reboot_required: true
198 device_ids:
199 - 1010
200 - 2020
201
202 - name: Create baseline for servicetags
203 dellemc.openmanage.ome_firmware_baseline:
204 hostname: "192.168.0.1"
205 username: "username"
206 password: "password"
207 ca_path: "/path/to/ca_cert.pem"
208 baseline_name: "baseline_name"
209 baseline_description: "baseline_description"
210 catalog_name: "catalog_name"
211 device_service_tags:
212 - "SVCTAG1"
213 - "SVCTAG2"
214
215 - name: Create baseline for servicetags with no reboot required
216 dellemc.openmanage.ome_firmware_baseline:
217 hostname: "192.168.0.1"
218 username: "username"
219 password: "password"
220 ca_path: "/path/to/ca_cert.pem"
221 baseline_name: "baseline_name"
222 baseline_description: "baseline_description"
223 catalog_name: "catalog_name"
224 filter_no_reboot_required: true
225 device_service_tags:
226 - "SVCTAG1"
227 - "SVCTAG2"
228
229 - name: Create baseline for device groups without job tracking
230 dellemc.openmanage.ome_firmware_baseline:
231 hostname: "192.168.0.1"
232 username: "username"
233 password: "password"
234 ca_path: "/path/to/ca_cert.pem"
235 baseline_name: "baseline_name"
236 baseline_description: "baseline_description"
237 catalog_name: "catalog_name"
238 device_group_names:
239 - "Group1"
240 - "Group2"
241 job_wait: false
242
243 - name: Modify an existing baseline
244 dellemc.openmanage.ome_firmware_baseline:
245 hostname: "192.168.0.1"
246 username: "username"
247 password: "password"
248 ca_path: "/path/to/ca_cert.pem"
249 baseline_name: "existing_baseline_name"
250 new_baseline_name: "new_baseline_name"
251 baseline_description: "new baseline_description"
252 catalog_name: "catalog_other"
253 device_group_names:
254 - "Group3"
255 - "Group4"
256 - "Group5"
257 downgrade_enabled: false
258 is_64_bit: true
259
260 - name: Modify no reboot filter in existing baseline
261 dellemc.openmanage.ome_firmware_baseline:
262 hostname: "192.168.0.1"
263 username: "username"
264 password: "password"
265 ca_path: "/path/to/ca_cert.pem"
266 baseline_name: "existing_baseline_name"
267 new_baseline_name: "new_baseline_name"
268 filter_no_reboot_required: true
269
270 - name: Delete a baseline
271 dellemc.openmanage.ome_firmware_baseline:
272 hostname: "192.168.0.1"
273 username: "username"
274 password: "password"
275 ca_path: "/path/to/ca_cert.pem"
276 state: absent
277 baseline_name: "baseline_name"
278
279
280
281 Return Values
282 -------------
283
284 msg (always, str, Successfully created the firmware baseline.)
285 Overall status of the firmware baseline operation.
286
287
288 baseline_status (success, dict, {'CatalogId': 123, 'Description': 'BASELINE DESCRIPTION', 'DeviceComplianceReports': [], 'DowngradeEnabled': True, 'FilterNoRebootRequired': True, 'Id': 23, 'Is64Bit': True, 'Name': 'my_baseline', 'RepositoryId': 123, 'RepositoryName': 'catalog123', 'RepositoryType': 'HTTP', 'Targets': [{'Id': 10083, 'Type': {'Id': 1000, 'Name': 'DEVICE'}}, {'Id': 10076, 'Type': {'Id': 1000, 'Name': 'DEVICE'}}], 'TaskId': 11235, 'TaskStatusId': 2060})
289 Details of the baseline status.
290
291
292 job_id (When baseline job is in running state, int, 10123)
293 Job ID of the baseline task.
294
295
296 baseline_id (When I(state) is C(absent), int, 10123)
297 ID of the deleted baseline.
298
299
300 error_info (on http error, dict, {'error': {'@Message.ExtendedInfo': [{'Message': 'Unable to retrieve baseline list either because the device ID(s) entered are invalid', 'Resolution': 'Make sure the entered device ID(s) are valid and retry the operation.', 'Severity': 'Critical'}], 'code': 'Base.1.0.GeneralError', 'message': 'A general error has occurred. See ExtendedInfo for more information.'}})
301 Details of http error.
302
303
304
305
306
307 Status
308 ------
309
310
311
312
313
314 Authors
315 ~~~~~~~
316
317 - Jagadeesh N V(@jagadeeshnv)
318 - Kritika Bhateja (@Kritika-Bhateja-03)
319 - Sapana Gupta (@sapana05)
320