| 1 |
.. _fault_set_module: |
| 2 |
|
| 3 |
|
| 4 |
fault_set -- Manage Fault Sets on Dell PowerFlex |
| 5 |
================================================ |
| 6 |
|
| 7 |
.. contents:: |
| 8 |
:local: |
| 9 |
:depth: 1 |
| 10 |
|
| 11 |
|
| 12 |
Synopsis |
| 13 |
-------- |
| 14 |
|
| 15 |
Managing fault sets on PowerFlex storage system includes creating, getting details, renaming and deleting a fault set. |
| 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 |
fault_set_name (optional, str, None) |
| 32 |
Name of the Fault Set. |
| 33 |
|
| 34 |
Mutually exclusive with \ :emphasis:`fault\_set\_id`\ . |
| 35 |
|
| 36 |
|
| 37 |
fault_set_id (optional, str, None) |
| 38 |
ID of the Fault Set. |
| 39 |
|
| 40 |
Mutually exclusive with \ :emphasis:`fault\_set\_name`\ . |
| 41 |
|
| 42 |
|
| 43 |
protection_domain_name (optional, str, None) |
| 44 |
Name of protection domain. |
| 45 |
|
| 46 |
Mutually exclusive with \ :emphasis:`protection\_domain\_id`\ . |
| 47 |
|
| 48 |
|
| 49 |
protection_domain_id (optional, str, None) |
| 50 |
ID of the protection domain. |
| 51 |
|
| 52 |
Mutually exclusive with \ :emphasis:`protection\_domain\_name`\ . |
| 53 |
|
| 54 |
|
| 55 |
fault_set_new_name (optional, str, None) |
| 56 |
New name of the fault set. |
| 57 |
|
| 58 |
|
| 59 |
state (optional, str, present) |
| 60 |
State of the Fault Set. |
| 61 |
|
| 62 |
|
| 63 |
hostname (True, str, None) |
| 64 |
IP or FQDN of the PowerFlex host. |
| 65 |
|
| 66 |
|
| 67 |
username (True, str, None) |
| 68 |
The username of the PowerFlex host. |
| 69 |
|
| 70 |
|
| 71 |
password (True, str, None) |
| 72 |
The password of the PowerFlex host. |
| 73 |
|
| 74 |
|
| 75 |
validate_certs (optional, bool, True) |
| 76 |
Boolean variable to specify whether or not to validate SSL certificate. |
| 77 |
|
| 78 |
\ :literal:`true`\ - Indicates that the SSL certificate should be verified. |
| 79 |
|
| 80 |
\ :literal:`false`\ - Indicates that the SSL certificate should not be verified. |
| 81 |
|
| 82 |
|
| 83 |
port (optional, int, 443) |
| 84 |
Port number through which communication happens with PowerFlex host. |
| 85 |
|
| 86 |
|
| 87 |
timeout (False, int, 120) |
| 88 |
Time after which connection will get terminated. |
| 89 |
|
| 90 |
It is to be mentioned in seconds. |
| 91 |
|
| 92 |
|
| 93 |
|
| 94 |
|
| 95 |
|
| 96 |
Notes |
| 97 |
----- |
| 98 |
|
| 99 |
.. note:: |
| 100 |
- The \ :emphasis:`check\_mode`\ is supported. |
| 101 |
- When \ :emphasis:`fault\_set\_name`\ is provided, \ :emphasis:`protection\_domain\_name`\ or \ :emphasis:`protection\_domain\_id`\ must be provided. |
| 102 |
- The modules present in the collection named as 'dellemc.powerflex' are built to support the Dell PowerFlex storage platform. |
| 103 |
|
| 104 |
|
| 105 |
|
| 106 |
|
| 107 |
Examples |
| 108 |
-------- |
| 109 |
|
| 110 |
.. code-block:: yaml+jinja |
| 111 |
|
| 112 |
|
| 113 |
|
| 114 |
- name: Create Fault Set on Protection Domain |
| 115 |
dellemc.powerflex.fault_set: |
| 116 |
hostname: "{{ hostname }}" |
| 117 |
username: "{{ username }}" |
| 118 |
password: "{{ password }}" |
| 119 |
validate_certs: "{{ validate_certs }}" |
| 120 |
fault_set_name: "{{ fault_set_name }}" |
| 121 |
protection_domain_name: "{{ pd_name }}" |
| 122 |
state: present |
| 123 |
|
| 124 |
- name: Rename Fault Set |
| 125 |
dellemc.powerflex.fault_set: |
| 126 |
hostname: "{{ hostname }}" |
| 127 |
username: "{{ username }}" |
| 128 |
password: "{{ password }}" |
| 129 |
validate_certs: "{{ validate_certs }}" |
| 130 |
fault_set_name: "{{ fault_set_name }}" |
| 131 |
fault_set_new_name: "{{ fault_set_new_name }}" |
| 132 |
state: present |
| 133 |
|
| 134 |
- name: Get details of a Fault Set |
| 135 |
dellemc.powerflex.fault_set: |
| 136 |
hostname: "{{ hostname }}" |
| 137 |
username: "{{ username }}" |
| 138 |
password: "{{ password }}" |
| 139 |
validate_certs: "{{ validate_certs }}" |
| 140 |
fault_set_id: "{{ fault_set_id }}" |
| 141 |
state: present |
| 142 |
|
| 143 |
- name: Delete Fault Set |
| 144 |
dellemc.powerflex.fault_set: |
| 145 |
hostname: "{{ hostname }}" |
| 146 |
username: "{{ username }}" |
| 147 |
password: "{{ password }}" |
| 148 |
validate_certs: "{{ validate_certs }}" |
| 149 |
fault_set_id: "{{ fault_set_id }}" |
| 150 |
state: absent |
| 151 |
|
| 152 |
|
| 153 |
|
| 154 |
Return Values |
| 155 |
------------- |
| 156 |
|
| 157 |
changed (always, bool, false) |
| 158 |
Whether or not the resource has changed. |
| 159 |
|
| 160 |
|
| 161 |
fault_set_details (always, dict, {'protectionDomainId': 'da721a8300000000', 'protectionDomainName': 'sample-pd', 'name': 'fs_001', 'id': 'eb44b70500000000', 'links': []}) |
| 162 |
Details of fault set. |
| 163 |
|
| 164 |
|
| 165 |
protectionDomainId (, str, ) |
| 166 |
Unique identifier of the protection domain. |
| 167 |
|
| 168 |
|
| 169 |
protectionDomainName (, str, ) |
| 170 |
Name of the protection domain. |
| 171 |
|
| 172 |
|
| 173 |
name (, str, ) |
| 174 |
Name of the fault set. |
| 175 |
|
| 176 |
|
| 177 |
id (, str, ) |
| 178 |
Unique identifier of the fault set. |
| 179 |
|
| 180 |
|
| 181 |
SDS (, list, ) |
| 182 |
List of SDS associated to the fault set. |
| 183 |
|
| 184 |
|
| 185 |
links (, list, ) |
| 186 |
Fault set links. |
| 187 |
|
| 188 |
|
| 189 |
href (, str, ) |
| 190 |
Fault Set instance URL. |
| 191 |
|
| 192 |
|
| 193 |
rel (, str, ) |
| 194 |
Relationship of fault set with different entities. |
| 195 |
|
| 196 |
|
| 197 |
|
| 198 |
|
| 199 |
|
| 200 |
|
| 201 |
|
| 202 |
Status |
| 203 |
------ |
| 204 |
|
| 205 |
|
| 206 |
|
| 207 |
|
| 208 |
|
| 209 |
Authors |
| 210 |
~~~~~~~ |
| 211 |
|
| 212 |
- Carlos Tronco (@ctronco) <[email protected]> |
| 213 |
- Trisha Datta (@trisha-dell) <[email protected]> |
| 214 |
|