| 1 |
.. _omevv_baseline_profile_info_module: |
| 2 |
|
| 3 |
|
| 4 |
omevv_baseline_profile_info -- Retrieve OMEVV baseline profile information. |
| 5 |
=========================================================================== |
| 6 |
|
| 7 |
.. contents:: |
| 8 |
:local: |
| 9 |
:depth: 1 |
| 10 |
|
| 11 |
|
| 12 |
Synopsis |
| 13 |
-------- |
| 14 |
|
| 15 |
This module allows you to retrieve all or the specific OMEVV baseline profile information. |
| 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 |
name (optional, str, None) |
| 31 |
Name of the baseline profile. |
| 32 |
|
| 33 |
If :emphasis:`name` is provided, the module retrieves only specified baseline profile information. |
| 34 |
|
| 35 |
|
| 36 |
hostname (True, str, None) |
| 37 |
IP address or hostname of the OpenManage Enterprise Modular. |
| 38 |
|
| 39 |
|
| 40 |
vcenter_username (False, str, None) |
| 41 |
Username for OpenManage Enterprise Integration for VMware vCenter (OMEVV). |
| 42 |
|
| 43 |
If the username is not provided, then the environment variable :envvar:`OMEVV\_VCENTER\_USERNAME` is used. |
| 44 |
|
| 45 |
Example: export OMEVV\_VCENTER\_USERNAME=username |
| 46 |
|
| 47 |
|
| 48 |
vcenter_password (False, str, None) |
| 49 |
Password for OpenManage Enterprise Integration for VMware vCenter (OMEVV). |
| 50 |
|
| 51 |
If the password is not provided, then the environment variable :envvar:`OMEVV\_VCENTER\_PASSWORD` is used. |
| 52 |
|
| 53 |
Example: export OMEVV\_VCENTER\_PASSWORD=password |
| 54 |
|
| 55 |
|
| 56 |
vcenter_uuid (False, str, None) |
| 57 |
Universally Unique Identifier (UUID) of vCenter. |
| 58 |
|
| 59 |
vCenter UUID details can be retrieved using :ref:`dellemc.openmanage.omevv\_vcenter\_info <ansible_collections.dellemc.openmanage.omevv_vcenter_info_module>` module. |
| 60 |
|
| 61 |
If UUID is not provided, then the environment variable :envvar:`OMEVV\_VCENTER\_UUID` is used. |
| 62 |
|
| 63 |
Example: export OMEVV\_VCENTER\_UUID=uuid |
| 64 |
|
| 65 |
|
| 66 |
port (optional, int, 443) |
| 67 |
OpenManage Enterprise HTTPS port. |
| 68 |
|
| 69 |
|
| 70 |
validate_certs (optional, bool, True) |
| 71 |
Whether to check SSL certificate. - If :literal:`true`\ , the SSL certificates will be validated. - If :literal:`false`\ , the SSL certificates will not be validated. |
| 72 |
|
| 73 |
|
| 74 |
ca_path (optional, path, None) |
| 75 |
The Privacy Enhanced Mail (PEM) file that contains a CA certificate to be used for the validation. |
| 76 |
|
| 77 |
|
| 78 |
timeout (optional, int, 30) |
| 79 |
The socket level timeout in seconds. |
| 80 |
|
| 81 |
|
| 82 |
|
| 83 |
|
| 84 |
|
| 85 |
Notes |
| 86 |
----- |
| 87 |
|
| 88 |
.. note:: |
| 89 |
- Run this module from a system that has direct access to Dell OpenManage Enterprise. |
| 90 |
|
| 91 |
|
| 92 |
|
| 93 |
|
| 94 |
Examples |
| 95 |
-------- |
| 96 |
|
| 97 |
.. code-block:: yaml+jinja |
| 98 |
|
| 99 |
|
| 100 |
--- |
| 101 |
- name: Retrieve all baseline profile information. |
| 102 |
dellemc.openmanage.omevv_baseline_profile_info: |
| 103 |
hostname: "192.168.0.1" |
| 104 |
vcenter_uuid: "xxxxxx" |
| 105 |
vcenter_username: "username" |
| 106 |
vcenter_password: "password" |
| 107 |
ca_path: "path/to/ca_file" |
| 108 |
|
| 109 |
- name: Retrieve specific baseline profile information using profile name. |
| 110 |
dellemc.openmanage.omevv_baseline_profile_info: |
| 111 |
hostname: "192.168.0.1" |
| 112 |
vcenter_uuid: "xxxxxx" |
| 113 |
vcenter_username: "username" |
| 114 |
vcenter_password: "password" |
| 115 |
ca_path: "path/to/ca_file" |
| 116 |
name: profile-1 |
| 117 |
|
| 118 |
|
| 119 |
|
| 120 |
Return Values |
| 121 |
------------- |
| 122 |
|
| 123 |
msg (always, str, Successfully retrieved the baseline profile information.) |
| 124 |
Status of the baseline profile information for the retrieve operation. |
| 125 |
|
| 126 |
|
| 127 |
baseline_profile_info (success, list, [{'id': 1000, 'name': 'Baseline-1', 'description': 'Baseline-1 desc', 'consoleId': 'xxxxx', 'consoleAddress': 'xx.xx.xx.xx', 'firmwareRepoId': 1000, 'firmwareRepoName': 'Dell Default Catalog', 'configurationRepoId': None, 'configurationRepoName': None, 'driverRepoId': None, 'driverRepoName': None, 'driftJobId': 1743, 'driftJobName': 'BP-Baseline-1-Host-Firmware-Drift-Detection', 'dateCreated': '2024-10-16T10:25:29.786Z', 'dateModified': None, 'lastmodifiedBy': '[email protected]', 'version': '1.0.0-0', 'lastSuccessfulUpdatedTime': '2024-10-16T10:27:35.212Z', 'clusterGroups': [], 'datacenter_standAloneHostsGroups': [], 'baselineType': None, 'status': 'SUCCESSFUL'}, {'id': 1001, 'name': 'Baseline - 2', 'description': 'Baseline - 2 description', 'consoleId': 'xxxxx', 'consoleAddress': 'xx.xx.xx.xx', 'firmwareRepoId': 1000, 'firmwareRepoName': 'Dell Default Catalog', 'configurationRepoId': None, 'configurationRepoName': None, 'driverRepoId': None, 'driverRepoName': None, 'driftJobId': 1812, 'driftJobName': 'BP-Baseline - 2-Host-Firmware-Drift-Detection', 'dateCreated': '2024-10-16T12:38:56.581Z', 'dateModified': None, 'lastmodifiedBy': '[email protected]', 'version': '1.0.0-0', 'lastSuccessfulUpdatedTime': '2024-10-16T12:41:02.641Z', 'clusterGroups': [], 'datacenter_standAloneHostsGroups': [{'associated_datacenterID': 'datacenter-1001', 'associated_datacenterName': 'Standalone Hosts-Test-DC', 'omevv_groupID': 1002}], 'baselineType': 'DATACENTER_NONCLUSTER', 'status': 'SUCCESSFUL'}]) |
| 128 |
Information on the vCenter. |
| 129 |
|
| 130 |
|
| 131 |
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.'}]}}) |
| 132 |
Details of the HTTP Error. |
| 133 |
|
| 134 |
|
| 135 |
|
| 136 |
|
| 137 |
|
| 138 |
Status |
| 139 |
------ |
| 140 |
|
| 141 |
|
| 142 |
|
| 143 |
|
| 144 |
|
| 145 |
Authors |
| 146 |
~~~~~~~ |
| 147 |
|
| 148 |
- Kritika Bhateja (@Kritika-Bhateja-03) |
| 149 |
|