Debian Codegraph @

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

raw
1 .. _ome_device_location_module:
2
3
4 ome_device_location -- Configure device location 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 device location settings of the chassis 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 settings need to be updated.
32
33 If the device ID is not specified, this module updates the location 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 settings need to be updated.
40
41 If the device service tag is not specified, this module updates the location settings for the :emphasis:`hostname`.
42
43 :emphasis:`device\_service\_tag` is mutually exclusive with :emphasis:`device\_id`.
44
45
46 data_center (optional, str, None)
47 The data center name of the chassis.
48
49
50 room (optional, str, None)
51 The room of the chassis.
52
53
54 aisle (optional, str, None)
55 The aisle of the chassis.
56
57
58 rack (optional, str, None)
59 The rack name of the chassis.
60
61
62 rack_slot (optional, int, None)
63 The rack slot number of the chassis.
64
65
66 location (optional, str, None)
67 The physical location of the chassis.
68
69
70 hostname (True, str, None)
71 OpenManage Enterprise Modular IP address or hostname.
72
73
74 username (False, str, None)
75 OpenManage Enterprise Modular username.
76
77 If the username is not provided, then the environment variable :envvar:`OME\_USERNAME` is used.
78
79 Example: export OME\_USERNAME=username
80
81
82 password (False, str, None)
83 OpenManage Enterprise Modular password.
84
85 If the password is not provided, then the environment variable :envvar:`OME\_PASSWORD` is used.
86
87 Example: export OME\_PASSWORD=password
88
89
90 x_auth_token (False, str, None)
91 Authentication token.
92
93 If the x\_auth\_token is not provided, then the environment variable :envvar:`OME\_X\_AUTH\_TOKEN` is used.
94
95 Example: export OME\_X\_AUTH\_TOKEN=x\_auth\_token
96
97
98 port (optional, int, 443)
99 OpenManage Enterprise Modular HTTPS port.
100
101
102 validate_certs (optional, bool, True)
103 If :literal:`false`\ , the SSL certificates will not be validated.
104
105 Configure :literal:`false` only on personally controlled sites where self-signed certificates are used.
106
107 Prior to collection version :literal:`5.0.0`\ , the :emphasis:`validate\_certs` is :literal:`false` by default.
108
109
110 ca_path (optional, path, None)
111 The Privacy Enhanced Mail (PEM) file that contains a CA certificate to be used for the validation.
112
113
114 timeout (optional, int, 30)
115 The socket level timeout in seconds.
116
117
118
119
120
121 Notes
122 -----
123
124 .. note::
125 - Run this module from a system that has direct access to Dell OpenManage Enterprise Modular.
126 - This module supports :literal:`check\_mode`.
127
128
129
130
131 Examples
132 --------
133
134 .. code-block:: yaml+jinja
135
136
137 ---
138 - name: Update device location settings of a chassis using the device ID.
139 dellemc.openmanage.ome_device_location:
140 hostname: "192.168.0.1"
141 username: "username"
142 password: "password"
143 ca_path: "/path/to/ca_cert.pem"
144 device_id: 25011
145 data_center: data center 1
146 room: room 1
147 aisle: aisle 1
148 rack: rack 1
149 rack_slot: 2
150 location: location 1
151
152 - name: Update device location settings of a chassis using the device service tag.
153 dellemc.openmanage.ome_device_location:
154 hostname: "192.168.0.1"
155 username: "username"
156 password: "password"
157 ca_path: "/path/to/ca_cert.pem"
158 device_service_tag: GHRT2RL
159 data_center: data center 2
160 room: room 7
161 aisle: aisle 4
162 rack: rack 6
163 rack_slot: 22
164 location: location 5
165
166 - name: Update device location settings of the host chassis.
167 dellemc.openmanage.ome_device_location:
168 hostname: "192.168.0.1"
169 username: "username"
170 password: "password"
171 ca_path: "/path/to/ca_cert.pem"
172 data_center: data center 3
173 room: room 3
174 aisle: aisle 1
175 rack: rack 7
176 rack_slot: 10
177 location: location 9
178
179
180
181 Return Values
182 -------------
183
184 msg (always, str, Successfully updated the location settings.)
185 Overall status of the device location settings.
186
187
188 location_details (success, dict, {'Aisle': 'aisle 1', 'DataCenter': 'data center 1', 'Location': 'location 1', 'RackName': 'rack 1', 'RackSlot': 2, 'Room': 'room 1', 'SettingType': 'Location'})
189 returned when location settings are updated successfully.
190
191
192 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.'}]}})
193 Details of the HTTP Error.
194
195
196
197
198
199 Status
200 ------
201
202
203
204
205
206 Authors
207 ~~~~~~~
208
209 - Felix Stephen (@felixs88)
210