| 1 |
.. _ome_application_network_webserver_module: |
| 2 |
|
| 3 |
|
| 4 |
ome_application_network_webserver -- Updates the Web server configuration on OpenManage Enterprise |
| 5 |
================================================================================================== |
| 6 |
|
| 7 |
.. contents:: |
| 8 |
:local: |
| 9 |
:depth: 1 |
| 10 |
|
| 11 |
|
| 12 |
Synopsis |
| 13 |
-------- |
| 14 |
|
| 15 |
This module allows to configure a network web server 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 |
webserver_port (optional, int, None) |
| 31 |
Port number used by OpenManage Enterprise to establish a secure server connection. |
| 32 |
|
| 33 |
\ :emphasis:`WARNING`\ A change in port number results in a loss of connectivity in the current session for more than a minute. |
| 34 |
|
| 35 |
|
| 36 |
webserver_timeout (optional, int, None) |
| 37 |
The duration in minutes after which a web user interface session is automatically disconnected. |
| 38 |
|
| 39 |
If a change is made to the session timeout, it will only take effect after the next log in. |
| 40 |
|
| 41 |
|
| 42 |
hostname (True, str, None) |
| 43 |
OpenManage Enterprise or OpenManage Enterprise Modular IP address or hostname. |
| 44 |
|
| 45 |
|
| 46 |
username (False, str, None) |
| 47 |
OpenManage Enterprise or OpenManage Enterprise Modular username. |
| 48 |
|
| 49 |
If the username is not provided, then the environment variable \ :envvar:`OME\_USERNAME`\ is used. |
| 50 |
|
| 51 |
Example: export OME\_USERNAME=username |
| 52 |
|
| 53 |
|
| 54 |
password (False, str, None) |
| 55 |
OpenManage Enterprise or OpenManage Enterprise Modular password. |
| 56 |
|
| 57 |
If the password is not provided, then the environment variable \ :envvar:`OME\_PASSWORD`\ is used. |
| 58 |
|
| 59 |
Example: export OME\_PASSWORD=password |
| 60 |
|
| 61 |
|
| 62 |
x_auth_token (False, str, None) |
| 63 |
Authentication token. |
| 64 |
|
| 65 |
If the x\_auth\_token is not provided, then the environment variable \ :envvar:`OME\_X\_AUTH\_TOKEN`\ is used. |
| 66 |
|
| 67 |
Example: export OME\_X\_AUTH\_TOKEN=x\_auth\_token |
| 68 |
|
| 69 |
|
| 70 |
port (optional, int, 443) |
| 71 |
OpenManage Enterprise or OpenManage Enterprise Modular HTTPS port. |
| 72 |
|
| 73 |
|
| 74 |
validate_certs (optional, bool, True) |
| 75 |
If \ :literal:`false`\ , the SSL certificates will not be validated. |
| 76 |
|
| 77 |
Configure \ :literal:`false`\ only on personally controlled sites where self-signed certificates are used. |
| 78 |
|
| 79 |
Prior to collection version \ :literal:`5.0.0`\ , the \ :emphasis:`validate\_certs`\ is \ :literal:`false`\ by default. |
| 80 |
|
| 81 |
|
| 82 |
ca_path (optional, path, None) |
| 83 |
The Privacy Enhanced Mail (PEM) file that contains a CA certificate to be used for the validation. |
| 84 |
|
| 85 |
|
| 86 |
timeout (optional, int, 30) |
| 87 |
The socket level timeout in seconds. |
| 88 |
|
| 89 |
|
| 90 |
|
| 91 |
|
| 92 |
|
| 93 |
Notes |
| 94 |
----- |
| 95 |
|
| 96 |
.. note:: |
| 97 |
- Run this module from a system that has direct access to Dell OpenManage Enterprise. |
| 98 |
- This module supports \ :literal:`check\_mode`\ . |
| 99 |
|
| 100 |
|
| 101 |
|
| 102 |
|
| 103 |
Examples |
| 104 |
-------- |
| 105 |
|
| 106 |
.. code-block:: yaml+jinja |
| 107 |
|
| 108 |
|
| 109 |
--- |
| 110 |
- name: Update web server port and session time out |
| 111 |
dellemc.openmanage.ome_application_network_webserver: |
| 112 |
hostname: "192.168.0.1" |
| 113 |
username: "username" |
| 114 |
password: "password" |
| 115 |
ca_path: "/path/to/ca_cert.pem" |
| 116 |
webserver_port: 9443 |
| 117 |
webserver_timeout: 20 |
| 118 |
|
| 119 |
- name: Update session time out |
| 120 |
dellemc.openmanage.ome_application_network_webserver: |
| 121 |
hostname: "192.168.0.1" |
| 122 |
username: "username" |
| 123 |
password: "password" |
| 124 |
ca_path: "/path/to/ca_cert.pem" |
| 125 |
webserver_timeout: 30 |
| 126 |
|
| 127 |
- name: Update web server port |
| 128 |
dellemc.openmanage.ome_application_network_webserver: |
| 129 |
hostname: "192.168.0.1" |
| 130 |
username: "username" |
| 131 |
password: "password" |
| 132 |
ca_path: "/path/to/ca_cert.pem" |
| 133 |
webserver_port: 8443 |
| 134 |
|
| 135 |
|
| 136 |
|
| 137 |
Return Values |
| 138 |
------------- |
| 139 |
|
| 140 |
msg (always, str, Successfully updated network web server configuration.) |
| 141 |
Overall status of the network web server configuration change. |
| 142 |
|
| 143 |
|
| 144 |
webserver_configuration (success, dict, {'TimeOut': 20, 'PortNumber': 443, 'EnableWebServer': True}) |
| 145 |
Updated application network web server configuration. |
| 146 |
|
| 147 |
|
| 148 |
error_info (on HTTP error, dict, {'error': {'@Message.ExtendedInfo': [{'Message': 'Unable to complete the request because the input value for PortNumber is missing or an invalid value is entered.', 'MessageArgs': ['PortNumber'], 'MessageId': 'CGEN6002', 'RelatedProperties': [], 'Resolution': 'Enter a valid value and retry the operation.', 'Severity': 'Critical'}], 'code': 'Base.1.0.GeneralError', 'message': 'A general error has occurred. See ExtendedInfo for more information.'}}) |
| 149 |
Details of the HTTP error. |
| 150 |
|
| 151 |
|
| 152 |
|
| 153 |
|
| 154 |
|
| 155 |
Status |
| 156 |
------ |
| 157 |
|
| 158 |
|
| 159 |
|
| 160 |
|
| 161 |
|
| 162 |
Authors |
| 163 |
~~~~~~~ |
| 164 |
|
| 165 |
- Jagadeesh N V(@jagadeeshnv) |
| 166 |
- Mangirish Kenkare(@MangirishK) |
| 167 |
|