dellemc.powerflex.sdc module – Manage SDCs on Dell PowerFlex
Note
This module is part of the dellemc.powerflex collection (version 1.9.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.powerflex
.
You need further requirements to be able to use this module,
see Requirements for details.
To use it in a playbook, specify: dellemc.powerflex.sdc
.
New in dellemc.powerflex 1.0.0
Synopsis
Managing SDCs on PowerFlex storage system includes getting details of SDC and renaming SDC.
Aliases: dellemc_powerflex_sdc
Requirements
The below requirements are needed on the host that executes this module.
A Dell PowerFlex storage system version 3.5 or later.
Ansible-core 2.13 or later.
PyPowerFlex 1.8.0.
Python 3.9, 3.10 or 3.11.
Parameters
Parameter |
Comments |
---|---|
IP or FQDN of the PowerFlex host. |
|
The password of the PowerFlex host. |
|
Define the performance profile as Compact or HighPerformance. The high performance profile configures a predefined set of parameters for very high performance use cases. Choices:
|
|
Port number through which communication happens with PowerFlex host. Default: |
|
ID of the SDC. Specify either sdc_name, sdc_id or sdc_ip for get/rename operation. Mutually exclusive with sdc_name and sdc_ip. |
|
IP of the SDC. Specify either sdc_name, sdc_id or sdc_ip for get/rename operation. Mutually exclusive with sdc_id and sdc_name. |
|
Name of the SDC. Specify either sdc_name, sdc_id or sdc_ip for get/rename operation. Mutually exclusive with sdc_id and sdc_ip. |
|
New name of the SDC. Used to rename the SDC. |
|
State of the SDC. Choices:
|
|
Time after which connection will get terminated. It is to be mentioned in seconds. Default: |
|
The username of the PowerFlex host. |
|
Boolean variable to specify whether or not to validate SSL certificate.
Choices:
|
Notes
Note
The check_mode is not supported.
The modules present in the collection named as ‘dellemc.powerflex’ are built to support the Dell PowerFlex storage platform.
Examples
- name: Get SDC details using SDC ip
dellemc.powerflex.sdc:
hostname: "{{hostname}}"
username: "{{username}}"
password: "{{password}}"
validate_certs: "{{validate_certs}}"
sdc_ip: "{{sdc_ip}}"
state: "present"
- name: Rename SDC using SDC name
dellemc.powerflex.sdc:
hostname: "{{hostname}}"
username: "{{username}}"
password: "{{password}}"
validate_certs: "{{validate_certs}}"
sdc_name: "centos_sdc"
sdc_new_name: "centos_sdc_renamed"
state: "present"
- name: Modify performance profile of SDC using SDC name
dellemc.powerflex.sdc:
hostname: "{{hostname}}"
username: "{{username}}"
password: "{{password}}"
validate_certs: "{{validate_certs}}"
sdc_name: "centos_sdc"
performance_profile: "Compact"
state: "present"
- name: Remove SDC using SDC name
dellemc.powerflex.sdc:
hostname: "{{hostname}}"
username: "{{username}}"
password: "{{password}}"
validate_certs: "{{validate_certs}}"
sdc_name: "centos_sdc"
state: "absent"
Return Values
Common return values are documented here, the following are the fields unique to this module:
Key |
Description |
---|---|
Whether or not the resource has changed. Returned: always Sample: |
|
Details of the SDC. Returned: When SDC exists Sample: |
|
The ID of the SDC. Returned: success |
|
The details of the mapped volumes. Returned: success |
|
The ID of the volume. Returned: success |
|
The name of the volume. Returned: success |
|
Type of the volume. Returned: success |
|
Name of the SDC. Returned: success |
|
OS type of the SDC. Returned: success |
|
Indicates whether an SDC has approved access to the system. Returned: success |
|
IP of the SDC. Returned: success |