# idrac_storage_controller Role to configure the physical disk, virtual disk, and storage controller settings on iDRAC9 based PowerEdge servers. ## 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
| Name | Required | Default Value | Choices | Type | Description |
|---|---|---|---|---|---|
| hostname | true | str | - iDRAC IP Address | ||
| username | true | str | - iDRAC username | ||
| 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. | |
| controller_id | true | str | - The ID of the controller on which the operations need to be performed. | ||
| volumes | false | dict | - List of volume that belongs to I(controller_id). | ||
| id | true | str | - Fully Qualified Device Descriptor (FQDD) of the volume. | ||
| dedicated_hot_spare | false | str | - Fully Qualified Device Descriptor (FQDD) of the physical disk to assign the volume as a dedicated hot spare to a disk. | ||
| encrypted | false | bool | - To encrypt the virtual disk. | ||
| expand_capacity_disk | false | str | - Fully Qualified Device Descriptor (FQDD) of the disk for expanding the capacity with the existing disk. - I(expand_capacity_size) is mutually exclusive with I(expand_capacity_disk). |
||
| expand_capacity_size | false | str | - Capacity of the virtual disk to be expanded in MB. - Check mode and Idempotency is not supported for I(expand_capacity_size). - Minimum Online Capacity Expansion size must be greater than 100 MB of the current size. - I(expand_capacity_disk) is mutually exclusive with I(expand_capacity_size). |
||
| blink | false | bool | - Blinks the target virtual disk, and it always reports as changes found when check mode is enabled. | ||
| disks | false | dict | - List of physical disks that belongs to I(controller_id). | ||
| id | true | str | - Fully Qualified Device Descriptor (FQDD) of the physical disk. | ||
| blink | false | bool | - Blinks the target physical disk, and it always reports as changes found when check mode is enabled. | ||
| raid_state | false | 'raid', 'nonraid' | str | - Converts the disk form Non-Raid to Raid and vice versa. - C(raid) converts the physical disk to Raid. - C(nonraid) converts the physical disk to Non Raid. |
|
| status | false | 'online', 'offline' | str | - Converts the disk form online to offline and vice versa. - C(online) converts the physical disk status to online. - C(offline) converts the physical disk status to offline. |
|
| global_hot_spare | false | bool | - Assigns a global hot spare or unassigns a hot spare. - C(true) assigns the disk as a global hot spare. - C(false) unassigns the disk as a hot spare. |
||
| erase | false | bool | - Securely erase a device. - C(true) securely erase the disk. - C(false) skips the secure erase operation. |
||
| reset_config | false | bool | - To reset the controller. | ||
| set_controller_key | false | bool | - Set the security key or enable controller encryption. - If I(mode) is provided controller encryption operation is performed, otherwise sets the controller security key. - I(key), and I(key_id) are required for this operation. |
||
| rekey | false | bool | - Resets the key on the controller, and it always reports as changes found when check mode is enabled. | ||
| remove_key | false | bool | - Remove the key on controllers. | ||
| key | false | str | - A new security key passphrase that the encryption-capable controller uses to create the encryption key. The controller uses the encryption key to lock or unlock access to the Self-Encrypting Drive (SED). Only one encryption key can be created for each controller. - This is mandatory when I(set_controller_key) is C(true), I(rekey) is C(true). - The length of the key can be a maximum of 32 characters in length, where the expanded form of the special character is counted as a single character. - The key must contain at least one character from each of the character classes are uppercase, lowercase, number, and special character. |
||
| key_id | false | str | - This is a user supplied text label associated with the passphrase. - This is mandatory when I(set_controller_key) is C(true), I(rekey) is C(true). - The length of I(key_id) can be a maximum of 32 characters in length and should not have any spaces. |
||
| old_key | false | str | - Security key passphrase used by the encryption-capable controller. - This option is mandatory when I(rekey) is C(true). |
||
| mode | false | 'LKM', 'SEKM' | str | - Encryption mode of the encryption capable controller. - This option is mandatory when I(rekey) is C(true) and for enabling controller encryption. - C(SEKM) to choose mode as secure enterprise key manager. - C(LKM) to choose mode as local key management. |
|
| attributes | false | dict | - Dictionary of controller attributes and value pair. - This feature is only supported for iDRAC9 with firmware version 6.00.00.00 and above. - I(controller_id) is required for this operation. - I(apply_time) and I(maintenance_window) is applicable for I(attributes). - Use U(https://I(idrac_ip)/redfish/v1/Schemas/DellOemStorageController.json) to view the attributes. |
||
| apply_time | false | Immediate | 'Immediate', 'OnReset', 'AtMaintenanceWindowStart', 'InMaintenanceWindowOnReset' | str | - Apply time of the I(attributes). - This is applicable only to I(attributes). - C(Immediate) Allows the user to immediately reboot the host and apply the changes. I(job_wait) is applicable. - C(OnReset) Allows the user to apply the changes on the next reboot of the host server. - C(AtMaintenanceWindowStart) Allows the user to apply the changes at the start of a maintenance window as specified in I(maintenance_window). - C(InMaintenanceWindowOnReset) Allows the users to apply after a manual reset but within the maintenance window as specified in I(maintenance_window). |
| maintenance_window | false | dict | - Option to schedule the maintenance window. - This is required when I(apply_time) is C(AtMaintenanceWindowStart) or C(InMaintenanceWindowOnReset). |
||
| start_time | true | str | - The start time for the maintenance window to be scheduled. - The format is YYYY-MM-DDThh:mm:ss - |
||
| duration | false | 900 | int | - The duration in seconds for the maintenance window. |
| Name | Sample | Description |
|---|---|---|
| idrac_storage_controller_out |
|
Returns the output of the idrac_storage_controller |