| 1 |
.. _ome_identity_pool_module: |
| 2 |
|
| 3 |
|
| 4 |
ome_identity_pool -- Manages identity pool settings on OpenManage Enterprise |
| 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 single identity pool on OpenManage Enterprise. |
| 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`\ modifies an existing identity pool. If the provided I (pool\_name) does not exist, it creates an identity pool. - \ :literal:`absent`\ deletes an existing identity pool. |
| 32 |
|
| 33 |
|
| 34 |
pool_name (True, str, None) |
| 35 |
This option is mandatory for \ :emphasis:`state`\ when creating, modifying and deleting an identity pool. |
| 36 |
|
| 37 |
|
| 38 |
new_pool_name (optional, str, None) |
| 39 |
After creating an identity pool, \ :emphasis:`pool\_name`\ can be changed to \ :emphasis:`new\_pool\_name`\ . |
| 40 |
|
| 41 |
This option is ignored when creating an identity pool. |
| 42 |
|
| 43 |
|
| 44 |
pool_description (optional, str, None) |
| 45 |
Description of the identity pool. |
| 46 |
|
| 47 |
|
| 48 |
ethernet_settings (optional, dict, None) |
| 49 |
Applicable for creating and modifying an identity pool using Ethernet settings. |
| 50 |
|
| 51 |
\ :emphasis:`starting\_mac\_address`\ and \ :emphasis:`identity\_count`\ are required to create an identity pool. |
| 52 |
|
| 53 |
|
| 54 |
starting_mac_address (optional, str, None) |
| 55 |
Starting MAC address of the ethernet setting. |
| 56 |
|
| 57 |
|
| 58 |
identity_count (optional, int, None) |
| 59 |
Number of MAC addresses. |
| 60 |
|
| 61 |
|
| 62 |
|
| 63 |
fcoe_settings (optional, dict, None) |
| 64 |
Applicable for creating and modifying an identity pool using FCoE settings. |
| 65 |
|
| 66 |
\ :emphasis:`starting\_mac\_address`\ and \ :emphasis:`identity\_count`\ are required to create an identity pool. |
| 67 |
|
| 68 |
|
| 69 |
starting_mac_address (optional, str, None) |
| 70 |
Starting MAC Address of the FCoE setting. |
| 71 |
|
| 72 |
|
| 73 |
identity_count (optional, int, None) |
| 74 |
Number of MAC addresses. |
| 75 |
|
| 76 |
|
| 77 |
|
| 78 |
iscsi_settings (optional, dict, None) |
| 79 |
Applicable for creating and modifying an identity pool using ISCSI settings. |
| 80 |
|
| 81 |
\ :emphasis:`starting\_mac\_address`\ , \ :emphasis:`identity\_count`\ , \ :emphasis:`iqn\_prefix`\ , \ :emphasis:`ip\_range`\ and \ :emphasis:`subnet\_mask`\ are required to create an identity pool. |
| 82 |
|
| 83 |
|
| 84 |
starting_mac_address (optional, str, None) |
| 85 |
Starting MAC address of the iSCSI setting.This is required option for iSCSI setting. |
| 86 |
|
| 87 |
|
| 88 |
identity_count (optional, int, None) |
| 89 |
Number of MAC addresses. |
| 90 |
|
| 91 |
|
| 92 |
initiator_config (optional, dict, None) |
| 93 |
Applicable for creating and modifying an identity pool using iSCSI Initiator settings. |
| 94 |
|
| 95 |
|
| 96 |
iqn_prefix (optional, str, None) |
| 97 |
IQN prefix addresses. |
| 98 |
|
| 99 |
|
| 100 |
|
| 101 |
initiator_ip_pool_settings (optional, dict, None) |
| 102 |
Applicable for creating and modifying an identity pool using ISCSI Initiator IP pool settings. |
| 103 |
|
| 104 |
|
| 105 |
ip_range (optional, str, None) |
| 106 |
Range of non-multicast IP addresses. |
| 107 |
|
| 108 |
|
| 109 |
subnet_mask (optional, str, None) |
| 110 |
Subnet mask for \ :emphasis:`ip\_range`\ . |
| 111 |
|
| 112 |
|
| 113 |
gateway (optional, str, None) |
| 114 |
IP address of gateway. |
| 115 |
|
| 116 |
|
| 117 |
primary_dns_server (optional, str, None) |
| 118 |
IP address of the primary DNS server. |
| 119 |
|
| 120 |
|
| 121 |
secondary_dns_server (optional, str, None) |
| 122 |
IP address of the secondary DNS server. |
| 123 |
|
| 124 |
|
| 125 |
|
| 126 |
|
| 127 |
fc_settings (optional, dict, None) |
| 128 |
Applicable for creating and modifying an identity pool using fibre channel(FC) settings. |
| 129 |
|
| 130 |
This option allows OpenManage Enterprise to generate a Worldwide port name (WWPN) and Worldwide node name (WWNN) address. |
| 131 |
|
| 132 |
The value 0x2001 is beginning to the starting address for the generation of a WWPN, and 0x2000 for a WWNN. |
| 133 |
|
| 134 |
\ :emphasis:`starting\_address`\ and \ :emphasis:`identity\_count`\ are required to create an identity pool. |
| 135 |
|
| 136 |
|
| 137 |
starting_address (optional, str, None) |
| 138 |
Starting MAC Address of FC setting.\ :emphasis:`starting\_address`\ is required to option to create FC settings. |
| 139 |
|
| 140 |
|
| 141 |
identity_count (optional, int, None) |
| 142 |
Number of MAC addresses.\ :emphasis:`identity\_count`\ is required to option to create FC settings. |
| 143 |
|
| 144 |
|
| 145 |
|
| 146 |
hostname (True, str, None) |
| 147 |
OpenManage Enterprise or OpenManage Enterprise Modular IP address or hostname. |
| 148 |
|
| 149 |
|
| 150 |
username (False, str, None) |
| 151 |
OpenManage Enterprise or OpenManage Enterprise Modular username. |
| 152 |
|
| 153 |
If the username is not provided, then the environment variable \ :envvar:`OME\_USERNAME`\ is used. |
| 154 |
|
| 155 |
Example: export OME\_USERNAME=username |
| 156 |
|
| 157 |
|
| 158 |
password (False, str, None) |
| 159 |
OpenManage Enterprise or OpenManage Enterprise Modular password. |
| 160 |
|
| 161 |
If the password is not provided, then the environment variable \ :envvar:`OME\_PASSWORD`\ is used. |
| 162 |
|
| 163 |
Example: export OME\_PASSWORD=password |
| 164 |
|
| 165 |
|
| 166 |
x_auth_token (False, str, None) |
| 167 |
Authentication token. |
| 168 |
|
| 169 |
If the x\_auth\_token is not provided, then the environment variable \ :envvar:`OME\_X\_AUTH\_TOKEN`\ is used. |
| 170 |
|
| 171 |
Example: export OME\_X\_AUTH\_TOKEN=x\_auth\_token |
| 172 |
|
| 173 |
|
| 174 |
port (optional, int, 443) |
| 175 |
OpenManage Enterprise or OpenManage Enterprise Modular HTTPS port. |
| 176 |
|
| 177 |
|
| 178 |
validate_certs (optional, bool, True) |
| 179 |
If \ :literal:`false`\ , the SSL certificates will not be validated. |
| 180 |
|
| 181 |
Configure \ :literal:`false`\ only on personally controlled sites where self-signed certificates are used. |
| 182 |
|
| 183 |
Prior to collection version \ :literal:`5.0.0`\ , the \ :emphasis:`validate\_certs`\ is \ :literal:`false`\ by default. |
| 184 |
|
| 185 |
|
| 186 |
ca_path (optional, path, None) |
| 187 |
The Privacy Enhanced Mail (PEM) file that contains a CA certificate to be used for the validation. |
| 188 |
|
| 189 |
|
| 190 |
timeout (optional, int, 30) |
| 191 |
The socket level timeout in seconds. |
| 192 |
|
| 193 |
|
| 194 |
|
| 195 |
|
| 196 |
|
| 197 |
Notes |
| 198 |
----- |
| 199 |
|
| 200 |
.. note:: |
| 201 |
- Run this module from a system that has direct access to Dell OpenManage Enterprise. |
| 202 |
- This module supports \ :literal:`check\_mode`\ . |
| 203 |
|
| 204 |
|
| 205 |
|
| 206 |
|
| 207 |
Examples |
| 208 |
-------- |
| 209 |
|
| 210 |
.. code-block:: yaml+jinja |
| 211 |
|
| 212 |
|
| 213 |
--- |
| 214 |
- name: Create an identity pool using ethernet, FCoE, iSCSI and FC settings |
| 215 |
dellemc.openmanage.ome_identity_pool: |
| 216 |
hostname: "192.168.0.1" |
| 217 |
username: "username" |
| 218 |
password: "password" |
| 219 |
ca_path: "/path/to/ca_cert.pem" |
| 220 |
state: present |
| 221 |
pool_name: "pool1" |
| 222 |
pool_description: "Identity pool with Ethernet, FCoE, iSCSI and FC settings" |
| 223 |
ethernet_settings: |
| 224 |
starting_mac_address: "50:50:50:50:50:00" |
| 225 |
identity_count: 60 |
| 226 |
fcoe_settings: |
| 227 |
starting_mac_address: "70:70:70:70:70:00" |
| 228 |
identity_count: 75 |
| 229 |
iscsi_settings: |
| 230 |
starting_mac_address: "60:60:60:60:60:00" |
| 231 |
identity_count: 30 |
| 232 |
initiator_config: |
| 233 |
iqn_prefix: "iqn.myprefix." |
| 234 |
initiator_ip_pool_settings: |
| 235 |
ip_range: "10.33.0.1-10.33.0.255" |
| 236 |
subnet_mask: "255.255.255.0" |
| 237 |
gateway: "192.168.4.1" |
| 238 |
primary_dns_server: "10.8.8.8" |
| 239 |
secondary_dns_server: "8.8.8.8" |
| 240 |
fc_settings: |
| 241 |
starting_address: "30:30:30:30:30:00" |
| 242 |
identity_count: 45 |
| 243 |
|
| 244 |
- name: Create an identity pool using only ethernet settings |
| 245 |
dellemc.openmanage.ome_identity_pool: |
| 246 |
hostname: "192.168.0.1" |
| 247 |
username: "username" |
| 248 |
password: "password" |
| 249 |
ca_path: "/path/to/ca_cert.pem" |
| 250 |
pool_name: "pool2" |
| 251 |
pool_description: "create identity pool with ethernet" |
| 252 |
ethernet_settings: |
| 253 |
starting_mac_address: "aa-bb-cc-dd-ee-aa" |
| 254 |
identity_count: 80 |
| 255 |
|
| 256 |
- name: Modify an identity pool |
| 257 |
dellemc.openmanage.ome_identity_pool: |
| 258 |
hostname: "192.168.0.1" |
| 259 |
username: "username" |
| 260 |
password: "password" |
| 261 |
ca_path: "/path/to/ca_cert.pem" |
| 262 |
pool_name: "pool2" |
| 263 |
new_pool_name: "pool3" |
| 264 |
pool_description: "modifying identity pool with ethernet and fcoe settings" |
| 265 |
ethernet_settings: |
| 266 |
starting_mac_address: "90-90-90-90-90-90" |
| 267 |
identity_count: 61 |
| 268 |
fcoe_settings: |
| 269 |
starting_mac_address: "aabb.ccdd.5050" |
| 270 |
identity_count: 77 |
| 271 |
|
| 272 |
- name: Modify an identity pool using iSCSI and FC settings |
| 273 |
dellemc.openmanage.ome_identity_pool: |
| 274 |
hostname: "{{hostname}}" |
| 275 |
username: "{{username}}" |
| 276 |
password: "{{password}}" |
| 277 |
ca_path: "/path/to/ca_cert.pem" |
| 278 |
pool_name: "pool_new" |
| 279 |
new_pool_name: "pool_new2" |
| 280 |
pool_description: "modifying identity pool with iscsi and fc settings" |
| 281 |
iscsi_settings: |
| 282 |
identity_count: 99 |
| 283 |
initiator_config: |
| 284 |
iqn_prefix: "iqn1.myprefix2." |
| 285 |
initiator_ip_pool_settings: |
| 286 |
gateway: "192.168.4.5" |
| 287 |
fc_settings: |
| 288 |
starting_address: "10:10:10:10:10:10" |
| 289 |
identity_count: 98 |
| 290 |
|
| 291 |
- name: Delete an identity pool |
| 292 |
dellemc.openmanage.ome_identity_pool: |
| 293 |
hostname: "192.168.0.1" |
| 294 |
username: "username" |
| 295 |
password: "password" |
| 296 |
ca_path: "/path/to/ca_cert.pem" |
| 297 |
state: "absent" |
| 298 |
pool_name: "pool2" |
| 299 |
|
| 300 |
|
| 301 |
|
| 302 |
Return Values |
| 303 |
------------- |
| 304 |
|
| 305 |
msg (always, str, Successfully created an identity pool.) |
| 306 |
Overall status of the identity pool operation. |
| 307 |
|
| 308 |
|
| 309 |
pool_status (success, dict, {'Id': 29, 'IsSuccessful': True, 'Issues': []}) |
| 310 |
Details of the user operation, when \ :emphasis:`state`\ is \ :literal:`present`\ . |
| 311 |
|
| 312 |
|
| 313 |
error_info (on HTTP error, dict, {'error': {'@Message.ExtendedInfo': [{'Message': 'Unable to process the request because an error occurred: Ethernet-MAC Range overlap found (in this Identity Pool or in a different one) .', 'MessageArgs': ['Ethernet-MAC Range overlap found (in this Identity Pool or in a different one)"'], 'MessageId': 'CGEN6001', 'RelatedProperties': [], 'Resolution': 'Retry the operation. If the issue persists, contact your system administrator.', 'Severity': 'Critical'}], 'code': 'Base.1.0.GeneralError', 'message': 'A general error has occurred. See ExtendedInfo for more information.'}}) |
| 314 |
Details of the HTTP Error. |
| 315 |
|
| 316 |
|
| 317 |
|
| 318 |
|
| 319 |
|
| 320 |
Status |
| 321 |
------ |
| 322 |
|
| 323 |
|
| 324 |
|
| 325 |
|
| 326 |
|
| 327 |
Authors |
| 328 |
~~~~~~~ |
| 329 |
|
| 330 |
- Sajna Shetty(@Sajna-Shetty) |
| 331 |
- Deepak Joshi(@Dell-Deepak-Joshi)) |
| 332 |
|