| 1 |
.. _resource_group_module: |
| 2 |
|
| 3 |
|
| 4 |
resource_group -- Manage resource group deployments on Dell PowerFlex. |
| 5 |
====================================================================== |
| 6 |
|
| 7 |
.. contents:: |
| 8 |
:local: |
| 9 |
:depth: 1 |
| 10 |
|
| 11 |
|
| 12 |
Synopsis |
| 13 |
-------- |
| 14 |
|
| 15 |
Managing resource group deployments on PowerFlex storage system includes deploying, editing, adding nodes and deleting a resource group deployment. |
| 16 |
|
| 17 |
|
| 18 |
|
| 19 |
Requirements |
| 20 |
------------ |
| 21 |
The below requirements are needed on the host that executes this module. |
| 22 |
|
| 23 |
- A Dell PowerFlex storage system version 3.6 or later. |
| 24 |
- PyPowerFlex 2.0.0. |
| 25 |
|
| 26 |
|
| 27 |
|
| 28 |
Parameters |
| 29 |
---------- |
| 30 |
|
| 31 |
resource_group_name (optional, str, None) |
| 32 |
The name of the resource group. |
| 33 |
|
| 34 |
This is a required field to deploy a resource group. |
| 35 |
|
| 36 |
Either \ :emphasis:`resource\_group\_id`\ or \ :emphasis:`resource\_group\_name`\ must be specified to perform resource group operations. |
| 37 |
|
| 38 |
Mutually exclusive with \ :emphasis:`resource\_group\_id`\ . |
| 39 |
|
| 40 |
|
| 41 |
resource_group_id (optional, str, None) |
| 42 |
The ID of the resource group. |
| 43 |
|
| 44 |
Either \ :emphasis:`resource\_group\_id`\ or \ :emphasis:`resource\_group\_name`\ must be specified to perform resource group operations. |
| 45 |
|
| 46 |
Mutually exclusive with \ :emphasis:`resource\_group\_name`\ . |
| 47 |
|
| 48 |
|
| 49 |
template_name (optional, str, None) |
| 50 |
The name of the published template. |
| 51 |
|
| 52 |
Either \ :emphasis:`template\_id`\ or \ :emphasis:`template\_name`\ must be specified to deploy a resource group. |
| 53 |
|
| 54 |
Mutually exclusive with \ :emphasis:`template\_id`\ . |
| 55 |
|
| 56 |
|
| 57 |
template_id (optional, str, None) |
| 58 |
The ID of the published template. |
| 59 |
|
| 60 |
Either \ :emphasis:`template\_id`\ or \ :emphasis:`template\_name`\ must be specified to deploy a resource group. |
| 61 |
|
| 62 |
Mutually exclusive with \ :emphasis:`template\_name`\ . |
| 63 |
|
| 64 |
|
| 65 |
firmware_repository_id (optional, str, None) |
| 66 |
The ID of the firmware repository if not using the appliance default catalog. |
| 67 |
|
| 68 |
Mutually exclusive with \ :emphasis:`firmware\_repository\_name`\ . |
| 69 |
|
| 70 |
|
| 71 |
firmware_repository_name (optional, str, None) |
| 72 |
The name of the firmware repository if not using the appliance default catalog. |
| 73 |
|
| 74 |
Mutually exclusive with \ :emphasis:`firmware\_repository\_id`\ . |
| 75 |
|
| 76 |
|
| 77 |
new_resource_group_name (optional, str, None) |
| 78 |
New name of the resource group to rename to. |
| 79 |
|
| 80 |
|
| 81 |
description (optional, str, None) |
| 82 |
The description of the resource group. |
| 83 |
|
| 84 |
|
| 85 |
scaleup (optional, bool, False) |
| 86 |
Whether to scale up the resource group. Specify as true to add nodes to the resource group. |
| 87 |
|
| 88 |
|
| 89 |
clone_node (optional, str, None) |
| 90 |
Resource to duplicate during scaleup, if more than one nodes are available in the resource group. |
| 91 |
|
| 92 |
|
| 93 |
node_count (optional, int, 1) |
| 94 |
Number of nodes to clone during scaleup. |
| 95 |
|
| 96 |
|
| 97 |
validate (optional, bool, False) |
| 98 |
Specify as true to validate the deployment of resource group. |
| 99 |
|
| 100 |
|
| 101 |
schedule_date (optional, str, None) |
| 102 |
Scheduled date for the resource group deployment. |
| 103 |
|
| 104 |
Specify in YYYY-MM-DD HH:MM:SS.sss or YYYY-MM-DD format. |
| 105 |
|
| 106 |
|
| 107 |
state (optional, str, present) |
| 108 |
The state of the resource group. |
| 109 |
|
| 110 |
|
| 111 |
hostname (True, str, None) |
| 112 |
IP or FQDN of the PowerFlex host. |
| 113 |
|
| 114 |
|
| 115 |
username (True, str, None) |
| 116 |
The username of the PowerFlex host. |
| 117 |
|
| 118 |
|
| 119 |
password (True, str, None) |
| 120 |
The password of the PowerFlex host. |
| 121 |
|
| 122 |
|
| 123 |
validate_certs (optional, bool, True) |
| 124 |
Boolean variable to specify whether or not to validate SSL certificate. |
| 125 |
|
| 126 |
\ :literal:`true`\ - Indicates that the SSL certificate should be verified. |
| 127 |
|
| 128 |
\ :literal:`false`\ - Indicates that the SSL certificate should not be verified. |
| 129 |
|
| 130 |
|
| 131 |
port (optional, int, 443) |
| 132 |
Port number through which communication happens with PowerFlex host. |
| 133 |
|
| 134 |
|
| 135 |
timeout (False, int, 120) |
| 136 |
Time after which connection will get terminated. |
| 137 |
|
| 138 |
It is to be mentioned in seconds. |
| 139 |
|
| 140 |
|
| 141 |
|
| 142 |
|
| 143 |
|
| 144 |
Notes |
| 145 |
----- |
| 146 |
|
| 147 |
.. note:: |
| 148 |
- The \ :emphasis:`check\_mode`\ is supported. |
| 149 |
- Resource group scale up can be done only when deployment is complete. |
| 150 |
- The modules present in the collection named as 'dellemc.powerflex' are built to support the Dell PowerFlex storage platform. |
| 151 |
|
| 152 |
|
| 153 |
|
| 154 |
|
| 155 |
Examples |
| 156 |
-------- |
| 157 |
|
| 158 |
.. code-block:: yaml+jinja |
| 159 |
|
| 160 |
|
| 161 |
- name: Validate deployment of a resource group |
| 162 |
dellemc.powerflex.resource_group: |
| 163 |
hostname: "{{ hostname }}" |
| 164 |
username: "{{ username }}" |
| 165 |
password: "{{ password }}" |
| 166 |
validate_certs: "{{ validate_certs }}" |
| 167 |
port: "{{ port }}" |
| 168 |
resource_group_name: "{{ resource_group_name_1 }}" |
| 169 |
description: ans_rg |
| 170 |
template_id: c65d0172-8666-48ab-935e-9a0bf69ed66d |
| 171 |
firmware_repository_id: 8aaa80788b5755d1018b576126d51ba3 |
| 172 |
validate: true |
| 173 |
|
| 174 |
- name: Deploy a resource group |
| 175 |
dellemc.powerflex.resource_group: |
| 176 |
hostname: "{{ hostname }}" |
| 177 |
username: "{{ username }}" |
| 178 |
password: "{{ password }}" |
| 179 |
validate_certs: "{{ validate_certs }}" |
| 180 |
port: "{{ port }}" |
| 181 |
resource_group_name: "{{ resource_group_name_1 }}" |
| 182 |
description: ans_rg |
| 183 |
template_id: c65d0172-8666-48ab-935e-9a0bf69ed66d |
| 184 |
firmware_repository_id: 8aaa80788b5755d1018b576126d51ba3 |
| 185 |
|
| 186 |
- name: Add a node to a resource group |
| 187 |
dellemc.powerflex.resource_group: |
| 188 |
hostname: "{{ hostname }}" |
| 189 |
username: "{{ username }}" |
| 190 |
password: "{{ password }}" |
| 191 |
validate_certs: "{{ validate_certs }}" |
| 192 |
resource_group_name: "{{ resource_group_name_1 }}" |
| 193 |
scaleup: true |
| 194 |
clone_node: "{{ node_1 }}" |
| 195 |
node_count: "{{ node_count }}" |
| 196 |
|
| 197 |
- name: Modify a resource group |
| 198 |
dellemc.powerflex.resource_group: |
| 199 |
hostname: "{{ hostname }}" |
| 200 |
username: "{{ username }}" |
| 201 |
password: "{{ password }}" |
| 202 |
validate_certs: "{{ validate_certs }}" |
| 203 |
resource_group_name: "{{ resource_group_name_1 }}" |
| 204 |
new_resource_group_name: "{{ new_resource_group_name }}" |
| 205 |
description: "description new" |
| 206 |
|
| 207 |
- name: Delete a resource group |
| 208 |
dellemc.powerflex.resource_group: |
| 209 |
hostname: "{{ hostname }}" |
| 210 |
username: "{{ username }}" |
| 211 |
password: "{{ password }}" |
| 212 |
validate_certs: "{{ validate_certs }}" |
| 213 |
port: "{{ port }}" |
| 214 |
resource_group_name: ans_rg |
| 215 |
state: "absent" |
| 216 |
|
| 217 |
|
| 218 |
|
| 219 |
Return Values |
| 220 |
------------- |
| 221 |
|
| 222 |
changed (always, bool, false) |
| 223 |
Whether or not the resource has changed. |
| 224 |
|
| 225 |
|
| 226 |
resource_group_details (When resource group exists., dict, {'id': '8aaa03a88de961fa018de96a88d80008', 'deploymentName': 'dep-ans-test-rg1', 'deploymentDescription': 'ans test rg', 'retry': True, 'teardown': False, 'serviceTemplate': {'id': '8aaa03a88de961fa018de96a88d80008', 'templateName': 'update-template (8aaa03a88de961fa018de96a88d80008)'}, 'scheduleDate': None, 'status': 'error', 'compliant': True, 'deploymentDevice': [{'refId': 'scaleio-block-legacy-gateway', 'refType': 'SCALEIO', 'deviceHealth': 'GREEN', 'compliantState': 'COMPLIANT', 'deviceType': 'scaleio', 'currentIpAddress': '1.3.9.2', 'componentId': '910bf934-d45a-4fe3-8ea2-dc481e063a81', 'statusMessage': 'The processing of PowerFlex is unsuccessful.', 'model': 'PowerFlex Gateway', 'brownfield': False}], 'updateServerFirmware': True, 'useDefaultCatalog': True, 'firmwareRepository': {'id': '8aaa80788b5755d1018b576126d51ba3', 'name': 'PowerFlex 4.5.0.0', 'rcmapproved': False}, 'firmwareRepositoryId': '8aaa80788b5755d1018b576126d51ba3', 'deploymentHealthStatusType': 'red', 'allUsersAllowed': False, 'owner': 'admin', 'numberOfDeployments': 0, 'lifecycleMode': False, 'vds': False, 'scaleUp': False, 'brownfield': False, 'templateValid': True, 'configurationChange': False}) |
| 227 |
Details of the resource group deployment. |
| 228 |
|
| 229 |
|
| 230 |
id (, str, ) |
| 231 |
The ID of the deployed resource group. |
| 232 |
|
| 233 |
|
| 234 |
deploymentName (, str, ) |
| 235 |
The name of the resource group deployment. |
| 236 |
|
| 237 |
|
| 238 |
deploymentDescription (, str, ) |
| 239 |
The description of the resource group deployment. |
| 240 |
|
| 241 |
|
| 242 |
serviceTemplate (, dict, ) |
| 243 |
The service template of the resource group. |
| 244 |
|
| 245 |
|
| 246 |
id (, str, ) |
| 247 |
The ID of the service template. |
| 248 |
|
| 249 |
|
| 250 |
templateName (, str, ) |
| 251 |
The name of the service template. |
| 252 |
|
| 253 |
|
| 254 |
|
| 255 |
status (, str, ) |
| 256 |
The status of the deployment of the resource group. |
| 257 |
|
| 258 |
|
| 259 |
firmwareRepositoryId (, str, ) |
| 260 |
The ID of the firmware repository of the resource group. |
| 261 |
|
| 262 |
|
| 263 |
|
| 264 |
|
| 265 |
|
| 266 |
|
| 267 |
Status |
| 268 |
------ |
| 269 |
|
| 270 |
|
| 271 |
|
| 272 |
|
| 273 |
|
| 274 |
Authors |
| 275 |
~~~~~~~ |
| 276 |
|
| 277 |
- Jennifer John (@johnj9) <[email protected]> |
| 278 |
- Trisha Datta (@trisha-dell) <[email protected]> |
| 279 |
|