| 1 | # powerflex_sds |
| 2 | |
| 3 | Role to manage the installation and uninstallation of Powerflex SDS. |
| 4 | |
| 5 | ## Table of contents |
| 6 | |
| 7 | * [Requirements](#requirements) |
| 8 | * [Ansible collections](#ansible-collections) |
| 9 | * [Role Variables](#role-variables) |
| 10 | * [Examples](#examples) |
| 11 | * [Usage instructions](#usage-instructions) |
| 12 | * [Author Information](#author-information) |
| 13 | |
| 14 | ## Requirements |
| 15 | |
| 16 | ``` |
| 17 | ansible |
| 18 | python |
| 19 | ``` |
| 20 | |
| 21 | ## Ansible collections |
| 22 | |
| 23 | Collections required to use the role. |
| 24 | |
| 25 | ``` |
| 26 | dellemc.powerflex |
| 27 | ``` |
| 28 | |
| 29 | ## Role Variables |
| 30 | |
| 31 | <table> |
| 32 | <thead> |
| 33 | <tr> |
| 34 | <th>Name</th> |
| 35 | <th>Required</th> |
| 36 | <th>Description</th> |
| 37 | <th>Choices</th> |
| 38 | <th>Type</th> |
| 39 | <th>Default Value</th> |
| 40 | </tr> |
| 41 | </thead> |
| 42 | <tbody> |
| 43 | <tr> |
| 44 | <td>hostname</td> |
| 45 | <td>true</td> |
| 46 | <td>IP or FQDN of the PowerFlex gateway.</td> |
| 47 | <td></td> |
| 48 | <td>str</td> |
| 49 | <td>10.1.1.1</td> |
| 50 | </tr> |
| 51 | <tr> |
| 52 | <td>username</td> |
| 53 | <td>true</td> |
| 54 | <td>The username of the PowerFlex gateway.</td> |
| 55 | <td></td> |
| 56 | <td>str</td> |
| 57 | <td>admin</td> |
| 58 | </tr> |
| 59 | <tr> |
| 60 | <td>password</td> |
| 61 | <td>true</td> |
| 62 | <td>The password of the PowerFlex gateway.</td> |
| 63 | <td></td> |
| 64 | <td>str</td> |
| 65 | <td>password</td> |
| 66 | </tr> |
| 67 | <tr> |
| 68 | <td>port</td> |
| 69 | <td>false</td> |
| 70 | <td>Port</td> |
| 71 | <td></td> |
| 72 | <td>int</td> |
| 73 | <td>443</td> |
| 74 | </tr> |
| 75 | <tr> |
| 76 | <td>validate_certs</td> |
| 77 | <td>false</td> |
| 78 | <td>If C(false), the SSL certificates will not be validated.<br>Configure C(false) only on personally controlled sites where self-signed certificates are used.</td> |
| 79 | <td></td> |
| 80 | <td>bool</td> |
| 81 | <td>false</td> |
| 82 | </tr> |
| 83 | <tr> |
| 84 | <td>timeout</td> |
| 85 | <td>false</td> |
| 86 | <td>Timeout</td> |
| 87 | <td></td> |
| 88 | <td>int</td> |
| 89 | <td>120</td> |
| 90 | </tr> |
| 91 | <tr> |
| 92 | <td>powerflex_common_file_install_location</td> |
| 93 | <td>true</td> |
| 94 | <td>Location of installation and rpm gpg files to be installed. |
| 95 | <br>The required, compatible installation software package based on the operating system of the node. |
| 96 | <br>The files can be downloaded from the Dell Product support page for PowerFlex software.</td> |
| 97 | <td></td> |
| 98 | <td>str</td> |
| 99 | <td>/var/tmp</td> |
| 100 | </tr> |
| 101 | <tr> |
| 102 | <td>powerflex_sds_protection_domain</td> |
| 103 | <td>true</td> |
| 104 | <td>The name of the protection domain to which the SDS will be added. |
| 105 | </td> |
| 106 | <td></td> |
| 107 | <td>str</td> |
| 108 | <td></td> |
| 109 | </tr> |
| 110 | <tr> |
| 111 | <td>powerflex_sds_storage_pool</td> |
| 112 | <td>true</td> |
| 113 | <td>The name of the storage pool to which the device will be added. |
| 114 | </td> |
| 115 | <td></td> |
| 116 | <td>str</td> |
| 117 | <td></td> |
| 118 | </tr> |
| 119 | <tr> |
| 120 | <td>powerflex_sds_disks</td> |
| 121 | <td>true</td> |
| 122 | <td>Disks for adding the device.</td> |
| 123 | <td></td> |
| 124 | <td>str</td> |
| 125 | <td></td> |
| 126 | </tr> |
| 127 | <tr> |
| 128 | <td>powerflex_sds_role</td> |
| 129 | <td>true</td> |
| 130 | <td>Role of the SDS.</td> |
| 131 | <td>'sdsOnly', 'sdcOnly', 'all'</td> |
| 132 | <td>str</td> |
| 133 | <td></td> |
| 134 | </tr> |
| 135 | <tr> |
| 136 | <td>powerflex_sds_device_media_type</td> |
| 137 | <td>true</td> |
| 138 | <td>Media type of the device.</td> |
| 139 | <td>'HDD', 'SSD', 'NVDIMM'</td> |
| 140 | <td>str</td> |
| 141 | <td></td> |
| 142 | </tr> |
| 143 | <tr> |
| 144 | <td>powerflex_sds_device_name</td> |
| 145 | <td>true</td> |
| 146 | <td>Name of the device added to the SDS.</td> |
| 147 | <td></td> |
| 148 | <td>str</td> |
| 149 | <td></td> |
| 150 | </tr> |
| 151 | <tr> |
| 152 | <td>powerflex_sds_external_acceleration_type</td> |
| 153 | <td>true</td> |
| 154 | <td>External acceleration type of the device added.</td> |
| 155 | <td>'Invalid', 'None', 'Read', 'Write', 'ReadAndWrite'</td> |
| 156 | <td>str</td> |
| 157 | <td></td> |
| 158 | </tr> |
| 159 | <tr> |
| 160 | <td>powerflex_sds_fault_set</td> |
| 161 | <td>false</td> |
| 162 | <td>Fault set to which the SDS will be added.</td> |
| 163 | <td></td> |
| 164 | <td>str</td> |
| 165 | <td></td> |
| 166 | </tr> |
| 167 | <tr> |
| 168 | <td>powerflex_sds_state</td> |
| 169 | <td>false</td> |
| 170 | <td>State of the SDS.</td> |
| 171 | <td>present, absent</td> |
| 172 | <td>str</td> |
| 173 | <td>present</td> |
| 174 | </tr> |
| 175 | </tbody> |
| 176 | </table> |
| 177 | |
| 178 | ## Examples |
| 179 | ---- |
| 180 | ``` |
| 181 | - name: "Install and configure powerflex SDS" |
| 182 | ansible.builtin.import_role: |
| 183 | name: "powerflex_sds" |
| 184 | vars: |
| 185 | hostname: "{{ hostname }}" |
| 186 | username: "{{ username }}" |
| 187 | password: "{{ password }}" |
| 188 | validate_certs: "{{ validate_certs }}" |
| 189 | port: "{{ port }}" |
| 190 | powerflex_sds_disks: |
| 191 | ansible_available_disks: |
| 192 | - '/dev/sdb' |
| 193 | powerflex_sds_disks_type: HDD |
| 194 | powerflex_sds_protection_domain: domain1 |
| 195 | powerflex_sds_storage_pool: pool1 |
| 196 | powerflex_sds_role: all |
| 197 | powerflex_sds_device_media_type: HDD |
| 198 | powerflex_sds_device_name: '/dev/sdb' |
| 199 | powerflex_sds_external_acceleration_type: ReadAndWrite |
| 200 | powerflex_sds_state: present |
| 201 | |
| 202 | - name: "Uninstall powerflex SDS" |
| 203 | ansible.builtin.import_role: |
| 204 | name: "powerflex_sds" |
| 205 | vars: |
| 206 | hostname: "{{ hostname }}" |
| 207 | username: "{{ username }}" |
| 208 | password: "{{ password }}" |
| 209 | validate_certs: "{{ validate_certs }}" |
| 210 | port: "{{ port }}" |
| 211 | powerflex_sds_state: 'absent' |
| 212 | |
| 213 | ``` |
| 214 | |
| 215 | ## Usage instructions |
| 216 | ---- |
| 217 | ### To install all dependency packages, including SDS, on node: |
| 218 | - PowerFlex 3.6: |
| 219 | ``` |
| 220 | ansible-playbook -i inventory site.yml |
| 221 | ``` |
| 222 | - PowerFlex 4.5: |
| 223 | ``` |
| 224 | ansible-playbook -i inventory site_powerflex45.yml |
| 225 | ``` |
| 226 | |
| 227 | ### To uninstall SDS: |
| 228 | - PowerFlex 3.6: |
| 229 | ``` |
| 230 | ansible-playbook -i inventory uninstall_powerflex.yml |
| 231 | ``` |
| 232 | - PowerFlex 4.5: |
| 233 | ``` |
| 234 | ansible-playbook -i inventory uninstall_powerflex45.yml |
| 235 | ``` |
| 236 | |
| 237 | Sample playbooks and inventory can be found in the playbooks directory. |
| 238 | |
| 239 | ## Author Information |
| 240 | ------------------ |
| 241 | |
| 242 | Dell Technologies |
| 243 | Trisha Datta ([email protected]) 2023 |