Debian Codegraph @

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

raw
1 .. _ome_device_power_settings_module:
2
3
4 ome_device_power_settings -- Configure chassis power 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 chassis power settings 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 power 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 setting needs to be updated.
40
41 If the device service tag is not specified, this module updates the power settings for the \ :emphasis:`hostname`\ .
42
43 \ :emphasis:`device\_service\_tag`\ is mutually exclusive with \ :emphasis:`device\_id`\ .
44
45
46 power_configuration (optional, dict, None)
47 The settings for Power configuration.
48
49
50 enable_power_cap (True, bool, None)
51 Enables or disables the Power Cap Settings.
52
53
54 power_cap (optional, int, None)
55 The maximum power consumption limit of the device. Specify the consumption limit in Watts.
56
57 This is required if \ :emphasis:`enable\_power\_cap`\ is set to true.
58
59
60
61 redundancy_configuration (optional, dict, None)
62 The settings for Redundancy configuration.
63
64
65 redundancy_policy (optional, str, NO_REDUNDANCY)
66 The choices to configure the redundancy policy.
67
68 \ :literal:`NO\_REDUNDANCY`\ no redundancy policy is used.
69
70 \ :literal:`GRID\_REDUNDANCY`\ to distributes power by dividing the PSUs into two grids.
71
72 \ :literal:`PSU\_REDUNDANCY`\ to distribute power between all the PSUs.
73
74
75
76 hot_spare_configuration (optional, dict, None)
77 The settings for Hot Spare configuration.
78
79
80 enable_hot_spare (True, bool, None)
81 Enables or disables Hot Spare configuration to facilitate voltage regulation when power utilized by the Power Supply Unit (PSU) is low.
82
83
84 primary_grid (optional, str, GRID_1)
85 The choices for PSU grid.
86
87 \ :literal:`GRID\_1`\ Hot Spare on Grid 1.
88
89 \ :literal:`GRID\_2`\ Hot Spare on Grid 2.
90
91
92
93 hostname (True, str, None)
94 OpenManage Enterprise Modular IP address or hostname.
95
96
97 username (False, str, None)
98 OpenManage Enterprise Modular username.
99
100 If the username is not provided, then the environment variable \ :envvar:`OME\_USERNAME`\ is used.
101
102 Example: export OME\_USERNAME=username
103
104
105 password (False, str, None)
106 OpenManage Enterprise Modular password.
107
108 If the password is not provided, then the environment variable \ :envvar:`OME\_PASSWORD`\ is used.
109
110 Example: export OME\_PASSWORD=password
111
112
113 x_auth_token (False, str, None)
114 Authentication token.
115
116 If the x\_auth\_token is not provided, then the environment variable \ :envvar:`OME\_X\_AUTH\_TOKEN`\ is used.
117
118 Example: export OME\_X\_AUTH\_TOKEN=x\_auth\_token
119
120
121 port (optional, int, 443)
122 OpenManage Enterprise Modular HTTPS port.
123
124
125 validate_certs (optional, bool, True)
126 If \ :literal:`false`\ , the SSL certificates will not be validated.
127
128 Configure \ :literal:`false`\ only on personally controlled sites where self-signed certificates are used.
129
130 Prior to collection version \ :literal:`5.0.0`\ , the \ :emphasis:`validate\_certs`\ is \ :literal:`false`\ by default.
131
132
133 ca_path (optional, path, None)
134 The Privacy Enhanced Mail (PEM) file that contains a CA certificate to be used for the validation.
135
136
137 timeout (optional, int, 30)
138 The socket level timeout in seconds.
139
140
141
142
143
144 Notes
145 -----
146
147 .. note::
148 - Run this module from a system that has direct access to Dell OpenManage Enterprise Modular.
149 - This module supports \ :literal:`check\_mode`\ .
150
151
152
153
154 Examples
155 --------
156
157 .. code-block:: yaml+jinja
158
159
160 ---
161 - name: Update power configuration settings of a chassis using the device ID.
162 dellemc.openmanage.ome_device_power_settings:
163 hostname: "192.168.0.1"
164 username: "username"
165 password: "password"
166 ca_path: "/path/to/ca_cert.pem"
167 device_id: 25011
168 power_configuration:
169 enable_power_cap: true
170 power_cap: 3424
171
172 - name: Update redundancy configuration settings of a chassis using the device service tag.
173 dellemc.openmanage.ome_device_power_settings:
174 hostname: "192.168.0.1"
175 username: "username"
176 password: "password"
177 ca_path: "/path/to/ca_cert.pem"
178 device_service_tag: GHRT2RL
179 redundancy_configuration:
180 redundancy_policy: GRID_REDUNDANCY
181
182 - name: Update hot spare configuration settings of a chassis using device ID.
183 dellemc.openmanage.ome_device_power_settings:
184 hostname: "192.168.0.1"
185 username: "username"
186 password: "password"
187 ca_path: "/path/to/ca_cert.pem"
188 device_id: 25012
189 hot_spare_configuration:
190 enable_hot_spare: true
191 primary_grid: GRID_1
192
193
194
195 Return Values
196 -------------
197
198 msg (always, str, Successfully updated the power settings.)
199 Overall status of the device power settings.
200
201
202 power_details (success, dict, {'EnableHotSpare': True, 'EnablePowerCapSettings': True, 'MaxPowerCap': '3424', 'MinPowerCap': '3291', 'PowerCap': '3425', 'PrimaryGrid': 'GRID_1', 'RedundancyPolicy': 'NO_REDUNDANCY', 'SettingType': 'Power'})
203 returned when power settings are updated successfully.
204
205
206 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.'}]}})
207 Details of the HTTP Error.
208
209
210
211
212
213 Status
214 ------
215
216
217
218
219
220 Authors
221 ~~~~~~~
222
223 - Felix Stephen (@felixs88)
224