Debian Codegraph @

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

raw
1 .. _ome_firmware_catalog_module:
2
3
4 ome_firmware_catalog -- Create, modify, or delete a firmware catalog 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 catalog 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 catalog.
32
33 \ :literal:`absent`\ deletes an existing catalog.
34
35
36 catalog_name (optional, list, None)
37 Name of the firmware catalog to be created.
38
39 This option is mutually exclusive with \ :emphasis:`catalog\_id`\ .
40
41 Provide the list of firmware catalog names that are supported when \ :emphasis:`state`\ is \ :literal:`absent`\ .
42
43
44 new_catalog_name (optional, str, None)
45 New name of the firmware catalog.
46
47
48 catalog_id (optional, list, None)
49 ID of the catalog.
50
51 This option is mutually exclusive with \ :emphasis:`catalog\_name`\ .
52
53 Provide the list of firmware catalog IDs that are supported when \ :emphasis:`state`\ is \ :literal:`absent`\ .
54
55
56 catalog_description (optional, str, None)
57 Description for the catalog.
58
59
60 source (optional, str, None)
61 The IP address of the system where the firmware catalog is stored on the local network.
62
63 By default, this option is set to downloads.dell.com when \ :emphasis:`repository\_type`\ is \ :literal:`DELL\_ONLINE`\ .
64
65
66 source_path (optional, str, None)
67 Specify the complete path of the catalog file location without the file name.
68
69 This is option ignored when \ :emphasis:`repository\_type`\ is \ :literal:`DELL\_ONLINE`\ .
70
71
72 file_name (optional, str, None)
73 Catalog file name associated with the \ :emphasis:`source\_path`\ .
74
75 This option is ignored when \ :emphasis:`repository\_type`\ is \ :literal:`DELL\_ONLINE`\ .
76
77
78 repository_type (optional, str, None)
79 Type of repository. The supported types are NFS, CIFS, HTTP, HTTPS,and DELL\_ONLINE.
80
81
82 repository_username (optional, str, None)
83 User name of the repository where the catalog is stored.
84
85 This option is mandatory when \ :emphasis:`repository\_type`\ is CIFS.
86
87 This option is ignored when \ :emphasis:`repository\_type`\ is \ :literal:`DELL\_ONLINE`\ .
88
89
90 repository_password (optional, str, None)
91 Password to access the repository.
92
93 This option is mandatory when \ :emphasis:`repository\_type`\ is CIFS.
94
95 This option is ignored when \ :emphasis:`repository\_type`\ is \ :literal:`DELL\_ONLINE`\ .
96
97 \ :literal:`NOTE`\ The module always reports the changed status, when this is provided.
98
99
100 repository_domain (optional, str, None)
101 Domain name of the repository.
102
103 This option is ignored when \ :emphasis:`repository\_type`\ is \ :literal:`DELL\_ONLINE`\ .
104
105
106 check_certificate (optional, bool, False)
107 The certificate warnings are ignored when \ :emphasis:`repository\_type`\ is HTTPS. If \ :literal:`true`\ . If not, certificate warnings are not ignored.
108
109
110 job_wait (optional, bool, True)
111 Provides the option to wait for job completion.
112
113 This option is applicable when \ :emphasis:`state`\ is \ :literal:`present`\ .
114
115
116 job_wait_timeout (optional, int, 600)
117 The maximum wait time of \ :emphasis:`job\_wait`\ in seconds. The job is tracked only for this duration.
118
119 This option is applicable when \ :emphasis:`job\_wait`\ is \ :literal:`true`\ .
120
121
122 hostname (True, str, None)
123 OpenManage Enterprise or OpenManage Enterprise Modular IP address or hostname.
124
125
126 username (False, str, None)
127 OpenManage Enterprise or OpenManage Enterprise Modular username.
128
129 If the username is not provided, then the environment variable \ :envvar:`OME\_USERNAME`\ is used.
130
131 Example: export OME\_USERNAME=username
132
133
134 password (False, str, None)
135 OpenManage Enterprise or OpenManage Enterprise Modular password.
136
137 If the password is not provided, then the environment variable \ :envvar:`OME\_PASSWORD`\ is used.
138
139 Example: export OME\_PASSWORD=password
140
141
142 x_auth_token (False, str, None)
143 Authentication token.
144
145 If the x\_auth\_token is not provided, then the environment variable \ :envvar:`OME\_X\_AUTH\_TOKEN`\ is used.
146
147 Example: export OME\_X\_AUTH\_TOKEN=x\_auth\_token
148
149
150 port (optional, int, 443)
151 OpenManage Enterprise or OpenManage Enterprise Modular HTTPS port.
152
153
154 validate_certs (optional, bool, True)
155 If \ :literal:`false`\ , the SSL certificates will not be validated.
156
157 Configure \ :literal:`false`\ only on personally controlled sites where self-signed certificates are used.
158
159 Prior to collection version \ :literal:`5.0.0`\ , the \ :emphasis:`validate\_certs`\ is \ :literal:`false`\ by default.
160
161
162 ca_path (optional, path, None)
163 The Privacy Enhanced Mail (PEM) file that contains a CA certificate to be used for the validation.
164
165
166 timeout (optional, int, 30)
167 The socket level timeout in seconds.
168
169
170
171
172
173 Notes
174 -----
175
176 .. note::
177 - If \ :emphasis:`repository\_password`\ is provided, then the module always reports the changed status.
178 - Run this module from a system that has direct access to Dell OpenManage Enterprise or OpenManage Enterprise Modular.
179 - This module supports IPv4 and IPv6 addresses.
180 - This module supports \ :literal:`check\_mode`\ .
181
182
183
184
185 Examples
186 --------
187
188 .. code-block:: yaml+jinja
189
190
191 ---
192 - name: Create a catalog from HTTPS repository
193 dellemc.openmanage.ome_firmware_catalog:
194 hostname: "192.168.0.1"
195 username: "username"
196 password: "password"
197 ca_path: "/path/to/ca_cert.pem"
198 catalog_name: "catalog_name"
199 catalog_description: "catalog_description"
200 repository_type: "HTTPS"
201 source: "downloads.dell.com"
202 source_path: "catalog"
203 file_name: "catalog.gz"
204 check_certificate: true
205
206 - name: Create a catalog from HTTP repository
207 dellemc.openmanage.ome_firmware_catalog:
208 hostname: "192.168.0.1"
209 username: "username"
210 password: "password"
211 ca_path: "/path/to/ca_cert.pem"
212 catalog_name: "catalog_name"
213 catalog_description: "catalog_description"
214 repository_type: "HTTP"
215 source: "downloads.dell.com"
216 source_path: "catalog"
217 file_name: "catalog.gz"
218
219 - name: Create a catalog using CIFS share
220 dellemc.openmanage.ome_firmware_catalog:
221 hostname: "192.168.0.1"
222 username: "username"
223 password: "password"
224 ca_path: "/path/to/ca_cert.pem"
225 catalog_name: "catalog_name"
226 catalog_description: "catalog_description"
227 repository_type: "CIFS"
228 source: "192.167.0.1"
229 source_path: "cifs/R940"
230 file_name: "catalog.gz"
231 repository_username: "repository_username"
232 repository_password: "repository_password"
233 repository_domain: "repository_domain"
234
235 - name: Create a catalog using NFS share
236 dellemc.openmanage.ome_firmware_catalog:
237 hostname: "192.168.0.1"
238 username: "username"
239 password: "password"
240 ca_path: "/path/to/ca_cert.pem"
241 catalog_name: "catalog_name"
242 catalog_description: "catalog_description"
243 repository_type: "NFS"
244 source: "192.166.0.2"
245 source_path: "/nfs/R940"
246 file_name: "catalog.xml"
247
248 - name: Create a catalog using repository from Dell.com
249 dellemc.openmanage.ome_firmware_catalog:
250 hostname: "192.168.0.1"
251 username: "username"
252 password: "password"
253 ca_path: "/path/to/ca_cert.pem"
254 catalog_name: "catalog_name"
255 catalog_description: "catalog_description"
256 repository_type: "DELL_ONLINE"
257 check_certificate: true
258
259 - name: Modify a catalog using a repository from CIFS share
260 dellemc.openmanage.ome_firmware_catalog:
261 hostname: "192.168.0.1"
262 username: "username"
263 password: "password"
264 ca_path: "/path/to/ca_cert.pem"
265 catalog_name: "catalog_name"
266 catalog_description: "new catalog_description"
267 repository_type: "CIFS"
268 source: "192.167.0.2"
269 source_path: "cifs/R941"
270 file_name: "catalog1.gz"
271 repository_username: "repository_username"
272 repository_password: "repository_password"
273 repository_domain: "repository_domain"
274
275 - name: Modify a catalog using a repository from Dell.com
276 dellemc.openmanage.ome_firmware_catalog:
277 hostname: "192.168.0.1"
278 username: "username"
279 password: "password"
280 ca_path: "/path/to/ca_cert.pem"
281 catalog_id: 10
282 new_catalog_name: "new_catalog_name"
283 repository_type: "DELL_ONLINE"
284 catalog_description: "catalog_description"
285
286 - name: Delete catalog using catalog name
287 dellemc.openmanage.ome_firmware_catalog:
288 hostname: "192.168.0.1"
289 username: "username"
290 password: "password"
291 ca_path: "/path/to/ca_cert.pem"
292 state: absent
293 catalog_name: ["catalog_name1", "catalog_name2"]
294
295 - name: Delete catalog using catalog id
296 dellemc.openmanage.ome_firmware_catalog:
297 hostname: "192.168.0.1"
298 username: "username"
299 password: "password"
300 ca_path: "/path/to/ca_cert.pem"
301 state: absent
302 catalog_id: [11, 34]
303
304
305
306 Return Values
307 -------------
308
309 msg (always, str, Successfully triggered the job to create a catalog with Task ID : 10094)
310 Overall status of the firmware catalog operation.
311
312
313 catalog_status (When I(state) is C(present), dict, {'AssociatedBaselines': [], 'BaseLocation': None, 'BundlesCount': 0, 'Filename': 'catalog.gz', 'Id': 12, 'LastUpdated': None, 'ManifestIdentifier': None, 'ManifestVersion': None, 'NextUpdate': None, 'PredecessorIdentifier': None, 'ReleaseDate': None, 'ReleaseIdentifier': None, 'Repository': {'CheckCertificate': True, 'Description': 'HTTPS Desc', 'DomainName': None, 'Id': None, 'Name': 'catalog4', 'Password': None, 'RepositoryType': 'HTTPS', 'Source': 'company.com', 'Username': None}, 'Schedule': None, 'SourcePath': 'catalog', 'Status': None, 'TaskId': 10094})
314 Details of the catalog operation.
315
316
317 job_id (When catalog job is in a running state, int, 10123)
318 Job ID of the catalog task.
319
320
321 catalog_id (When I(state) is C(absent), int, 10123)
322 IDs of the deleted catalog.
323
324
325 associated_baselines (When I(state) is C(absent), list, [{'BaselineId': 24, 'BaselineName': 'new'}, {'BaselineId': 25, 'BaselineName': 'c7'}, {'BaselineId': 27, 'BaselineName': 'c4'}])
326 IDs of the baselines associated with catalog.
327
328
329 error_info (on http error, dict, {'error': {'@Message.ExtendedInfo': [{'Message': 'Unable to create or update the catalog because a repository with the same name already exists.', 'Resolution': 'Enter a different name and retry the operation.', 'Severity': 'Critical'}], 'code': 'Base.1.0.GeneralError', 'message': 'A general error has occurred. See ExtendedInfo for more information.'}})
330 Details of the http error.
331
332
333
334
335
336 Status
337 ------
338
339
340
341
342
343 Authors
344 ~~~~~~~
345
346 - Sajna Shetty(@Sajna-Shetty)
347 - Jagadeesh N V(@jagadeeshnv)
348 - Krunal Thakkar(@Krunal-Thakkar)
349