dellemc.powerflex.device_group module – Manage Device Groups on Dell PowerFlex
Note
This module is part of the dellemc.powerflex collection (version 3.0.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.device_group.
New in dellemc.powerflex 3.0.0
Synopsis
Managing device groups on PowerFlex Gen2 storage systems includes getting details of a device group, renaming a device group, updating spare node and spare device counts, and querying usable capacity.
Device group creation and deletion are not supported by this module.
Support only for PowerFlex 5.0 versions and above.
Requirements
The below requirements are needed on the host that executes this module.
A Dell PowerFlex storage system version 5.0 or later.
PyPowerFlex 2.0.0
Parameters
Parameter |
Comments |
|---|---|
The ID of the device group. Mutually exclusive with device_group_name. |
|
The name of the device group. Mutually exclusive with device_group_id. |
|
IP or FQDN of the PowerFlex host. |
|
Media type of the device group. Query and validation only; it cannot be modified. Choices:
|
|
New name for the device group (rename operation). |
|
The password of the PowerFlex host. |
|
Port number through which communication happens with PowerFlex host. Default: |
|
ID of the protection domain for device group identification/validation. Mutually exclusive with protection_domain_name. |
|
Name of the protection domain for device group identification/validation. Mutually exclusive with protection_domain_id. |
|
Whether to query the usable capacity of the device group. This is a read-only operation. Choices:
|
|
Spare device count for the device group. |
|
Spare node count for the device group. |
|
State of the device group. Only 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:
|
Attributes
Attribute |
Support |
Description |
|---|---|---|
Support: full |
Runs task to validate without performing action on the target machine. |
|
Support: full |
Runs the task to report the changes made or to be made. |
Notes
Note
The modules present in the collection named as ‘dellemc.powerflex’ are built to support the Dell PowerFlex storage platform.
Examples
- name: Get device group details by name
dellemc.powerflex.device_group:
hostname: "{{ hostname }}"
username: "{{ username }}"
password: "<your_password>"
validate_certs: "{{ validate_certs }}"
device_group_name: "DG1"
state: "present"
- name: Get device group details by ID
dellemc.powerflex.device_group:
hostname: "{{ hostname }}"
username: "{{ username }}"
password: "<your_password>"
validate_certs: "{{ validate_certs }}"
device_group_id: "39a898be00000000"
state: "present"
- name: Rename device group and update spare counts
dellemc.powerflex.device_group:
hostname: "{{ hostname }}"
username: "{{ username }}"
password: "<your_password>"
validate_certs: "{{ validate_certs }}"
device_group_name: "DG1"
new_device_group_name: "DG1_renamed"
spare_node_count: 2
spare_device_count: 1
state: "present"
- name: Query usable capacity for a device group
dellemc.powerflex.device_group:
hostname: "{{ hostname }}"
username: "{{ username }}"
password: "<your_password>"
validate_certs: "{{ validate_certs }}"
device_group_id: "39a898be00000000"
query_usable_capacity: true
state: "present"
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 device group. Returned: When device group exists Sample: |
|
Device group ID. Returned: success |
|
Related resource links. Returned: success |
|
Media type of the device group. Returned: success |
|
Device group name. Returned: success |
|
Protection domain ID. Returned: success |
|
Spare device count. Returned: success |
|
Spare node count. Returned: success |
|
Usable capacity details for the device group. Returned: When query_usable_capacity is true Sample: |