dellemc.openmanage.dellemc_configure_idrac_services module – Configures the iDRAC services related attributes
Note
This module is part of the dellemc.openmanage collection (version 4.4.0).
You might already have this collection installed if you are using the ansible
package.
It is not included in ansible-core
.
To check whether it is installed, run ansible-galaxy collection list
.
To install it, use: ansible-galaxy collection install dellemc.openmanage
.
To use it in a playbook, specify: dellemc.openmanage.dellemc_configure_idrac_services
.
New in version 1.0.0: of dellemc.openmanage
Requirements
The below requirements are needed on the host that executes this module.
omsdk
python >= 2.7.5
Parameters
Parameter |
Comments |
---|---|
The iDRAC port number that must be used for SNMP traps. The default value is 162, and the acceptable range is between 1 to 65535. Default: 162 |
|
SNMP community name for iDRAC. It is used by iDRAC to validate SNMP queries received from remote systems requesting SNMP data access. |
|
The SNMP agent port on the iDRAC. The default value is 161, and the acceptable range is between 1 to 65535. Default: 161 |
|
Whether to Enable or Disable webserver configuration for iDRAC. Choices:
|
|
HTTP access port. |
|
HTTPS access port. |
|
iDRAC IP Address. |
|
iDRAC user password. |
|
iDRAC port. Default: 443 |
|
iDRAC username. |
|
Community name set on iDRAC for SNMP settings. |
|
This option is used by iDRAC when it sends out SNMP and IPMI traps. The community name is checked by the remote system to which the traps are sent. |
|
Local mount path of the network share with read-write permission for ansible user. This option is mandatory for Network Share. |
|
Network share or a local path. |
|
Network share user password. This option is mandatory for CIFS Network Share. |
|
Network share user in the format ‘user@domain’ or ‘domainuser’ if user is part of a domain else ‘user’. This option is mandatory for CIFS Network Share. |
|
Whether to Enable or Disable SNMP protocol for iDRAC. Choices:
|
|
Type of the SNMP protocol. Choices:
|
|
Secure Socket Layer encryption for webserver. Choices:
|
|
Timeout value. |
|
Transport Layer Security for webserver. Choices:
|
|
SNMP trap format for iDRAC. Choices:
|
Notes
Note
This module requires ‘Administrator’ privilege for idrac_user.
Run this module from a system that has direct access to Dell EMC iDRAC.
This module supports
check_mode
.
Examples
---
- name: Configure the iDRAC services attributes
dellemc.openmanage.dellemc_configure_idrac_services:
idrac_ip: "192.168.0.1"
idrac_user: "user_name"
idrac_password: "user_password"
share_name: "192.168.0.1:/share"
share_mnt: "/mnt/share"
enable_web_server: "Enabled"
http_port: 80
https_port: 443
ssl_encryption: "Auto_Negotiate"
tls_protocol: "TLS_1_2_Only"
timeout: "1800"
snmp_enable: "Enabled"
snmp_protocol: "SNMPv3"
community_name: "public"
alert_port: 162
discovery_port: 161
trap_format: "SNMPv3"
ipmi_lan:
community_name: "public"
Return Values
Common return values are documented here, the following are the fields unique to this module:
Key |
Description |
---|---|
Details of the HTTP Error. Returned: on HTTP error Sample: {“error”: {“@Message.ExtendedInfo”: [{“Message”: “Unable to process the request because an error occurred.”, “MessageArgs”: [], “MessageId”: “GEN1234”, “RelatedProperties”: [], “Resolution”: “Retry the operation. If the issue persists, contact your system administrator.”, “Severity”: “Critical”}], “code”: “Base.1.0.GeneralError”, “message”: “A general error has occurred. See ExtendedInfo for more information.”}} |
|
Overall status of iDRAC service attributes configuration. Returned: always Sample: “Successfully configured the iDRAC services settings.” |
|
Details of iDRAC services attributes configuration. Returned: success Sample: {“CompletionTime”: “2020-04-02T02:43:28”, “Description”: “Job Instance”, “EndTime”: null, “Id”: “JID_12345123456”, “JobState”: “Completed”, “JobType”: “ImportConfiguration”, “Message”: “Successfully imported and applied Server Configuration Profile.”, “MessageArgs”: [], “MessageId”: “SYS053”, “Name”: “Import Configuration”, “PercentComplete”: 100, “StartTime”: “TIME_NOW”, “Status”: “Success”, “TargetSettingsURI”: null, “retval”: true} |
Authors
Felix Stephen (@felixs88)