Debian Codegraph @

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

raw
1 .. _ome_application_security_settings_module:
2
3
4 ome_application_security_settings -- Configure the login security properties
5 ============================================================================
6
7 .. contents::
8 :local:
9 :depth: 1
10
11
12 Synopsis
13 --------
14
15 This module allows you to configure the login security properties on OpenManage Enterprise or 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 restrict_allowed_ip_range (optional, dict, None)
31 Restrict to allow inbound connections only from the specified IP address range.
32
33 This is mutually exclusive with :emphasis:`fips\_mode\_enable`.
34
35 :literal:`NOTE` When :emphasis:`restrict\_allowed\_ip\_range` is configured on the appliance, any inbound connection to the appliance, such as alert reception, firmware update, and network identities are blocked from the devices that are outside the specified IP address range. However, any outbound connection from the appliance will work on all devices.
36
37
38 enable_ip_range (True, bool, None)
39 Allow connections based on the IP address range.
40
41
42 ip_range (optional, str, None)
43 The IP address range in Classless Inter-Domain Routing (CIDR) format. For example: 192.168.100.14/24 or 2001:db8::/24
44
45
46
47 login_lockout_policy (optional, dict, None)
48 Locks the application after multiple unsuccessful login attempts.
49
50 This is mutually exclusive with :emphasis:`fips\_mode\_enable`.
51
52
53 by_user_name (optional, bool, None)
54 Enable or disable lockout policy settings based on the user name. This restricts the number of unsuccessful login attempts from a specific user for a specific time interval.
55
56
57 by_ip_address (optional, bool, None)
58 Enable or disable lockout policy settings based on the IP address. This restricts the number of unsuccessful login attempts from a specific IP address for a specific time interval.
59
60
61 lockout_fail_count (optional, int, None)
62 The number of unsuccessful login attempts that are allowed after which the appliance prevents log in from the specific username or IP Address.
63
64
65 lockout_fail_window (optional, int, None)
66 Lockout fail window is the time in seconds within which the lockout fail count event must occur to trigger the lockout penalty time. Enter the duration for which OpenManage Enterprise must display information about a failed attempt.
67
68
69 lockout_penalty_time (optional, int, None)
70 The duration of time, in seconds, that login attempts from the specific user or IP address must not be allowed.
71
72
73
74 job_wait (optional, bool, True)
75 Provides an option to wait for job completion.
76
77
78 job_wait_timeout (optional, int, 120)
79 The maximum wait time of :emphasis:`job\_wait` in seconds. The job is tracked only for this duration.
80
81 This option is applicable when :emphasis:`job\_wait` is :literal:`true`.
82
83
84 fips_mode_enable (optional, bool, None)
85 The FIPS mode is intended to meet the requirements of FIPS 140-2 level 1. For more information refer to the FIPS user guide
86
87 This is applicable only for OpenManage Enterprise Modular only
88
89 This is mutually exclusive with :emphasis:`restrict\_allowed\_ip\_range` and :emphasis:`login\_lockout\_policy`.
90
91 :literal:`WARNING` Enabling or Disabling this option resets your chassis to default settings. This may cause change in IP settings and loss of network connectivity.
92
93 :literal:`WARNING` The FIPS mode cannot be enabled on a lead chassis in a multi-chassis management configuration. To toggle enable FIPS on a lead chassis, delete the chassis group, enable FIPS and recreate the group.
94
95 :literal:`WARNING` For a Standalone or member chassis, enabling the FIPS mode deletes any fabrics created. This may cause loss of network connectivity and data paths to the compute sleds.
96
97
98 hostname (True, str, None)
99 OpenManage Enterprise or OpenManage Enterprise Modular IP address or hostname.
100
101
102 username (False, str, None)
103 OpenManage Enterprise or OpenManage Enterprise Modular username.
104
105 If the username is not provided, then the environment variable :envvar:`OME\_USERNAME` is used.
106
107 Example: export OME\_USERNAME=username
108
109
110 password (False, str, None)
111 OpenManage Enterprise or OpenManage Enterprise Modular password.
112
113 If the password is not provided, then the environment variable :envvar:`OME\_PASSWORD` is used.
114
115 Example: export OME\_PASSWORD=password
116
117
118 x_auth_token (False, str, None)
119 Authentication token.
120
121 If the x\_auth\_token is not provided, then the environment variable :envvar:`OME\_X\_AUTH\_TOKEN` is used.
122
123 Example: export OME\_X\_AUTH\_TOKEN=x\_auth\_token
124
125
126 port (optional, int, 443)
127 OpenManage Enterprise or OpenManage Enterprise Modular HTTPS port.
128
129
130 validate_certs (optional, bool, True)
131 If :literal:`false`\ , the SSL certificates will not be validated.
132
133 Configure :literal:`false` only on personally controlled sites where self-signed certificates are used.
134
135 Prior to collection version :literal:`5.0.0`\ , the :emphasis:`validate\_certs` is :literal:`false` by default.
136
137
138 ca_path (optional, path, None)
139 The Privacy Enhanced Mail (PEM) file that contains a CA certificate to be used for the validation.
140
141
142 timeout (optional, int, 30)
143 The socket level timeout in seconds.
144
145
146
147
148
149 Notes
150 -----
151
152 .. note::
153 - Run this module from a system that has direct access to Dell OpenManage Enterprise or OpenManage Enterprise Modular.
154 - This module supports :literal:`check\_mode`.
155
156
157
158
159 Examples
160 --------
161
162 .. code-block:: yaml+jinja
163
164
165 ---
166 - name: Configure restricted allowed IP range
167 dellemc.openmanage.ome_application_security_settings:
168 hostname: "192.168.0.1"
169 username: "username"
170 password: "password"
171 ca_path: "/path/to/ca_cert.pem"
172 restrict_allowed_ip_range:
173 enable_ip_range: true
174 ip_range: 192.1.2.3/24
175
176 - name: Configure login lockout policy
177 dellemc.openmanage.ome_application_security_settings:
178 hostname: "192.168.0.1"
179 username: "username"
180 password: "password"
181 ca_path: "/path/to/ca_cert.pem"
182 login_lockout_policy:
183 by_user_name: true
184 by_ip_address: true
185 lockout_fail_count: 3
186 lockout_fail_window: 30
187 lockout_penalty_time: 900
188
189 - name: Configure restricted allowed IP range and login lockout policy with job wait time out of 60 seconds
190 dellemc.openmanage.ome_application_security_settings:
191 hostname: "192.168.0.1"
192 username: "username"
193 password: "password"
194 ca_path: "/path/to/ca_cert.pem"
195 restrict_allowed_ip_range:
196 enable_ip_range: true
197 ip_range: 192.1.2.3/24
198 login_lockout_policy:
199 by_user_name: true
200 by_ip_address: true
201 lockout_fail_count: 3
202 lockout_fail_window: 30
203 lockout_penalty_time: 900
204 job_wait_timeout: 60
205
206 - name: Enable FIPS mode
207 dellemc.openmanage.ome_application_security_settings:
208 hostname: "192.168.0.1"
209 username: "username"
210 password: "password"
211 ca_path: "/path/to/ca_cert.pem"
212 fips_mode_enable: true
213
214
215
216 Return Values
217 -------------
218
219 msg (always, str, Successfully applied the security settings.)
220 Overall status of the login security configuration.
221
222
223 job_id (When security configuration properties are provided, int, 10123)
224 Job ID of the security configuration task.
225
226
227 error_info (on http error, dict, {'error': {'@Message.ExtendedInfo': [{'Message': 'Unable to process the request because the domain information cannot be retrieved.', 'MessageArgs': [], 'MessageId': 'CGEN8007', 'RelatedProperties': [], 'Resolution': 'Verify the status of the database and domain configuration, and then retry the operation.', 'Severity': 'Critical'}], 'code': 'Base.1.0.GeneralError', 'message': 'A general error has occurred. See ExtendedInfo for more information.'}})
228 Details of http error.
229
230
231
232
233
234 Status
235 ------
236
237
238
239
240
241 Authors
242 ~~~~~~~
243
244 - Jagadeesh N V(@jagadeeshnv)
245