| 1 |
.. _ome_server_interface_profiles_module: |
| 2 |
|
| 3 |
|
| 4 |
ome_server_interface_profiles -- Configure server interface profiles |
| 5 |
==================================================================== |
| 6 |
|
| 7 |
.. contents:: |
| 8 |
:local: |
| 9 |
:depth: 1 |
| 10 |
|
| 11 |
|
| 12 |
Synopsis |
| 13 |
-------- |
| 14 |
|
| 15 |
This module allows to configure server interface profiles on 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 |
device_id (optional, list, None) |
| 31 |
Device id of the Server under chassis fabric. |
| 32 |
|
| 33 |
:emphasis:`device\_id` and :emphasis:`device\_service\_tag` is mutually exclusive. |
| 34 |
|
| 35 |
|
| 36 |
device_service_tag (optional, list, None) |
| 37 |
Service tag of the Server under chassis fabric. |
| 38 |
|
| 39 |
:emphasis:`device\_service\_tag` and :emphasis:`device\_id` is mutually exclusive. |
| 40 |
|
| 41 |
|
| 42 |
nic_teaming (optional, str, None) |
| 43 |
NIC teaming options. |
| 44 |
|
| 45 |
:literal:`NoTeaming` the NICs are not bonded and provide no load balancing or redundancy. |
| 46 |
|
| 47 |
:literal:`LACP` use LACP for NIC teaming. |
| 48 |
|
| 49 |
:literal:`Other` use other technology for NIC teaming. |
| 50 |
|
| 51 |
|
| 52 |
nic_configuration (optional, list, None) |
| 53 |
NIC configuration for the Servers to be applied. |
| 54 |
|
| 55 |
|
| 56 |
nic_identifier (True, str, None) |
| 57 |
ID of the NIC or port number. |
| 58 |
|
| 59 |
:literal:`Note` This will not be validated. |
| 60 |
|
| 61 |
|
| 62 |
team (optional, bool, None) |
| 63 |
Group two or more ports. The ports must be connected to the same pair of Ethernet switches. |
| 64 |
|
| 65 |
:emphasis:`team` is applicable only if :emphasis:`nic\_teaming` is :literal:`LACP`. |
| 66 |
|
| 67 |
|
| 68 |
untagged_network (optional, int, None) |
| 69 |
The maximum or minimum VLAN id of the network to be untagged. |
| 70 |
|
| 71 |
The :emphasis:`untagged\_network` can be retrieved using the :ref:`dellemc.openmanage.ome\_network\_vlan\_info <ansible_collections.dellemc.openmanage.ome_network_vlan_info_module>` |
| 72 |
|
| 73 |
If :emphasis:`untagged\_network` needs to be unset this needs to be sent as :literal:`0` |
| 74 |
|
| 75 |
:literal:`Note` The network cannot be added as a untagged network if it is already assigned to a tagged network. |
| 76 |
|
| 77 |
|
| 78 |
tagged_networks (optional, dict, None) |
| 79 |
List of tagged networks |
| 80 |
|
| 81 |
Network cannot be added as a tagged network if it is already assigned to untagged network |
| 82 |
|
| 83 |
|
| 84 |
state (optional, str, present) |
| 85 |
Indicates if a list of networks needs to be added or deleted. |
| 86 |
|
| 87 |
:literal:`present` to add the network to the tagged list |
| 88 |
|
| 89 |
:literal:`absent` to delete the Network from the tagged list |
| 90 |
|
| 91 |
|
| 92 |
names (True, list, None) |
| 93 |
List of network name to be marked as tagged networks |
| 94 |
|
| 95 |
The :emphasis:`names` can be retrieved using the :ref:`dellemc.openmanage.ome\_network\_vlan\_info <ansible_collections.dellemc.openmanage.ome_network_vlan_info_module>` |
| 96 |
|
| 97 |
|
| 98 |
|
| 99 |
|
| 100 |
job_wait (optional, bool, True) |
| 101 |
Provides the option to wait for job completion. |
| 102 |
|
| 103 |
|
| 104 |
job_wait_timeout (optional, int, 120) |
| 105 |
The maximum wait time of :emphasis:`job\_wait` in seconds. The job is tracked only for this duration. |
| 106 |
|
| 107 |
This option is applicable when :emphasis:`job\_wait` is :literal:`true`. |
| 108 |
|
| 109 |
|
| 110 |
hostname (True, str, None) |
| 111 |
OpenManage Enterprise Modular IP address or hostname. |
| 112 |
|
| 113 |
|
| 114 |
username (False, str, None) |
| 115 |
OpenManage Enterprise Modular username. |
| 116 |
|
| 117 |
If the username is not provided, then the environment variable :envvar:`OME\_USERNAME` is used. |
| 118 |
|
| 119 |
Example: export OME\_USERNAME=username |
| 120 |
|
| 121 |
|
| 122 |
password (False, str, None) |
| 123 |
OpenManage Enterprise Modular password. |
| 124 |
|
| 125 |
If the password is not provided, then the environment variable :envvar:`OME\_PASSWORD` is used. |
| 126 |
|
| 127 |
Example: export OME\_PASSWORD=password |
| 128 |
|
| 129 |
|
| 130 |
x_auth_token (False, str, None) |
| 131 |
Authentication token. |
| 132 |
|
| 133 |
If the x\_auth\_token is not provided, then the environment variable :envvar:`OME\_X\_AUTH\_TOKEN` is used. |
| 134 |
|
| 135 |
Example: export OME\_X\_AUTH\_TOKEN=x\_auth\_token |
| 136 |
|
| 137 |
|
| 138 |
port (optional, int, 443) |
| 139 |
OpenManage Enterprise Modular HTTPS port. |
| 140 |
|
| 141 |
|
| 142 |
validate_certs (optional, bool, True) |
| 143 |
If :literal:`false`\ , the SSL certificates will not be validated. |
| 144 |
|
| 145 |
Configure :literal:`false` only on personally controlled sites where self-signed certificates are used. |
| 146 |
|
| 147 |
Prior to collection version :literal:`5.0.0`\ , the :emphasis:`validate\_certs` is :literal:`false` by default. |
| 148 |
|
| 149 |
|
| 150 |
ca_path (optional, path, None) |
| 151 |
The Privacy Enhanced Mail (PEM) file that contains a CA certificate to be used for the validation. |
| 152 |
|
| 153 |
|
| 154 |
timeout (optional, int, 30) |
| 155 |
The socket level timeout in seconds. |
| 156 |
|
| 157 |
|
| 158 |
|
| 159 |
|
| 160 |
|
| 161 |
Notes |
| 162 |
----- |
| 163 |
|
| 164 |
.. note:: |
| 165 |
- This module supports :literal:`check\_mode`. |
| 166 |
- Run this module from a system that has direct access to Dell OpenManage Enterprise Modular. |
| 167 |
|
| 168 |
|
| 169 |
|
| 170 |
|
| 171 |
Examples |
| 172 |
-------- |
| 173 |
|
| 174 |
.. code-block:: yaml+jinja |
| 175 |
|
| 176 |
|
| 177 |
--- |
| 178 |
- name: Modify Server Interface Profile for the server using the service tag |
| 179 |
dellemc.openmanage.ome_server_interface_profiles: |
| 180 |
hostname: "192.168.0.1" |
| 181 |
username: "username" |
| 182 |
password: "password" |
| 183 |
ca_path: "/path/to/ca_cert.pem" |
| 184 |
device_service_tag: |
| 185 |
- SVCTAG1 |
| 186 |
- SVCTAG2 |
| 187 |
nic_teaming: LACP |
| 188 |
nic_configuration: |
| 189 |
- nic_identifier: NIC.Mezzanine.1A-1-1 |
| 190 |
team: false |
| 191 |
untagged_network: 2 |
| 192 |
tagged_networks: |
| 193 |
names: |
| 194 |
- vlan1 |
| 195 |
- nic_identifier: NIC.Mezzanine.1A-2-1 |
| 196 |
team: true |
| 197 |
untagged_network: 3 |
| 198 |
tagged_networks: |
| 199 |
names: |
| 200 |
- range120-125 |
| 201 |
|
| 202 |
- name: Modify Server Interface Profile for the server using the device id |
| 203 |
dellemc.openmanage.ome_server_interface_profiles: |
| 204 |
hostname: "192.168.0.1" |
| 205 |
username: "username" |
| 206 |
password: "password" |
| 207 |
ca_path: "/path/to/ca_cert.pem" |
| 208 |
device_id: |
| 209 |
- 34523 |
| 210 |
- 48999 |
| 211 |
nic_teaming: NoTeaming |
| 212 |
nic_configuration: |
| 213 |
- nic_identifier: NIC.Mezzanine.1A-1-1 |
| 214 |
team: false |
| 215 |
untagged_network: 2 |
| 216 |
tagged_networks: |
| 217 |
names: |
| 218 |
- vlan2 |
| 219 |
- nic_identifier: NIC.Mezzanine.1A-2-1 |
| 220 |
team: true |
| 221 |
untagged_network: 3 |
| 222 |
tagged_networks: |
| 223 |
names: |
| 224 |
- range120-125 |
| 225 |
|
| 226 |
|
| 227 |
|
| 228 |
Return Values |
| 229 |
------------- |
| 230 |
|
| 231 |
msg (always, str, Successfully triggered apply server profiles job.) |
| 232 |
Status of the overall server interface operation. |
| 233 |
|
| 234 |
|
| 235 |
job_id (on applying the Interface profiles, int, 14123) |
| 236 |
Job ID of the task to apply the server interface profiles. |
| 237 |
|
| 238 |
|
| 239 |
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.'}]}}) |
| 240 |
Details of the HTTP Error. |
| 241 |
|
| 242 |
|
| 243 |
|
| 244 |
|
| 245 |
|
| 246 |
Status |
| 247 |
------ |
| 248 |
|
| 249 |
|
| 250 |
|
| 251 |
|
| 252 |
|
| 253 |
Authors |
| 254 |
~~~~~~~ |
| 255 |
|
| 256 |
- Jagadeesh N V (@jagadeeshnv) |
| 257 |
- Akash Shendge (@shenda1) |
| 258 |
|