| 1 |
.. _ome_device_quick_deploy_module: |
| 2 |
|
| 3 |
|
| 4 |
ome_device_quick_deploy -- Configure Quick Deploy settings on OpenManage Enterprise Modular. |
| 5 |
============================================================================================ |
| 6 |
|
| 7 |
.. contents:: |
| 8 |
:local: |
| 9 |
:depth: 1 |
| 10 |
|
| 11 |
|
| 12 |
Synopsis |
| 13 |
-------- |
| 14 |
|
| 15 |
This module allows to configure the Quick Deploy settings of the server or IOM 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, int, None) |
| 31 |
The ID of the chassis for which the Quick Deploy settings to be deployed. |
| 32 |
|
| 33 |
If the device ID is not specified, this module updates the Quick Deploy settings for the \ :emphasis:`hostname`\ . |
| 34 |
|
| 35 |
\ :emphasis:`device\_id`\ is mutually exclusive with \ :emphasis:`device\_service\_tag`\ . |
| 36 |
|
| 37 |
|
| 38 |
device_service_tag (optional, str, None) |
| 39 |
The service tag of the chassis for which the Quick Deploy settings to be deployed. |
| 40 |
|
| 41 |
If the device service tag is not specified, this module updates the Quick Deploy settings for the \ :emphasis:`hostname`\ . |
| 42 |
|
| 43 |
\ :emphasis:`device\_service\_tag`\ is mutually exclusive with \ :emphasis:`device\_id`\ . |
| 44 |
|
| 45 |
|
| 46 |
setting_type (True, str, None) |
| 47 |
The type of the Quick Deploy settings to be applied. |
| 48 |
|
| 49 |
\ :literal:`ServerQuickDeploy`\ to apply the server Quick Deploy settings. |
| 50 |
|
| 51 |
\ :literal:`IOMQuickDeploy`\ to apply the IOM Quick Deploy settings. |
| 52 |
|
| 53 |
|
| 54 |
job_wait (optional, bool, True) |
| 55 |
Determines whether to wait for the job completion or not. |
| 56 |
|
| 57 |
|
| 58 |
job_wait_timeout (optional, int, 120) |
| 59 |
The maximum wait time of \ :emphasis:`job\_wait`\ in seconds. The job is tracked only for this duration. |
| 60 |
|
| 61 |
This option is applicable when \ :emphasis:`job\_wait`\ is \ :literal:`true`\ . |
| 62 |
|
| 63 |
|
| 64 |
quick_deploy_options (True, dict, None) |
| 65 |
The Quick Deploy settings for server and IOM quick deploy. |
| 66 |
|
| 67 |
|
| 68 |
password (optional, str, None) |
| 69 |
The password to login to the server or IOM. |
| 70 |
|
| 71 |
The module will always report change when \ :emphasis:`password`\ option is added. |
| 72 |
|
| 73 |
|
| 74 |
ipv4_enabled (optional, bool, None) |
| 75 |
Enables or disables the IPv4 network. |
| 76 |
|
| 77 |
|
| 78 |
ipv4_network_type (optional, str, None) |
| 79 |
IPv4 network type. |
| 80 |
|
| 81 |
\ :emphasis:`ipv4\_network\_type`\ is required if \ :emphasis:`ipv4\_enabled`\ is \ :literal:`true`\ . |
| 82 |
|
| 83 |
\ :literal:`Static`\ to configure the static IP settings. |
| 84 |
|
| 85 |
\ :literal:`DHCP`\ to configure the Dynamic IP settings. |
| 86 |
|
| 87 |
|
| 88 |
ipv4_subnet_mask (optional, str, None) |
| 89 |
IPv4 subnet mask. |
| 90 |
|
| 91 |
\ :emphasis:`ipv4\_subnet\_mask`\ is required if \ :emphasis:`ipv4\_network\_type`\ is \ :literal:`Static`\ . |
| 92 |
|
| 93 |
|
| 94 |
ipv4_gateway (optional, str, None) |
| 95 |
IPv4 gateway. |
| 96 |
|
| 97 |
\ :emphasis:`ipv4\_gateway`\ is required if \ :emphasis:`ipv4\_network\_type`\ is \ :literal:`Static`\ . |
| 98 |
|
| 99 |
|
| 100 |
ipv6_enabled (optional, bool, None) |
| 101 |
Enables or disables the IPv6 network. |
| 102 |
|
| 103 |
|
| 104 |
ipv6_network_type (optional, str, None) |
| 105 |
IPv6 network type. |
| 106 |
|
| 107 |
\ :emphasis:`ipv6\_network\_type`\ is required if \ :emphasis:`ipv6\_enabled`\ is \ :literal:`true`\ . |
| 108 |
|
| 109 |
\ :literal:`Static`\ to configure the static IP settings. |
| 110 |
|
| 111 |
\ :literal:`DHCP`\ to configure the Dynamic IP settings. |
| 112 |
|
| 113 |
|
| 114 |
ipv6_prefix_length (optional, int, None) |
| 115 |
IPV6 prefix length. |
| 116 |
|
| 117 |
\ :emphasis:`ipv6\_prefix\_length`\ is required if \ :emphasis:`ipv6\_network\_type`\ is \ :literal:`Static`\ . |
| 118 |
|
| 119 |
|
| 120 |
ipv6_gateway (optional, str, None) |
| 121 |
IPv6 gateway. |
| 122 |
|
| 123 |
\ :emphasis:`ipv6\_gateway`\ is required if \ :emphasis:`ipv6\_network\_type`\ is \ :literal:`Static`\ . |
| 124 |
|
| 125 |
|
| 126 |
slots (optional, list, None) |
| 127 |
The slot configuration for the server or IOM. |
| 128 |
|
| 129 |
|
| 130 |
slot_id (True, int, None) |
| 131 |
The ID of the slot. |
| 132 |
|
| 133 |
|
| 134 |
slot_ipv4_address (optional, str, None) |
| 135 |
The IPv4 address of the slot. |
| 136 |
|
| 137 |
|
| 138 |
slot_ipv6_address (optional, str, None) |
| 139 |
The IPv6 address of the slot. |
| 140 |
|
| 141 |
|
| 142 |
vlan_id (optional, int, None) |
| 143 |
The ID of the VLAN. |
| 144 |
|
| 145 |
|
| 146 |
|
| 147 |
|
| 148 |
hostname (True, str, None) |
| 149 |
OpenManage Enterprise Modular IP address or hostname. |
| 150 |
|
| 151 |
|
| 152 |
username (False, str, None) |
| 153 |
OpenManage Enterprise Modular username. |
| 154 |
|
| 155 |
If the username is not provided, then the environment variable \ :envvar:`OME\_USERNAME`\ is used. |
| 156 |
|
| 157 |
Example: export OME\_USERNAME=username |
| 158 |
|
| 159 |
|
| 160 |
password (False, str, None) |
| 161 |
OpenManage Enterprise Modular password. |
| 162 |
|
| 163 |
If the password is not provided, then the environment variable \ :envvar:`OME\_PASSWORD`\ is used. |
| 164 |
|
| 165 |
Example: export OME\_PASSWORD=password |
| 166 |
|
| 167 |
|
| 168 |
x_auth_token (False, str, None) |
| 169 |
Authentication token. |
| 170 |
|
| 171 |
If the x\_auth\_token is not provided, then the environment variable \ :envvar:`OME\_X\_AUTH\_TOKEN`\ is used. |
| 172 |
|
| 173 |
Example: export OME\_X\_AUTH\_TOKEN=x\_auth\_token |
| 174 |
|
| 175 |
|
| 176 |
port (optional, int, 443) |
| 177 |
OpenManage Enterprise Modular HTTPS port. |
| 178 |
|
| 179 |
|
| 180 |
validate_certs (optional, bool, True) |
| 181 |
If \ :literal:`false`\ , the SSL certificates will not be validated. |
| 182 |
|
| 183 |
Configure \ :literal:`false`\ only on personally controlled sites where self-signed certificates are used. |
| 184 |
|
| 185 |
Prior to collection version \ :literal:`5.0.0`\ , the \ :emphasis:`validate\_certs`\ is \ :literal:`false`\ by default. |
| 186 |
|
| 187 |
|
| 188 |
ca_path (optional, path, None) |
| 189 |
The Privacy Enhanced Mail (PEM) file that contains a CA certificate to be used for the validation. |
| 190 |
|
| 191 |
|
| 192 |
timeout (optional, int, 30) |
| 193 |
The socket level timeout in seconds. |
| 194 |
|
| 195 |
|
| 196 |
|
| 197 |
|
| 198 |
|
| 199 |
Notes |
| 200 |
----- |
| 201 |
|
| 202 |
.. note:: |
| 203 |
- Run this module from a system that has direct access to OpenManage Enterprise Modular. |
| 204 |
- This module supports \ :literal:`check\_mode`\ . |
| 205 |
- The module will always report change when \ :emphasis:`password`\ option is added. |
| 206 |
- If the chassis is a member of a multi-chassis group and it is assigned as a backup lead chassis, the operations performed on the chassis using this module may conflict with the management operations performed on the chassis through the lead chassis. |
| 207 |
|
| 208 |
|
| 209 |
|
| 210 |
|
| 211 |
Examples |
| 212 |
-------- |
| 213 |
|
| 214 |
.. code-block:: yaml+jinja |
| 215 |
|
| 216 |
|
| 217 |
--- |
| 218 |
- name: Configure server Quick Deploy settings of the chassis using device ID. |
| 219 |
dellemc.openmanage.ome_device_quick_deploy: |
| 220 |
hostname: "192.168.0.1" |
| 221 |
username: "username" |
| 222 |
password: "password" |
| 223 |
device_id: 25011 |
| 224 |
setting_type: ServerQuickDeploy |
| 225 |
ca_path: "/path/to/ca_cert.pem" |
| 226 |
quick_deploy_options: |
| 227 |
password: "password" |
| 228 |
ipv4_enabled: true |
| 229 |
ipv4_network_type: Static |
| 230 |
ipv4_subnet_mask: 255.255.255.0 |
| 231 |
ipv4_gateway: 192.168.0.1 |
| 232 |
ipv6_enabled: true |
| 233 |
ipv6_network_type: Static |
| 234 |
ipv6_prefix_length: 1 |
| 235 |
ipv6_gateway: "::" |
| 236 |
slots: |
| 237 |
- slot_id: 1 |
| 238 |
slot_ipv4_address: 192.168.0.2 |
| 239 |
slot_ipv6_address: "::" |
| 240 |
vlan_id: 1 |
| 241 |
- slot_id: 2 |
| 242 |
slot_ipv4_address: 192.168.0.3 |
| 243 |
slot_ipv6_address: "::" |
| 244 |
vlan_id: 2 |
| 245 |
|
| 246 |
- name: Configure server Quick Deploy settings of the chassis using device service tag. |
| 247 |
dellemc.openmanage.ome_device_quick_deploy: |
| 248 |
hostname: "192.168.0.1" |
| 249 |
username: "username" |
| 250 |
password: "password" |
| 251 |
device_service_tag: GHRT2RL |
| 252 |
setting_type: IOMQuickDeploy |
| 253 |
ca_path: "/path/to/ca_cert.pem" |
| 254 |
quick_deploy_options: |
| 255 |
password: "password" |
| 256 |
ipv4_enabled: true |
| 257 |
ipv4_network_type: Static |
| 258 |
ipv4_subnet_mask: 255.255.255.0 |
| 259 |
ipv4_gateway: 192.168.0.1 |
| 260 |
ipv6_enabled: true |
| 261 |
ipv6_network_type: Static |
| 262 |
ipv6_prefix_length: 1 |
| 263 |
ipv6_gateway: "::" |
| 264 |
slots: |
| 265 |
- slot_id: 1 |
| 266 |
slot_ipv4_address: 192.168.0.2 |
| 267 |
slot_ipv6_address: "::" |
| 268 |
vlan_id: 1 |
| 269 |
- slot_id: 2 |
| 270 |
slot_ipv4_address: 192.168.0.3 |
| 271 |
slot_ipv6_address: "::" |
| 272 |
vlan_id: 2 |
| 273 |
|
| 274 |
|
| 275 |
|
| 276 |
Return Values |
| 277 |
------------- |
| 278 |
|
| 279 |
msg (always, str, Successfully deployed the quick deploy settings.) |
| 280 |
Overall status of the device quick deploy settings. |
| 281 |
|
| 282 |
|
| 283 |
job_id (when quick deploy job is submitted., int, 1234) |
| 284 |
The job ID of the submitted quick deploy job. |
| 285 |
|
| 286 |
|
| 287 |
quick_deploy_settings (success, dict, {'DeviceId': 25011, 'SettingType': 'ServerQuickDeploy', 'ProtocolTypeV4': True, 'NetworkTypeV4': 'Static', 'IpV4Gateway': '192.168.0.1', 'IpV4SubnetMask': '255.255.255.0', 'ProtocolTypeV6': True, 'NetworkTypeV6': 'Static', 'PrefixLength': '2', 'IpV6Gateway': '::', 'slots': [{'DeviceId': 25011, 'DeviceCapabilities': [18, 17, 16, 15, 14, 13, 12, 11, 10, 9, 41, 8, 7, 4, 3, 2, 1, 31, 30], 'DeviceIPV4Address': '192.168.0.2', 'DeviceIPV6Address': '::', 'Dhcpipv4': 'Disabled', 'Dhcpipv6': 'Disabled', 'Ipv4Enabled': 'Enabled', 'Ipv6Enabled': 'Enabled', 'Model': 'PowerEdge MX840c', 'SlotIPV4Address': '192.168.0.2', 'SlotIPV6Address': '::', 'SlotId': 1, 'SlotSelected': True, 'SlotSettingsApplied': True, 'SlotType': '2000', 'Type': '1000', 'VlanId': '1'}, {'DeviceId': 0, 'Model': '', 'SlotIPV4Address': '0.0.0.0', 'SlotIPV6Address': '::', 'SlotId': 2, 'SlotSelected': False, 'SlotSettingsApplied': False, 'SlotType': '2000', 'Type': '0'}, {'DeviceId': 0, 'Model': '', 'SlotIPV4Address': '0.0.0.0', 'SlotIPV6Address': '::', 'SlotId': 3, 'SlotSelected': False, 'SlotSettingsApplied': False, 'SlotType': '2000', 'Type': '0'}, {'DeviceId': 0, 'Model': '', 'SlotIPV4Address': '0.0.0.0', 'SlotIPV6Address': '::', 'SlotId': 4, 'SlotSelected': False, 'SlotSettingsApplied': False, 'SlotType': '2000', 'Type': '0'}, {'DeviceId': 0, 'Model': '', 'SlotIPV4Address': '0.0.0.0', 'SlotIPV6Address': '::', 'SlotId': 5, 'SlotSelected': False, 'SlotSettingsApplied': False, 'SlotType': '2000', 'Type': '0'}, {'DeviceId': 0, 'Model': '', 'SlotIPV4Address': '0.0.0.0', 'SlotIPV6Address': '::', 'SlotId': 6, 'SlotSelected': False, 'SlotSettingsApplied': False, 'SlotType': '2000', 'Type': '0'}, {'DeviceId': 0, 'Model': '', 'SlotIPV4Address': '0.0.0.0', 'SlotIPV6Address': '::', 'SlotId': 7, 'SlotSelected': False, 'SlotSettingsApplied': False, 'SlotType': '2000', 'Type': '0'}, {'DeviceId': 0, 'Model': '', 'SlotIPV4Address': '0.0.0.0', 'SlotIPV6Address': '::', 'SlotId': 8, 'SlotSelected': False, 'SlotSettingsApplied': False, 'SlotType': '2000', 'Type': '0'}]}) |
| 288 |
returned when quick deploy settings are deployed successfully. |
| 289 |
|
| 290 |
|
| 291 |
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.'}]}}) |
| 292 |
Details of the HTTP Error. |
| 293 |
|
| 294 |
|
| 295 |
|
| 296 |
|
| 297 |
|
| 298 |
Status |
| 299 |
------ |
| 300 |
|
| 301 |
|
| 302 |
|
| 303 |
|
| 304 |
|
| 305 |
Authors |
| 306 |
~~~~~~~ |
| 307 |
|
| 308 |
- Felix Stephen (@felixs88) |
| 309 |
- Shivam Sharma (@ShivamSh3) |
| 310 |
- Kritika Bhateja (@Kritika-Bhateja-03) |
| 311 |
|