Debian Codegraph @

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

raw
1 .. _idrac_network_module:
2
3
4 idrac_network -- Configures the iDRAC network attributes
5 ========================================================
6
7 .. contents::
8 :local:
9 :depth: 1
10
11
12 Synopsis
13 --------
14
15 This module allows to configure iDRAC network settings.
16
17
18
19 Requirements
20 ------------
21 The below requirements are needed on the host that executes this module.
22
23 - omsdk \>= 1.2.488
24 - python \>= 3.9.6
25
26
27
28 Parameters
29 ----------
30
31 share_name (optional, str, None)
32 (deprecated)Network share or a local path.
33
34 This option is deprecated and will be removed in the later version.
35
36
37 share_user (optional, str, None)
38 (deprecated)Network share user name. Use the format 'user@domain' or 'domain\\user' if user is part of a domain. This option is mandatory for CIFS share.
39
40 This option is deprecated and will be removed in the later version.
41
42
43 share_password (optional, str, None)
44 (deprecated)Network share user password. This option is mandatory for CIFS share.
45
46 This option is deprecated and will be removed in the later version.
47
48
49 share_mnt (optional, str, None)
50 (deprecated)Local mount path of the network share with read-write permission for ansible user. This option is mandatory for network shares.
51
52 This option is deprecated and will be removed in the later version.
53
54
55 setup_idrac_nic_vlan (optional, str, None)
56 Allows to configure VLAN on iDRAC.
57
58
59 register_idrac_on_dns (optional, str, None)
60 Registers iDRAC on a Domain Name System (DNS).
61
62
63 dns_idrac_name (optional, str, None)
64 Name of the DNS to register iDRAC.
65
66
67 auto_config (optional, str, None)
68 Allows to enable or disable auto-provisioning to automatically acquire domain name from DHCP.
69
70
71 static_dns (optional, str, None)
72 Enter the static DNS domain name.
73
74
75 vlan_id (optional, int, None)
76 Enter the VLAN ID. The VLAN ID must be a number from 1 through 4094.
77
78
79 vlan_priority (optional, int, None)
80 Enter the priority for the VLAN ID. The priority value must be a number from 0 through 7.
81
82
83 enable_nic (optional, str, None)
84 Allows to enable or disable the Network Interface Controller (NIC) used by iDRAC.
85
86
87 nic_selection (optional, str, None)
88 Select one of the available NICs.
89
90
91 failover_network (optional, str, None)
92 Select one of the remaining LOMs. If a network fails, the traffic is routed through the failover network.
93
94
95 auto_detect (optional, str, None)
96 Allows to auto detect the available NIC types used by iDRAC.
97
98
99 auto_negotiation (optional, str, None)
100 Allows iDRAC to automatically set the duplex mode and network speed.
101
102
103 network_speed (optional, str, None)
104 Select the network speed for the selected NIC.
105
106
107 duplex_mode (optional, str, None)
108 Select the type of data transmission for the NIC.
109
110
111 nic_mtu (optional, int, None)
112 Maximum Transmission Unit of the NIC.
113
114
115 ip_address (optional, str, None)
116 Enter a valid iDRAC static IPv4 address.
117
118
119 enable_dhcp (optional, str, None)
120 Allows to enable or disable Dynamic Host Configuration Protocol (DHCP) in iDRAC.
121
122
123 enable_ipv4 (optional, str, None)
124 Allows to enable or disable IPv4 configuration.
125
126
127 dns_from_dhcp (optional, str, None)
128 Allows to enable DHCP to obtain DNS server address.
129
130
131 static_dns_1 (optional, str, None)
132 Enter the preferred static DNS server IPv4 address.
133
134
135 static_dns_2 (optional, str, None)
136 Enter the preferred static DNS server IPv4 address.
137
138
139 static_gateway (optional, str, None)
140 Enter the static IPv4 gateway address to iDRAC.
141
142
143 static_net_mask (optional, str, None)
144 Enter the static IP subnet mask to iDRAC.
145
146
147 idrac_ip (True, str, None)
148 iDRAC IP Address.
149
150
151 idrac_user (True, str, None)
152 iDRAC username.
153
154 If the username is not provided, then the environment variable \ :envvar:`IDRAC\_USERNAME`\ is used.
155
156 Example: export IDRAC\_USERNAME=username
157
158
159 idrac_password (True, str, None)
160 iDRAC user password.
161
162 If the password is not provided, then the environment variable \ :envvar:`IDRAC\_PASSWORD`\ is used.
163
164 Example: export IDRAC\_PASSWORD=password
165
166
167 idrac_port (optional, int, 443)
168 iDRAC port.
169
170
171 validate_certs (optional, bool, True)
172 If \ :literal:`false`\ , the SSL certificates will not be validated.
173
174 Configure \ :literal:`false`\ only on personally controlled sites where self-signed certificates are used.
175
176 Prior to collection version \ :literal:`5.0.0`\ , the \ :emphasis:`validate\_certs`\ is \ :literal:`false`\ by default.
177
178
179 ca_path (optional, path, None)
180 The Privacy Enhanced Mail (PEM) file that contains a CA certificate to be used for the validation.
181
182
183 timeout (optional, int, 30)
184 The socket level timeout in seconds.
185
186
187
188
189
190 Notes
191 -----
192
193 .. note::
194 - This module requires 'Administrator' privilege for \ :emphasis:`idrac\_user`\ .
195 - Run this module from a system that has direct access to Dell iDRAC.
196 - This module supports both IPv4 and IPv6 address for \ :emphasis:`idrac\_ip`\ .
197 - This module supports \ :literal:`check\_mode`\ .
198
199
200
201
202 Examples
203 --------
204
205 .. code-block:: yaml+jinja
206
207
208 ---
209 - name: Configure iDRAC network settings
210 dellemc.openmanage.idrac_network:
211 idrac_ip: "192.168.0.1"
212 idrac_user: "user_name"
213 idrac_password: "user_password"
214 ca_path: "/path/to/ca_cert.pem"
215 register_idrac_on_dns: Enabled
216 dns_idrac_name: None
217 auto_config: None
218 static_dns: None
219 setup_idrac_nic_vlan: Enabled
220 vlan_id: 0
221 vlan_priority: 1
222 enable_nic: Enabled
223 nic_selection: Dedicated
224 failover_network: T_None
225 auto_detect: Disabled
226 auto_negotiation: Enabled
227 network_speed: T_1000
228 duplex_mode: Full
229 nic_mtu: 1500
230 ip_address: "192.168.0.1"
231 enable_dhcp: Enabled
232 enable_ipv4: Enabled
233 static_dns_1: "192.168.0.1"
234 static_dns_2: "192.168.0.1"
235 dns_from_dhcp: Enabled
236 static_gateway: None
237 static_net_mask: None
238
239
240
241 Return Values
242 -------------
243
244 msg (always, str, Successfully configured the idrac network settings.)
245 Successfully configured the idrac network settings.
246
247
248 network_status (success, dict, {'@odata.context': '/redfish/v1/$metadata#DellJob.DellJob', '@odata.id': '/redfish/v1/Managers/iDRAC.Embedded.1/Jobs/JID_856418531008', '@odata.type': '#DellJob.v1_0_2.DellJob', 'CompletionTime': '2020-03-31T03:04:15', 'Description': 'Job Instance', 'EndTime': None, 'Id': 'JID_856418531008', 'JobState': 'Completed', 'JobType': 'ImportConfiguration', 'Message': 'Successfully imported and applied Server Configuration Profile.', 'MessageArgs': [], '[email protected]': 0, 'MessageId': 'SYS053', 'Name': 'Import Configuration', 'PercentComplete': 100, 'StartTime': 'TIME_NOW', 'Status': 'Success', 'TargetSettingsURI': None, 'retval': True})
249 Status of the Network settings operation job.
250
251
252 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.'}]}})
253 Details of the HTTP Error.
254
255
256
257
258
259 Status
260 ------
261
262
263 - This module will be removed in version
264 .
265 *[deprecated]*
266
267
268 Authors
269 ~~~~~~~
270
271 - Felix Stephen (@felixs88)
272 - Anooja Vardhineni (@anooja-vardhineni)
273