# idrac_user Role to manage local users for iDRAC. ## Requirements ### Development Requirements to develop and contribute to the role. ``` ansible docker molecule python ``` ### Production Requirements to use the role. ``` ansible python ``` ### Ansible collections Collections required to use the role ``` dellemc.openmanage ``` ## Role Variables ## Fact variables
Name Required Default Value Choices Type Description
hostname true str - IPv4, IPv6 Address or hostname of the iDRAC.
username true str - iDRAC username with 'Administrator' privilege.
password true str - iDRAC user password.
https_port false 443 int - iDRAC port.
validate_certs false true bool - If C(false), the SSL certificates will not be validated.
- Configure C(false) only on personally controlled sites where self-signed certificates are used.
ca_path false path - The Privacy Enhanced Mail (PEM) file that contains a CA certificate to be used for the validation.
https_timeout false 30 int - The HTTPS socket level timeout in seconds.
state false present [present, absent] str - Select C(present) to create or modify a user account.
- Select C(absent) to remove a user account.
user_name true str - Provide username of the iDRAC user account that is created, deleted, or modified.
user_password false str - Provide password for the iDRAC user account that is created, or modified. The password can be changed when the user account is modified.
- To ensure security, the I(user_password) must be at least eight characters long and must contain lowercase and upper-case characters, numbers, and special characters.
new_user_name false str - Provide the I(user_name) for the iDRAC user account that is modified.
privilege false ["Administrator","ReadOnly","Operator","None"] str - Following are the role-based privileges.
- A user with C(Administrator) privilege can log in to iDRAC, and then configure iDRAC, configure users,clear logs, control and configure system, access virtual console, access virtual media, test alerts, and execute debug commands.
- A user with C(Operator) privilege can log in to iDRAC, and then configure iDRAC, control and configure system, access virtual console, access virtual media, and execute debug commands.
- A user with C(ReadOnly) privilege can only log in to iDRAC.
- A user with C(None), no privileges assigned.
- Will be ignored, if I(custom_privilege) parameter is provided.
custom_privilege false int - Provide the custom role-based authority privileges allowed for the user.
- To create a custom privilege, add up the privilege decimal values as defined below.
Login - 1
Configure - 2
Configure Users - 4
Logs - 8
System Control - 16
Access Virtual Console - 32
Access Virtual Media - 64
System Operations - 128
Debug - 256
- The value has to be in the range 0-511.
ipmi_lan_privilege false ["Administrator","ReadOnly","Operator","No Access"] str - The Intelligent Platform Management Interface LAN privilege level assigned to the user.
ipmi_serial_privilege false ["Administrator","ReadOnly","Operator","No Access"] str - The Intelligent Platform Management Interface Serial Port privilege level assigned to the user.
- This option is only applicable for rack and tower servers.
enable false bool Provide the option to enable or disable a user from logging in to iDRAC.
sol_enable false bool Enables Serial Over Lan (SOL) for an iDRAC user.
protocol_enable false bool Enables SNMPv3 protocol for the iDRAC user.
authentication_protocol false ["None","SHA5","MD5"] str - This option allows to configure one of the following authentication protocol types to authenticate the iDRAC user.
- Secure Hash Algorithm C(SHA).
- Message Digest 5 C(MD5).
- If C(None) is selected, then the authentication protocol is not configured.
privacy_protocol false ["None","DES","AES"] str - This option allows to configure one of the following privacy encryption protocols for the iDRAC user.
- Data Encryption Standard C(DES).
- Advanced Encryption Standard C(AES).
- If C(None) is selected, then the privacy protocol is not configured.
Name Sample Description
idrac_user_out {"changed": true, "failed": false, "msg": "Successfully created user account details." } Output of the iDRAC user role
idrac_user_account {"changed": true, "failed": false, { "AccountTypes": [ "Redfish", "SNMP", "OEM", "HostConsole", "ManagerConsole", "IPMI", "KVMIP", "VirtualMedia", "WebUI" ], "Description": "User Account", "Enabled": true, "Id": "2", "Locked": false, "Name": "User Account", "OEMAccountTypes": [ "IPMI", "SOL", "WSMAN", "UI", "RACADM" ], "Oem": { "Dell": { "SNMPv3PassphraseEnabled": "Disabled" } }, "Password": null, "PasswordChangeRequired": false, "PasswordExpiration": null, "RoleId": "Administrator", "SNMP": { "AuthenticationKey": null, "AuthenticationKeySet": true, "AuthenticationProtocol": "HMAC_MD5", "EncryptionKey": null, "EncryptionKeySet": true, "EncryptionProtocol": "CBC_DES" }, "StrictAccountTypes": false, "UserName": "root" }" } Details of the iDRAC user account that is created or modified.
## Examples --- ```yml - name: Configure a new iDRAC user ansible.builtin.import_role: name: idrac_user vars: hostname: "192.1.2.1" username: "username" password: "password" ca_path: "/path/to/ca_cert.pem" state: present user_name: user_name user_password: user_password privilege: Administrator ipmi_lan_privilege: Administrator ipmi_serial_privilege: Administrator enable: true sol_enable: true protocol_enable: true authentication_protocol: SHA privacy_protocol: AES ``` ```yml - name: Modify username and password for the existing iDRAC user ansible.builtin.import_role: name: idrac_user vars: hostname: "192.1.2.1" username: "username" password: "password" ca_path: "/path/to/ca_cert.pem" state: present user_name: user_name new_user_name: new_user_name user_password: user_password ``` ```yml -- name: Delete existing iDRAC user account ansible.builtin.import_role: name: idrac_user vars: hostname: "192.1.2.1" username: "username" password: "password" ca_path: "/path/to/ca_cert.pem" state: absent user_name: user_name ``` ## Author Information --- Dell Technologies
Kritika Bhateja (Kritika.Bhateja@Dell.com) 2024