Debian Codegraph @

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

raw
1 .. _ome_application_network_address_module:
2
3
4 ome_application_network_address -- Updates the network configuration on OpenManage Enterprise
5 =============================================================================================
6
7 .. contents::
8 :local:
9 :depth: 1
10
11
12 Synopsis
13 --------
14
15 This module allows the configuration of a DNS and an IPV4 or IPV6 network on OpenManage Enterprise.
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 enable_nic (optional, bool, True)
31 Enable or disable Network Interface Card (NIC) configuration.
32
33
34 interface_name (optional, str, None)
35 If there are multiple interfaces, network configuration changes can be applied to a single interface using the interface name of the NIC.
36
37 If this option is not specified, Primary interface is chosen by default.
38
39
40 ipv4_configuration (optional, dict, None)
41 IPv4 network configuration.
42
43 \ :emphasis:`Warning`\ Ensure that you have an alternate interface to access OpenManage Enterprise as these options can change the current IPv4 address for \ :emphasis:`hostname`\ .
44
45
46 enable (True, bool, None)
47 Enable or disable access to the network using IPv4.
48
49
50 enable_dhcp (optional, bool, None)
51 Enable or disable the automatic request to get an IPv4 address from the IPv4 Dynamic Host Configuration Protocol (DHCP) server
52
53 If \ :emphasis:`enable\_dhcp`\ option is true, OpenManage Enterprise retrieves the IP configuration—IPv4 address, subnet mask, and gateway from a DHCP server on the existing network.
54
55
56 static_ip_address (optional, str, None)
57 Static IPv4 address
58
59 This option is applicable when \ :emphasis:`enable\_dhcp`\ is false.
60
61
62 static_subnet_mask (optional, str, None)
63 Static IPv4 subnet mask address
64
65 This option is applicable when \ :emphasis:`enable\_dhcp`\ is false.
66
67
68 static_gateway (optional, str, None)
69 Static IPv4 gateway address
70
71 This option is applicable when \ :emphasis:`enable\_dhcp`\ is false.
72
73
74 use_dhcp_for_dns_server_names (optional, bool, None)
75 This option allows to automatically request and obtain a DNS server IPv4 address from the DHCP server.
76
77 This option is applicable when \ :emphasis:`enable\_dhcp`\ is true.
78
79
80 static_preferred_dns_server (optional, str, None)
81 Static IPv4 DNS preferred server
82
83 This option is applicable when \ :emphasis:`use\_dhcp\_for\_dns\_server\_names`\ is false.
84
85
86 static_alternate_dns_server (optional, str, None)
87 Static IPv4 DNS alternate server
88
89 This option is applicable when \ :emphasis:`use\_dhcp\_for\_dns\_server\_names`\ is false.
90
91
92
93 ipv6_configuration (optional, dict, None)
94 IPv6 network configuration.
95
96 \ :emphasis:`Warning`\ Ensure that you have an alternate interface to access OpenManage Enterprise as these options can change the current IPv6 address for \ :emphasis:`hostname`\ .
97
98
99 enable (True, bool, None)
100 Enable or disable access to the network using the IPv6.
101
102
103 enable_auto_configuration (optional, bool, None)
104 Enable or disable the automatic request to get an IPv6 address from the IPv6 DHCP server or router advertisements(RA)
105
106 If \ :emphasis:`enable\_auto\_configuration`\ is true, OME retrieves IP configuration-IPv6 address, prefix, and gateway, from a DHCPv6 server on the existing network
107
108
109 static_ip_address (optional, str, None)
110 Static IPv6 address
111
112 This option is applicable when \ :emphasis:`enable\_auto\_configuration`\ is false.
113
114
115 static_prefix_length (optional, int, None)
116 Static IPv6 prefix length
117
118 This option is applicable when \ :emphasis:`enable\_auto\_configuration`\ is false.
119
120
121 static_gateway (optional, str, None)
122 Static IPv6 gateway address
123
124 This option is applicable when \ :emphasis:`enable\_auto\_configuration`\ is false.
125
126
127 use_dhcp_for_dns_server_names (optional, bool, None)
128 This option allows to automatically request and obtain a DNS server IPv6 address from the DHCP server.
129
130 This option is applicable when \ :emphasis:`enable\_auto\_configuration`\ is true
131
132
133 static_preferred_dns_server (optional, str, None)
134 Static IPv6 DNS preferred server
135
136 This option is applicable when \ :emphasis:`use\_dhcp\_for\_dns\_server\_names`\ is false.
137
138
139 static_alternate_dns_server (optional, str, None)
140 Static IPv6 DNS alternate server
141
142 This option is applicable when \ :emphasis:`use\_dhcp\_for\_dns\_server\_names`\ is false.
143
144
145
146 management_vlan (optional, dict, None)
147 vLAN configuration.
148
149 These settings are applicable for OpenManage Enterprise Modular.
150
151
152 enable_vlan (True, bool, None)
153 Enable or disable vLAN for management.
154
155 The vLAN configuration cannot be updated if the \ :emphasis:`register\_with\_dns`\ field under \ :emphasis:`dns\_configuration`\ is true.
156
157 \ :emphasis:`WARNING`\ Ensure that the network cable is plugged to the correct port after the vLAN configuration changes have been made. If not, the configuration change may not be effective.
158
159
160 vlan_id (optional, int, None)
161 vLAN ID.
162
163 This option is applicable when \ :emphasis:`enable\_vlan`\ is true.
164
165
166
167 dns_configuration (optional, dict, None)
168 Domain Name System(DNS) settings.
169
170
171 register_with_dns (optional, bool, None)
172 Register/Unregister \ :emphasis:`dns\_name`\ on the DNS Server.
173
174 This option cannot be updated if vLAN configuration changes.
175
176
177 use_dhcp_for_dns_domain_name (optional, bool, None)
178 Get the \ :emphasis:`dns\_domain\_name`\ using a DHCP server.
179
180
181 dns_name (optional, str, None)
182 DNS name for \ :emphasis:`hostname`\
183
184 This is applicable when \ :emphasis:`register\_with\_dns`\ is true.
185
186
187 dns_domain_name (optional, str, None)
188 Static DNS domain name
189
190 This is applicable when \ :emphasis:`use\_dhcp\_for\_dns\_domain\_name`\ is false.
191
192
193
194 reboot_delay (optional, int, None)
195 The time in seconds, after which settings are applied.
196
197 This option is not mandatory.
198
199
200 hostname (True, str, None)
201 OpenManage Enterprise or OpenManage Enterprise Modular IP address or hostname.
202
203
204 username (False, str, None)
205 OpenManage Enterprise or OpenManage Enterprise Modular username.
206
207 If the username is not provided, then the environment variable \ :envvar:`OME\_USERNAME`\ is used.
208
209 Example: export OME\_USERNAME=username
210
211
212 password (False, str, None)
213 OpenManage Enterprise or OpenManage Enterprise Modular password.
214
215 If the password is not provided, then the environment variable \ :envvar:`OME\_PASSWORD`\ is used.
216
217 Example: export OME\_PASSWORD=password
218
219
220 x_auth_token (False, str, None)
221 Authentication token.
222
223 If the x\_auth\_token is not provided, then the environment variable \ :envvar:`OME\_X\_AUTH\_TOKEN`\ is used.
224
225 Example: export OME\_X\_AUTH\_TOKEN=x\_auth\_token
226
227
228 port (optional, int, 443)
229 OpenManage Enterprise or OpenManage Enterprise Modular HTTPS port.
230
231
232 validate_certs (optional, bool, True)
233 If \ :literal:`false`\ , the SSL certificates will not be validated.
234
235 Configure \ :literal:`false`\ only on personally controlled sites where self-signed certificates are used.
236
237 Prior to collection version \ :literal:`5.0.0`\ , the \ :emphasis:`validate\_certs`\ is \ :literal:`false`\ by default.
238
239
240 ca_path (optional, path, None)
241 The Privacy Enhanced Mail (PEM) file that contains a CA certificate to be used for the validation.
242
243
244 timeout (optional, int, 30)
245 The socket level timeout in seconds.
246
247
248
249
250
251 Notes
252 -----
253
254 .. note::
255 - The configuration changes can only be applied to one interface at a time.
256 - The system management consoles might be unreachable for some time after the configuration changes are applied.
257 - This module supports \ :literal:`check\_mode`\ .
258
259
260
261
262 Examples
263 --------
264
265 .. code-block:: yaml+jinja
266
267
268 ---
269 - name: IPv4 network configuration for primary interface
270 dellemc.openmanage.ome_application_network_address:
271 hostname: "192.168.0.1"
272 username: "username"
273 password: "password"
274 ca_path: "/path/to/ca_cert.pem"
275 enable_nic: true
276 ipv4_configuration:
277 enable: true
278 enable_dhcp: false
279 static_ip_address: 192.168.0.2
280 static_subnet_mask: 255.255.254.0
281 static_gateway: 192.168.0.3
282 use_dhcp_for_dns_server_names: false
283 static_preferred_dns_server: 192.168.0.4
284 static_alternate_dns_server: 192.168.0.5
285 reboot_delay: 5
286
287 - name: IPv6 network configuration for primary interface
288 dellemc.openmanage.ome_application_network_address:
289 hostname: "192.168.0.1"
290 username: "username"
291 password: "password"
292 ca_path: "/path/to/ca_cert.pem"
293 ipv6_configuration:
294 enable: true
295 enable_auto_configuration: true
296 static_ip_address: 2626:f2f2:f081:9:1c1c:f1f1:4747:1
297 static_prefix_length: 10
298 static_gateway: 2626:f2f2:f081:9:1c1c:f1f1:4747:2
299 use_dhcp_for_dns_server_names: true
300 static_preferred_dns_server: 2626:f2f2:f081:9:1c1c:f1f1:4747:3
301 static_alternate_dns_server: 2626:f2f2:f081:9:1c1c:f1f1:4747:4
302
303 - name: Management vLAN configuration for primary interface
304 dellemc.openmanage.ome_application_network_address:
305 hostname: "192.168.0.1"
306 username: "username"
307 password: "password"
308 ca_path: "/path/to/ca_cert.pem"
309 management_vlan:
310 enable_vlan: true
311 vlan_id: 3344
312 dns_configuration:
313 register_with_dns: false
314 reboot_delay: 1
315
316 - name: DNS settings
317 dellemc.openmanage.ome_application_network_address:
318 hostname: "192.168.0.1"
319 username: "username"
320 password: "password"
321 ca_path: "/path/to/ca_cert.pem"
322 ipv4_configuration:
323 enable: true
324 use_dhcp_for_dns_server_names: false
325 static_preferred_dns_server: 192.168.0.4
326 static_alternate_dns_server: 192.168.0.5
327 dns_configuration:
328 register_with_dns: true
329 use_dhcp_for_dns_domain_name: false
330 dns_name: "MX-SVCTAG"
331 dns_domain_name: "dnslocaldomain"
332
333 - name: Disbale nic interface eth1
334 dellemc.openmanage.ome_application_network_address:
335 hostname: "192.168.0.1"
336 username: "username"
337 password: "password"
338 ca_path: "/path/to/ca_cert.pem"
339 enable_nic: false
340 interface_name: eth1
341
342 - name: Complete network settings for interface eth1
343 dellemc.openmanage.ome_application_network_address:
344 hostname: "192.168.0.1"
345 username: "username"
346 password: "password"
347 ca_path: "/path/to/ca_cert.pem"
348 enable_nic: true
349 interface_name: eth1
350 ipv4_configuration:
351 enable: true
352 enable_dhcp: false
353 static_ip_address: 192.168.0.2
354 static_subnet_mask: 255.255.254.0
355 static_gateway: 192.168.0.3
356 use_dhcp_for_dns_server_names: false
357 static_preferred_dns_server: 192.168.0.4
358 static_alternate_dns_server: 192.168.0.5
359 ipv6_configuration:
360 enable: true
361 enable_auto_configuration: true
362 static_ip_address: 2626:f2f2:f081:9:1c1c:f1f1:4747:1
363 static_prefix_length: 10
364 static_gateway: ffff::2607:f2b1:f081:9
365 use_dhcp_for_dns_server_names: true
366 static_preferred_dns_server: 2626:f2f2:f081:9:1c1c:f1f1:4747:3
367 static_alternate_dns_server: 2626:f2f2:f081:9:1c1c:f1f1:4747:4
368 dns_configuration:
369 register_with_dns: true
370 use_dhcp_for_dns_domain_name: false
371 dns_name: "MX-SVCTAG"
372 dns_domain_name: "dnslocaldomain"
373 reboot_delay: 5
374
375
376
377 Return Values
378 -------------
379
380 msg (always, str, Successfully updated network address configuration)
381 Overall status of the network address configuration change.
382
383
384 network_configuration (on success, dict, {'Delay': 0, 'DnsConfiguration': {'DnsDomainName': '', 'DnsName': 'MX-SVCTAG', 'RegisterWithDNS': False, 'UseDHCPForDNSDomainName': True}, 'EnableNIC': True, 'InterfaceName': 'eth0', 'PrimaryInterface': True, 'Ipv4Configuration': {'Enable': True, 'EnableDHCP': False, 'StaticAlternateDNSServer': '', 'StaticGateway': '192.168.0.2', 'StaticIPAddress': '192.168.0.3', 'StaticPreferredDNSServer': '192.168.0.4', 'StaticSubnetMask': '255.255.254.0', 'UseDHCPForDNSServerNames': False}, 'Ipv6Configuration': {'Enable': True, 'EnableAutoConfiguration': True, 'StaticAlternateDNSServer': '', 'StaticGateway': '', 'StaticIPAddress': '', 'StaticPreferredDNSServer': '', 'StaticPrefixLength': 0, 'UseDHCPForDNSServerNames': True}, 'ManagementVLAN': {'EnableVLAN': False, 'Id': 1}})
385 Updated application network address configuration.
386
387
388 job_info (on success, dict, {'Builtin': False, 'CreatedBy': 'system', 'Editable': True, 'EndTime': None, 'Id': 14902, 'JobDescription': 'Generic OME runtime task', 'JobName': 'OMERealtime_Task', 'JobStatus': {'Id': 2080, 'Name': 'New'}, 'JobType': {'Id': 207, 'Internal': True, 'Name': 'OMERealtime_Task'}, 'LastRun': None, 'LastRunStatus': {'Id': 2080, 'Name': 'New'}, 'NextRun': None, 'Params': [{'JobId': 14902, 'Key': 'Nmcli_Update', 'Value': '{"interfaceName":"eth0","profileName":"eth0","enableNIC":true, "ipv4Configuration":{"enable":true,"enableDHCP":true,"staticIPAddress":"", "staticSubnetMask":"","staticGateway":"","useDHCPForDNSServerNames":true, "staticPreferredDNSServer":"","staticAlternateDNSServer":""}, "ipv6Configuration":{"enable":false,"enableAutoConfiguration":true,"staticIPAddress":"", "staticPrefixLength":0,"staticGateway":"","useDHCPForDNSServerNames":false, "staticPreferredDNSServer":"","staticAlternateDNSServer":""}, "managementVLAN":{"enableVLAN":false,"id":0},"dnsConfiguration":{"registerWithDNS":false, "dnsName":"","useDHCPForDNSDomainName":false,"dnsDomainName":"","fqdndomainName":"", "ipv4CurrentPreferredDNSServer":"","ipv4CurrentAlternateDNSServer":"", "ipv6CurrentPreferredDNSServer":"","ipv6CurrentAlternateDNSServer":""}, "currentSettings":{"ipv4Address":[],"ipv4Gateway":"","ipv4Dns":[],"ipv4Domain":"", "ipv6Address":[],"ipv6LinkLocalAddress":"","ipv6Gateway":"","ipv6Dns":[], "ipv6Domain":""},"delay":0,"primaryInterface":true,"modifiedConfigs":{}}'}], 'Schedule': 'startnow', 'StartTime': None, 'State': 'Enabled', 'Targets': [], 'UpdatedBy': None, 'Visible': True})
389 Details of the job to update in case OME version is \>= 3.3.
390
391
392 error_info (on HTTP error, dict, {'error': {'@Message.ExtendedInfo': [{'Message': 'Unable to update the address configuration because a dependent field is missing for Use DHCP for DNS Domain Name, Enable DHCP for ipv4 or Enable Autoconfig for ipv6 settings for valid configuration .', 'MessageArgs': ['Use DHCP for DNS Domain Name, Enable DHCP for ipv4 or Enable Autoconfig for ipv6 settings for valid configuration'], 'MessageId': 'CAPP1304', 'RelatedProperties': [], 'Resolution': 'Make sure that all dependent fields contain valid content and retry the operation.', 'Severity': 'Critical'}], 'code': 'Base.1.0.GeneralError', 'message': 'A general error has occurred. See ExtendedInfo for more information.'}})
393 Details of the HTTP error.
394
395
396
397
398
399 Status
400 ------
401
402
403
404
405
406 Authors
407 ~~~~~~~
408
409 - Jagadeesh N V(@jagadeeshnv)
410 - Sapana Gupta(@sapana05)
411