Debian Codegraph @

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

raw
1 .. _ome_device_local_access_configuration_module:
2
3
4 ome_device_local_access_configuration -- Configure local access 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 local access settings of the power button, quick sync, KVM, LCD, and chassis direct access 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 local access configuration to be updated.
32
33 If the device ID is not specified, this module updates the local access 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 local access settings needs to be updated.
40
41 If the device service tag is not specified, this module updates the local access settings for the \ :emphasis:`hostname`\ .
42
43 \ :emphasis:`device\_service\_tag`\ is mutually exclusive with \ :emphasis:`device\_id`\ .
44
45
46 enable_kvm_access (optional, bool, None)
47 Enables or disables the keyboard, video, and mouse (KVM) interfaces.
48
49
50 enable_chassis_direct_access (optional, bool, None)
51 Enables or disables the access to management consoles such as iDRAC and the management module of the device on the chassis.
52
53
54 chassis_power_button (optional, dict, None)
55 The settings for the chassis power button.
56
57
58 enable_chassis_power_button (True, bool, None)
59 Enables or disables the chassis power button.
60
61 If \ :literal:`false`\ , the chassis cannot be turn on or turn off using the power button.
62
63
64 enable_lcd_override_pin (optional, bool, None)
65 Enables or disables the LCD override pin.
66
67 This is required when \ :emphasis:`enable\_chassis\_power\_button`\ is \ :literal:`false`\ .
68
69
70 disabled_button_lcd_override_pin (optional, str, None)
71 The six digit LCD override pin to change the power state of the chassis.
72
73 This is required when \ :emphasis:`enable\_lcd\_override\_pin`\ is \ :literal:`true`\ .
74
75 The module will always report change when \ :emphasis:`disabled\_button\_lcd\_override\_pin`\ is \ :literal:`true`\ .
76
77 The value must be specified in quotes. ex: "001100".
78
79
80
81 quick_sync (optional, dict, None)
82 The settings for quick sync.
83
84 The \ :emphasis:`quick\_sync`\ options are ignored if the quick sync hardware is not present.
85
86
87 quick_sync_access (optional, str, None)
88 Users with administrator privileges can set the following types of \ :emphasis:`quick\_sync\_access`\ .
89
90 \ :literal:`READ\_WRITE`\ enables writing configuration using quick sync.
91
92 \ :literal:`READ\_ONLY`\ enables read only access to Wi-Fi and Bluetooth Low Energy(BLE).
93
94 \ :literal:`DISABLED`\ disables reading or writing configuration through quick sync.
95
96
97 enable_inactivity_timeout (optional, bool, None)
98 Enables or disables the inactivity timeout.
99
100
101 timeout_limit (optional, int, None)
102 Inactivity timeout in seconds or minutes.
103
104 The range is 120 to 3600 in seconds, or 2 to 60 in minutes.
105
106 This option is required when \ :emphasis:`enable\_inactivity\_timeout`\ is \ :literal:`true`\ .
107
108
109 timeout_limit_unit (optional, str, None)
110 Inactivity timeout limit unit.
111
112 \ :literal:`SECONDS`\ to set \ :emphasis:`timeout\_limit`\ in seconds.
113
114 \ :literal:`MINUTES`\ to set \ :emphasis:`timeout\_limit`\ in minutes.
115
116 This option is required when \ :emphasis:`enable\_inactivity\_timeout`\ is \ :literal:`true`\ .
117
118
119 enable_read_authentication (optional, bool, None)
120 Enables or disables the option to log in using your user credentials and to read the inventory in a secure data center.
121
122
123 enable_quick_sync_wifi (optional, bool, None)
124 Enables or disables the Wi-Fi communication path to the chassis.
125
126
127
128 lcd (optional, dict, None)
129 The settings for LCD.
130
131 The \ :emphasis:`lcd`\ options are ignored if the LCD hardware is not present in the chassis.
132
133
134 lcd_access (optional, str, None)
135 Option to configure the quick sync settings using LCD.
136
137 \ :literal:`VIEW\_AND\_MODIFY`\ to set access level to view and modify.
138
139 \ :literal:`VIEW\_ONLY`\ to set access level to view.
140
141 \ :literal:`DISABLED`\ to disable the access.
142
143
144 user_defined (optional, str, None)
145 The text to display on the LCD Home screen. The LCD Home screen is displayed when the system is reset to factory default settings. The user-defined text can have a maximum of 62 characters.
146
147
148 lcd_language (optional, str, None)
149 The language code in which the text on the LCD must be displayed.
150
151 en to set English language.
152
153 fr to set French language.
154
155 de to set German language.
156
157 es to set Spanish language.
158
159 ja to set Japanese language.
160
161 zh to set Chinese language.
162
163
164
165 hostname (True, str, None)
166 OpenManage Enterprise Modular IP address or hostname.
167
168
169 username (False, str, None)
170 OpenManage Enterprise Modular username.
171
172 If the username is not provided, then the environment variable \ :envvar:`OME\_USERNAME`\ is used.
173
174 Example: export OME\_USERNAME=username
175
176
177 password (False, str, None)
178 OpenManage Enterprise Modular password.
179
180 If the password is not provided, then the environment variable \ :envvar:`OME\_PASSWORD`\ is used.
181
182 Example: export OME\_PASSWORD=password
183
184
185 x_auth_token (False, str, None)
186 Authentication token.
187
188 If the x\_auth\_token is not provided, then the environment variable \ :envvar:`OME\_X\_AUTH\_TOKEN`\ is used.
189
190 Example: export OME\_X\_AUTH\_TOKEN=x\_auth\_token
191
192
193 port (optional, int, 443)
194 OpenManage Enterprise Modular HTTPS port.
195
196
197 validate_certs (optional, bool, True)
198 If \ :literal:`false`\ , the SSL certificates will not be validated.
199
200 Configure \ :literal:`false`\ only on personally controlled sites where self-signed certificates are used.
201
202 Prior to collection version \ :literal:`5.0.0`\ , the \ :emphasis:`validate\_certs`\ is \ :literal:`false`\ by default.
203
204
205 ca_path (optional, path, None)
206 The Privacy Enhanced Mail (PEM) file that contains a CA certificate to be used for the validation.
207
208
209 timeout (optional, int, 30)
210 The socket level timeout in seconds.
211
212
213
214
215
216 Notes
217 -----
218
219 .. note::
220 - Run this module from a system that has direct access to OpenManage Enterprise Modular.
221 - This module supports \ :literal:`check\_mode`\ .
222 - The module will always report change when \ :emphasis:`enable\_chassis\_power\_button`\ is \ :literal:`true`\ .
223
224
225
226
227 Examples
228 --------
229
230 .. code-block:: yaml+jinja
231
232
233 ---
234 - name: Configure KVM, direct access and power button settings of the chassis using device ID.
235 dellemc.openmanage.ome_device_local_access_configuration:
236 hostname: "192.168.0.1"
237 username: "username"
238 password: "password"
239 ca_path: "/path/to/ca_cert.pem"
240 device_id: 25011
241 enable_kvm_access: true
242 enable_chassis_direct_access: false
243 chassis_power_button:
244 enable_chassis_power_button: false
245 enable_lcd_override_pin: true
246 disabled_button_lcd_override_pin: "123456"
247
248 - name: Configure Quick sync and LCD settings of the chassis using device service tag.
249 dellemc.openmanage.ome_device_local_access_configuration:
250 hostname: "192.168.0.1"
251 username: "username"
252 password: "password"
253 ca_path: "/path/to/ca_cert.pem"
254 device_service_tag: GHRT2RL
255 quick_sync:
256 quick_sync_access: READ_ONLY
257 enable_read_authentication: true
258 enable_quick_sync_wifi: true
259 enable_inactivity_timeout: true
260 timeout_limit: 10
261 timeout_limit_unit: MINUTES
262 lcd:
263 lcd_access: VIEW_ONLY
264 lcd_language: en
265 user_defined: "LCD Text"
266
267 - name: Configure all local access settings of the host chassis.
268 dellemc.openmanage.ome_device_local_access_configuration:
269 hostname: "192.168.0.1"
270 username: "username"
271 password: "password"
272 ca_path: "/path/to/ca_cert.pem"
273 enable_kvm_access: true
274 enable_chassis_direct_access: false
275 chassis_power_button:
276 enable_chassis_power_button: false
277 enable_lcd_override_pin: true
278 disabled_button_lcd_override_pin: "123456"
279 quick_sync:
280 quick_sync_access: READ_WRITE
281 enable_read_authentication: true
282 enable_quick_sync_wifi: true
283 enable_inactivity_timeout: true
284 timeout_limit: 120
285 timeout_limit_unit: SECONDS
286 lcd:
287 lcd_access: VIEW_MODIFY
288 lcd_language: en
289 user_defined: "LCD Text"
290
291
292
293 Return Values
294 -------------
295
296 msg (always, str, Successfully updated the local access settings.)
297 Overall status of the device local access settings.
298
299
300 location_details (success, dict, {'SettingType': 'LocalAccessConfiguration', 'EnableChassisDirect': False, 'EnableChassisPowerButton': False, 'EnableKvmAccess': True, 'EnableLcdOverridePin': False, 'LcdAccess': 'VIEW_ONLY', 'LcdCustomString': 'LCD Text', 'LcdLanguage': 'en', 'LcdOverridePin': '', 'LcdPinLength': 6, 'LcdPresence': 'Present', 'LedPresence': 'Absent', 'QuickSync': {'EnableInactivityTimeout': True, 'EnableQuickSyncWifi': False, 'EnableReadAuthentication': False, 'QuickSyncAccess': 'READ_ONLY', 'QuickSyncHardware': 'Present', 'TimeoutLimit': 7, 'TimeoutLimitUnit': 'MINUTES'}})
301 returned when local access settings are updated successfully.
302
303
304 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.'}]}})
305 Details of the HTTP Error.
306
307
308
309
310
311 Status
312 ------
313
314
315
316
317
318 Authors
319 ~~~~~~~
320
321 - Felix Stephen (@felixs88)
322 - Shivam Sharma (@ShivamSh3)
323