Debian Codegraph @

ansible_collections/dellemc/openmanage/roles/idrac_attributes/README.md

raw symbols SCIP
1 # idrac_attributes
2
3 Role to configure the iDRAC system, manager and lifecycle attributes for Dell PowerEdge servers.
4
5 ## Requirements
6
7 ### Development
8 Requirements to develop and contribute to the role.
9 ```
10 ansible
11 docker
12 molecule
13 python
14 ```
15 ### Production
16 Requirements to use the role.
17 ```
18 ansible
19 python
20 ```
21
22 ### Ansible collections
23 Collections required to use the role
24 ```
25 dellemc.openmanage
26 ```
27
28 ## Role Variables
29
30 <table>
31 <thead>
32 <tr>
33 <th>Name</th>
34 <th>Required</th>
35 <th>Default Value</th>
36 <th>Choices</th>
37 <th>Type</th>
38 <th>Description</th>
39 </tr>
40 </thead>
41 <tbody>
42 <tr>
43 <td>hostname</td>
44 <td>true</td>
45 <td></td>
46 <td></td>
47 <td>str</td>
48 <td>- iDRAC IP Address or hostname.</td>
49 </tr>
50 <tr>
51 <td>username</td>
52 <td>true</td>
53 <td></td>
54 <td></td>
55 <td>str</td>
56 <td>- iDRAC username with admin privileges</td>
57 </tr>
58 <tr>
59 <td>password</td>
60 <td>true</td>
61 <td></td>
62 <td></td>
63 <td>str</td>
64 <td>- iDRAC user password.</td>
65 </tr>
66 <tr>
67 <td>https_port</td>
68 <td>false</td>
69 <td>443</td>
70 <td></td>
71 <td>int</td>
72 <td>- iDRAC port.</td>
73 </tr>
74 <tr>
75 <td>validate_certs</td>
76 <td>false</td>
77 <td>true</td>
78 <td></td>
79 <td>bool</td>
80 <td>- If C(false), the SSL certificates will not be validated.<br>- Configure C(false) only on personally controlled sites where self-signed certificates are used.</td>
81 </tr>
82 <tr>
83 <td>ca_path</td>
84 <td>false</td>
85 <td></td>
86 <td></td>
87 <td>path</td>
88 <td>- The Privacy Enhanced Mail (PEM) file that contains a CA certificate to be used for the validation.</td>
89 </tr>
90 <tr>
91 <td>https_timeout</td>
92 <td>false</td>
93 <td>30</td>
94 <td></td>
95 <td>int</td>
96 <td>- The HTTPS socket level timeout in seconds.</td>
97 </tr>
98 <tr>
99 <td>idrac_attributes</td>
100 <td>false</td>
101 <td></td>
102 <td></td>
103 <td>dict</td>
104 <td>- Dictionary of iDRAC attributes and value. The attributes should be part of the Integrated Dell Remote Access Controller Attribute Registry.<br>- To view the list of attributes in Attribute Registry for iDRAC9 and above, use the Role idrac_gather_facts with idrac components.<br>- For iDRAC8 based servers, derive the manager attribute name from Server Configuration Profile.<br>- If the manager attribute name in Server Configuration Profile is <GroupName><Instance>#<AttributeName>(for Example, 'SNMP.1#AgentCommunity') then the equivalent attribute name for Redfish is <GroupName>.<Instance>.<AttributeName> (for Example, 'SNMP.1.AgentCommunity').</td>
105 </tr>
106 <tr>
107 <td>system_attributes</td>
108 <td>false</td>
109 <td></td>
110 <td></td>
111 <td>dict</td>
112 <td>- Dictionary of System attributes and value. The attributes should be part of the Integrated Dell Remote Access Controller Attribute Registry.<br>- To view the list of attributes in Attribute Registry for iDRAC9 and above, use the Role idrac_gather_facts with idrac components.<br>- For iDRAC8 based servers, derive the manager attribute name from Server Configuration Profile.<br>- If the manager attribute name in Server Configuration Profile is <GroupName><Instance>#<AttributeName> for Example, 'ThermalSettings.1#ThermalProfile') then the equivalent attribute name for Redfish is <GroupName>.<Instance>.<AttributeName> (for Example, 'ThermalSettings.1.ThermalProfile').</td>
113 </tr>
114 <tr>
115 <td>lifecycle_controller_attributes</td>
116 <td>false</td>
117 <td></td>
118 <td></td>
119 <td>dict</td>
120 <td>- Dictionary of Lifecycle Controller attributes and value. The attributes should be part of the Integrated Dell Remote Access Controller Attribute Registry.<br>- To view the list of attributes in Attribute Registry for iDRAC9 and above, use the Role idrac_gather_facts with idrac components.<br>- For iDRAC8 based servers, derive the manager attribute name from Server Configuration Profile.<br>- If the manager attribute name in Server Configuration Profile is <GroupName>.<Instance>#<AttributeName>(for Example, 'LCAttributes.1#AutoUpdate') then the equivalent attribute name for Redfish is <GroupName>.<Instance>.<AttributeName>(for Example, 'LCAttributes.1.AutoUpdate')</td>
121 <tr>
122 <td>manager_id</td>
123 <td>false</td>
124 <td></td>
125 <td></td>
126 <td>str</td>
127 <td>- Redfish ID of the resource. If the Redfish ID of the resource is not specified, then the first ID from the Manager IDs list will be picked up.</td>
128 </tr>
129 </tbody>
130 </table>
131
132 ## Fact variables
133
134 <table>
135 <thead>
136 <tr>
137 <th>Name</th>
138 <th>Sample</th>
139 <th>Description</th>
140 </tr>
141 </thead>
142 <tbody>
143 <tr>
144 <td>idrac_attributes_out</td>
145 <td>{"changed": true,
146 "failed": false,
147 "msg": "Successfully updated the attributes."
148 }</td>
149 <td>Module output of idrac attributes</td>
150 </tbody>
151 </table>
152
153 ## Examples
154 -----
155
156 ```
157 - name: Configure iDRAC attributes
158 ansible.builtin.include_role:
159 name: idrac_attributes
160 vars:
161 hostname: "192.168.0.1"
162 username: "username"
163 password: "password"
164 idrac_attributes:
165 SNMP.1.AgentCommunity: public
166
167 - name: Configure System attributes
168 ansible.builtin.include_role:
169 name: idrac_attributes
170 vars:
171 hostname: "192.168.0.1"
172 username: "username"
173 password: "password"
174 system_attributes:
175 ThermalSettings.1.ThermalProfile: Sound Cap
176
177 - name: Configure Lifecycle Controller attributes
178 ansible.builtin.include_role:
179 name: idrac_attributes
180 vars:
181 hostname: "192.168.0.1"
182 username: "username"
183 password: "password"
184 lifecycle_controller_attributes:
185 LCAttributes.1.AutoUpdate: Enabled
186
187 - name: Configure the iDRAC attributes for email alert settings.
188 ansible.builtin.include_role:
189 name: idrac_attributes
190 vars:
191 hostname: "192.168.0.1"
192 username: "username"
193 password: "password"
194 idrac_attributes:
195 EmailAlert.1.CustomMsg: Display Message
196 EmailAlert.1.Enable: Enabled
197 EmailAlert.1.Address: [email protected]
198
199 - name: Configure the iDRAC attributes for SNMP alert settings.
200 ansible.builtin.include_role:
201 name: idrac_attributes
202 vars:
203 hostname: "192.168.0.1"
204 username: "username"
205 password: "password"
206 idrac_attributes:
207 SNMPAlert.1.Destination: 192.168.0.2
208 SNMPAlert.1.State: Enabled
209 SNMPAlert.1.SNMPv3Username: username
210
211 - name: Configure the iDRAC attributes for SMTP alert settings.
212 ansible.builtin.include_role:
213 name: idrac_attributes
214 vars:
215 hostname: "192.168.0.1"
216 username: "username"
217 password: "password"
218 idrac_attributes:
219 RemoteHosts.1.SMTPServerIPAddress: 192.168.0.3
220 RemoteHosts.1.SMTPAuthentication: Enabled
221 RemoteHosts.1.SMTPPort: 25
222 RemoteHosts.1.SMTPUserName: username
223 RemoteHosts.1.SMTPPassword: password
224
225 - name: Configure the iDRAC attributes for webserver settings.
226 ansible.builtin.include_role:
227 name: idrac_attributes
228 vars:
229 hostname: "192.168.0.1"
230 username: "username"
231 password: "password"
232 idrac_attributes:
233 WebServer.1.SSLEncryptionBitLength: 128-Bit or higher
234 WebServer.1.TLSProtocol: TLS 1.1 and Higher
235
236 - name: Configure the iDRAC attributes for SNMP settings.
237 ansible.builtin.include_role:
238 name: idrac_attributes
239 vars:
240 hostname: "192.168.0.1"
241 username: "username"
242 password: "password"
243 idrac_attributes:
244 SNMP.1.SNMPProtocol: All
245 SNMP.1.AgentEnable: Enabled
246 SNMP.1.TrapFormat: SNMPv1
247 SNMP.1.AlertPort: 162
248 SNMP.1.AgentCommunity: public
249
250 - name: Configure the iDRAC LC attributes for collecting system inventory.
251 ansible.builtin.include_role:
252 name: idrac_attributes
253 vars:
254 hostname: "192.168.0.1"
255 username: "username"
256 password: "password"
257 lifecycle_controller_attributes:
258 LCAttributes.1.CollectSystemInventoryOnRestart: Enabled
259
260 - name: Configure the iDRAC system attributes for LCD configuration.
261 ansible.builtin.include_role:
262 name: idrac_attributes
263 vars:
264 hostname: "192.168.0.1"
265 username: "username"
266 password: "password"
267 system_attributes:
268 LCD.1.Configuration: Service Tag
269 LCD.1.vConsoleIndication: Enabled
270 LCD.1.FrontPanelLocking: Full-Access
271 LCD.1.UserDefinedString: custom string
272
273 - name: Configure the iDRAC attributes for Timezone settings.
274 ansible.builtin.include_role:
275 name: idrac_attributes
276 vars:
277 hostname: "192.168.0.1"
278 username: "username"
279 password: "password"
280 idrac_attributes:
281 Time.1.Timezone: CST6CDT
282 NTPConfigGroup.1.NTPEnable: Enabled
283 NTPConfigGroup.1.NTP1: 192.168.0.5
284 NTPConfigGroup.1.NTP2: 192.168.0.6
285 NTPConfigGroup.1.NTP3: 192.168.0.7
286
287 - name: Configure all attributes
288 ansible.builtin.include_role:
289 name: idrac_attributes
290 vars:
291 hostname: "192.168.0.1"
292 username: "username"
293 password: "password"
294 idrac_attributes:
295 SNMP.1.AgentCommunity: test
296 SNMP.1.AgentEnable: Enabled
297 SNMP.1.DiscoveryPort: 161
298 system_attributes:
299 ServerOS.1.HostName: demohostname
300 lifecycle_controller_attributes:
301 LCAttributes.1.AutoUpdate: Disabled
302 ```
303
304 ## Author Information
305 ------------------
306
307 Dell Technologies <br>
308 Kritika Bhateja ([email protected]) 2023