Debian Codegraph @

ansible_collections/dellemc/openmanage/docs/modules/ome_application_network_settings.rst

raw
1 .. _ome_application_network_settings_module:
2
3
4 ome_application_network_settings -- This module allows you to configure the session inactivity timeout settings
5 ===============================================================================================================
6
7 .. contents::
8 :local:
9 :depth: 1
10
11
12 Synopsis
13 --------
14
15 This module allows you to configure the session inactivity timeout settings on OpenManage Enterprise and 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 session_inactivity_timeout (optional, dict, None)
31 Session inactivity timeout settings.
32
33
34 enable_universal_timeout (optional, bool, None)
35 Enable or disable the universal inactivity timeout.
36
37
38 universal_timeout (optional, float, None)
39 Duration of inactivity in minutes after which all sessions end.
40
41 This is applicable when \ :emphasis:`enable\_universal\_timeout`\ is \ :literal:`true`\ .
42
43 This is mutually exclusive with \ :emphasis:`api\_timeout`\ , \ :emphasis:`gui\_timeout`\ , \ :emphasis:`ssh\_timeout`\ and \ :emphasis:`serial\_timeout`\ .
44
45
46 api_timeout (optional, float, None)
47 Duration of inactivity in minutes after which the API session ends.
48
49 This is mutually exclusive with \ :emphasis:`universal\_timeout`\ .
50
51
52 api_sessions (optional, int, None)
53 The maximum number of API sessions to be allowed.
54
55
56 gui_timeout (optional, float, None)
57 Duration of inactivity in minutes after which the web interface of Graphical User Interface (GUI) session ends.
58
59 This is mutually exclusive with \ :emphasis:`universal\_timeout`\ .
60
61
62 gui_sessions (optional, int, None)
63 The maximum number of GUI sessions to be allowed.
64
65
66 ssh_timeout (optional, float, None)
67 Duration of inactivity in minutes after which the SSH session ends.
68
69 This is applicable only for OpenManage Enterprise Modular.
70
71 This is mutually exclusive with \ :emphasis:`universal\_timeout`\ .
72
73
74 ssh_sessions (optional, int, None)
75 The maximum number of SSH sessions to be allowed.
76
77 This is applicable to OME-M only.
78
79
80 serial_timeout (optional, float, None)
81 Duration of inactivity in minutes after which the serial console session ends.
82
83 This is applicable only for OpenManage Enterprise Modular.
84
85 This is mutually exclusive with \ :emphasis:`universal\_timeout`\ .
86
87
88 serial_sessions (optional, int, None)
89 The maximum number of serial console sessions to be allowed.
90
91 This is applicable only for OpenManage Enterprise Modular.
92
93
94
95 hostname (True, str, None)
96 OpenManage Enterprise or OpenManage Enterprise Modular IP address or hostname.
97
98
99 username (False, str, None)
100 OpenManage Enterprise or OpenManage Enterprise Modular username.
101
102 If the username is not provided, then the environment variable \ :envvar:`OME\_USERNAME`\ is used.
103
104 Example: export OME\_USERNAME=username
105
106
107 password (False, str, None)
108 OpenManage Enterprise or OpenManage Enterprise Modular password.
109
110 If the password is not provided, then the environment variable \ :envvar:`OME\_PASSWORD`\ is used.
111
112 Example: export OME\_PASSWORD=password
113
114
115 x_auth_token (False, str, None)
116 Authentication token.
117
118 If the x\_auth\_token is not provided, then the environment variable \ :envvar:`OME\_X\_AUTH\_TOKEN`\ is used.
119
120 Example: export OME\_X\_AUTH\_TOKEN=x\_auth\_token
121
122
123 port (optional, int, 443)
124 OpenManage Enterprise or OpenManage Enterprise Modular HTTPS port.
125
126
127 validate_certs (optional, bool, True)
128 If \ :literal:`false`\ , the SSL certificates will not be validated.
129
130 Configure \ :literal:`false`\ only on personally controlled sites where self-signed certificates are used.
131
132 Prior to collection version \ :literal:`5.0.0`\ , the \ :emphasis:`validate\_certs`\ is \ :literal:`false`\ by default.
133
134
135 ca_path (optional, path, None)
136 The Privacy Enhanced Mail (PEM) file that contains a CA certificate to be used for the validation.
137
138
139 timeout (optional, int, 30)
140 The socket level timeout in seconds.
141
142
143
144
145
146 Notes
147 -----
148
149 .. note::
150 - Run this module from a system that has direct access to Dell OpenManage Enterprise or OpenManage Enterprise Modular.
151 - To configure other network settings such as network address, web server, and so on, refer to the respective OpenManage Enterprise application network setting modules.
152 - This module supports \ :literal:`check\_mode`\ .
153
154
155
156
157 Examples
158 --------
159
160 .. code-block:: yaml+jinja
161
162
163 ---
164 - name: Configure universal inactivity timeout
165 ome_application_network_settings:
166 hostname: "192.168.0.1"
167 username: "username"
168 password: "password"
169 ca_path: "/path/to/ca_cert.pem"
170 session_inactivity_timeout:
171 enable_universal_timeout: true
172 universal_timeout: 30
173 api_sessions: 90
174 gui_sessions: 5
175 ssh_sessions: 2
176 serial_sessions: 1
177
178 - name: Configure API and GUI timeout and sessions
179 ome_application_network_settings:
180 hostname: "192.168.0.1"
181 username: "username"
182 password: "password"
183 ca_path: "/path/to/ca_cert.pem"
184 session_inactivity_timeout:
185 api_timeout: 20
186 api_sessions: 100
187 gui_timeout: 25
188 gui_sessions: 5
189
190 - name: Configure timeout and sessions for all parameters
191 ome_application_network_settings:
192 hostname: "192.168.0.1"
193 username: "username"
194 password: "password"
195 ca_path: "/path/to/ca_cert.pem"
196 session_inactivity_timeout:
197 api_timeout: 20
198 api_sessions: 100
199 gui_timeout: 15
200 gui_sessions: 5
201 ssh_timeout: 30
202 ssh_sessions: 2
203 serial_timeout: 35
204 serial_sessions: 1
205
206 - name: Disable universal timeout and configure timeout and sessions for other parameters
207 ome_application_network_settings:
208 hostname: "192.168.0.1"
209 username: "username"
210 password: "password"
211 ca_path: "/path/to/ca_cert.pem"
212 session_inactivity_timeout:
213 enable_universal_timeout: false
214 api_timeout: 20
215 api_sessions: 100
216 gui_timeout: 15
217 gui_sessions: 5
218 ssh_timeout: 30
219 ssh_sessions: 2
220 serial_timeout: 35
221 serial_sessions: 1
222
223
224
225 Return Values
226 -------------
227
228 msg (always, str, Successfully updated the session timeout settings.)
229 Overall status of the Session timeout settings.
230
231
232 session_inactivity_setting (success, dict, [{'SessionType': 'API', 'MaxSessions': 32, 'SessionTimeout': 99600, 'MinSessionTimeout': 60000, 'MaxSessionTimeout': 86400000, 'MinSessionsAllowed': 1, 'MaxSessionsAllowed': 100, 'MaxSessionsConfigurable': True, 'SessionTimeoutConfigurable': True}, {'SessionType': 'GUI', 'MaxSessions': 6, 'SessionTimeout': 99600, 'MinSessionTimeout': 60000, 'MaxSessionTimeout': 7200000, 'MinSessionsAllowed': 1, 'MaxSessionsAllowed': 6, 'MaxSessionsConfigurable': True, 'SessionTimeoutConfigurable': True}, {'SessionType': 'SSH', 'MaxSessions': 4, 'SessionTimeout': 99600, 'MinSessionTimeout': 60000, 'MaxSessionTimeout': 10800000, 'MinSessionsAllowed': 1, 'MaxSessionsAllowed': 4, 'MaxSessionsConfigurable': True, 'SessionTimeoutConfigurable': True}, {'SessionType': 'Serial', 'MaxSessions': 1, 'SessionTimeout': 99600, 'MinSessionTimeout': 60000, 'MaxSessionTimeout': 86400000, 'MinSessionsAllowed': 1, 'MaxSessionsAllowed': 1, 'MaxSessionsConfigurable': False, 'SessionTimeoutConfigurable': True}, {'SessionType': 'UniversalTimeout', 'MaxSessions': 0, 'SessionTimeout': -1, 'MinSessionTimeout': -1, 'MaxSessionTimeout': 86400000, 'MinSessionsAllowed': 0, 'MaxSessionsAllowed': 0, 'MaxSessionsConfigurable': False, 'SessionTimeoutConfigurable': True}])
233 Returned when session inactivity timeout settings are updated successfully.
234
235
236 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': 'CUSR1233', 'RelatedProperties': [], 'Message': 'The number of allowed concurrent sessions for API must be between 1 and 100 sessions.', 'MessageArgs': ['API', '1', '100'], 'Severity': 'Critical', 'Resolution': 'Enter values in the correct range and retry the operation.'}]}})
237 Details of the HTTP Error.
238
239
240
241
242
243 Status
244 ------
245
246
247
248
249
250 Authors
251 ~~~~~~~
252
253 - Sachin Apagundi(@sachin-apa)
254 - Sapana Gupta(@sapana05)
255