Debian Codegraph @

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

raw
1 .. _ome_application_network_proxy_module:
2
3
4 ome_application_network_proxy -- Updates the proxy 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 proxy 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 enable_proxy (True, bool, None)
31 Enables or disables the HTTP proxy configuration.
32
33 If \ :emphasis:`enable proxy`\ is false, then the HTTP proxy configuration is set to its default value.
34
35
36 ip_address (optional, str, None)
37 Proxy server address.
38
39 This option is mandatory when \ :emphasis:`enable\_proxy`\ is true.
40
41
42 proxy_port (optional, int, None)
43 Proxy server's port number.
44
45 This option is mandatory when \ :emphasis:`enable\_proxy`\ is true.
46
47
48 enable_authentication (optional, bool, None)
49 Enable or disable proxy authentication.
50
51 If \ :emphasis:`enable\_authentication`\ is true, \ :emphasis:`proxy\_username`\ and \ :emphasis:`proxy\_password`\ must be provided.
52
53 If \ :emphasis:`enable\_authentication`\ is false, the proxy username and password are set to its default values.
54
55
56 proxy_username (optional, str, None)
57 Proxy server username.
58
59 This option is mandatory when \ :emphasis:`enable\_authentication`\ is true.
60
61
62 proxy_password (optional, str, None)
63 Proxy server password.
64
65 This option is mandatory when \ :emphasis:`enable\_authentication`\ is true.
66
67
68 ignore_certificate_validation (optional, bool, False)
69 This option will ignore the integrated certificate checks like those used for the warranty and catalog updates.
70
71 \ :literal:`true`\ ignores the certificate validation.
72
73 \ :literal:`false`\ does not ignore the certificate validation.
74
75
76 proxy_exclusion_list (optional, list, None)
77 The list of IPv4 addresses, IPv6 addresses or the domain names of the devices that can bypass the proxy server to directly access the appliance.
78
79
80 update_password (optional, bool, False)
81 This flag is used to update the \ :emphasis:`proxy\_password`\ .
82
83 This is applicable only when \ :emphasis:`enable\_authentication`\ is \ :literal:`true`\ .
84
85 \ :literal:`true`\ will update the \ :emphasis:`proxy\_password`\ .
86
87 \ :literal:`false`\ will not update the \ :emphasis:`proxy\_password`\ .
88
89
90 hostname (True, str, None)
91 OpenManage Enterprise or OpenManage Enterprise Modular IP address or hostname.
92
93
94 username (True, str, None)
95 OpenManage Enterprise or OpenManage Enterprise Modular username.
96
97
98 password (True, str, None)
99 OpenManage Enterprise or OpenManage Enterprise Modular password.
100
101
102 port (optional, int, 443)
103 OpenManage Enterprise or OpenManage Enterprise Modular HTTPS port.
104
105
106 validate_certs (optional, bool, True)
107 If \ :literal:`false`\ , the SSL certificates will not be validated.
108
109 Configure \ :literal:`false`\ only on personally controlled sites where self-signed certificates are used.
110
111 Prior to collection version \ :literal:`5.0.0`\ , the \ :emphasis:`validate\_certs`\ is \ :literal:`false`\ by default.
112
113
114 ca_path (optional, path, None)
115 The Privacy Enhanced Mail (PEM) file that contains a CA certificate to be used for the validation.
116
117
118 timeout (optional, int, 30)
119 The socket level timeout in seconds.
120
121
122
123
124
125 Notes
126 -----
127
128 .. note::
129 - Run this module from a system that has direct access to Dell OpenManage Enterprise.
130 - This module supports \ :literal:`check\_mode`\ .
131 - This module supports IPv4 and IPv6 addresses.
132
133
134
135
136 Examples
137 --------
138
139 .. code-block:: yaml+jinja
140
141
142 ---
143 - name: Update proxy configuration and enable authentication
144 dellemc.openmanage.ome_application_network_proxy:
145 hostname: "192.168.0.1"
146 username: "username"
147 password: "password"
148 ca_path: "/path/to/ca_cert.pem"
149 enable_proxy: true
150 ip_address: "192.168.0.2"
151 proxy_port: 444
152 enable_authentication: true
153 proxy_username: "proxy_username"
154 proxy_password: "proxy_password"
155
156 - name: Reset proxy authentication
157 dellemc.openmanage.ome_application_network_proxy:
158 hostname: "192.168.0.1"
159 username: "username"
160 password: "password"
161 ca_path: "/path/to/ca_cert.pem"
162 enable_proxy: true
163 ip_address: "192.168.0.2"
164 proxy_port: 444
165 enable_authentication: false
166
167 - name: Reset proxy configuration
168 dellemc.openmanage.ome_application_network_proxy:
169 hostname: "192.168.0.1"
170 username: "username"
171 password: "password"
172 ca_path: "/path/to/ca_cert.pem"
173 enable_proxy: false
174
175 - name: Add IPv4, IPv6 and domain names of devices in proxy exclusion list
176 dellemc.openmanage.ome_application_network_proxy:
177 hostname: "192.168.0.1"
178 username: "username"
179 password: "password"
180 ca_path: "/path/to/ca_cert.pem"
181 enable_proxy: true
182 ip_address: "192.168.0.2"
183 proxy_port: 444
184 enable_authentication: false
185 proxy_exclusion_list:
186 - 192.168.1.0
187 - 191.187.2.0
188 - www.*.com
189 - 191.1.168.1/24
190
191 - name: Clear the proxy exclusion list
192 dellemc.openmanage.ome_application_network_proxy:
193 hostname: "192.168.0.1"
194 username: "username"
195 password: "password"
196 ca_path: "/path/to/ca_cert.pem"
197 enable_proxy: true
198 ip_address: "192.168.0.2"
199 proxy_port: 444
200 proxy_exclusion_list: []
201
202 - name: Ignore the certificate validation
203 dellemc.openmanage.ome_application_network_proxy:
204 hostname: "192.168.0.1"
205 username: "username"
206 password: "password"
207 ca_path: "/path/to/ca_cert.pem"
208 enable_proxy: true
209 ip_address: "192.168.0.2"
210 proxy_port: 444
211 ignore_certificate_validation: true
212
213
214
215 Return Values
216 -------------
217
218 msg (always, str, Successfully updated network proxy configuration.)
219 Overall status of the network proxy configuration change.
220
221
222 proxy_configuration (On successful configuration of network proxy settings, dict, {'EnableAuthentication': True, 'EnableProxy': True, 'IpAddress': '192.168.0.2', 'Password': None, 'PortNumber': 444, 'ProxyExclusionList': ['192.168.0.1', 'www.*.com', '172.1.1.1/24'], 'SslCheckDisabled': False, 'Username': 'root'})
223 Updated application network proxy configuration.
224
225
226 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.'}})
227 Details of the HTTP error.
228
229
230
231
232
233 Status
234 ------
235
236
237
238
239
240 Authors
241 ~~~~~~~
242
243 - Sajna Shetty(@Sajna-Shetty)
244 - Rajshekar P(@rajshekarp87)
245 - Sapana Gupta(@sapana05)
246