| 1 | # powerflex_config |
| 2 | |
| 3 | Role to configure the protection domain, fault set and storage pool. |
| 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 | * [Notes](#notes) |
| 13 | * [Author Information](#author-information) |
| 14 | |
| 15 | ## Requirements |
| 16 | |
| 17 | ``` |
| 18 | ansible |
| 19 | python |
| 20 | ``` |
| 21 | |
| 22 | ## Ansible collections |
| 23 | |
| 24 | Collections required to use the role. |
| 25 | |
| 26 | ``` |
| 27 | dellemc.powerflex |
| 28 | ``` |
| 29 | |
| 30 | ## Role Variables |
| 31 | |
| 32 | <table> |
| 33 | <thead> |
| 34 | <tr> |
| 35 | <th>Name</th> |
| 36 | <th>Required</th> |
| 37 | <th>Description</th> |
| 38 | <th>Choices</th> |
| 39 | <th>Type</th> |
| 40 | <th>Default Value</th> |
| 41 | </tr> |
| 42 | </thead> |
| 43 | <tbody> |
| 44 | <tr> |
| 45 | <td>hostname</td> |
| 46 | <td>true</td> |
| 47 | <td>IP or FQDN of the PowerFlex host.</td> |
| 48 | <td></td> |
| 49 | <td>str</td> |
| 50 | <td></td> |
| 51 | </tr> |
| 52 | <tr> |
| 53 | <td>username</td> |
| 54 | <td>true</td> |
| 55 | <td>The username of the PowerFlex host.</td> |
| 56 | <td></td> |
| 57 | <td>str</td> |
| 58 | <td></td> |
| 59 | </tr> |
| 60 | <tr> |
| 61 | <td>password</td> |
| 62 | <td>true</td> |
| 63 | <td>The password of the PowerFlex host.</td> |
| 64 | <td></td> |
| 65 | <td>str</td> |
| 66 | <td></td> |
| 67 | </tr> |
| 68 | <tr> |
| 69 | <td>port</td> |
| 70 | <td>false</td> |
| 71 | <td>Port of the PowerFlex host.</td> |
| 72 | <td></td> |
| 73 | <td>int</td> |
| 74 | <td>443</td> |
| 75 | </tr> |
| 76 | <tr> |
| 77 | <td>validate_certs</td> |
| 78 | <td>false</td> |
| 79 | <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> |
| 80 | <td></td> |
| 81 | <td>bool</td> |
| 82 | <td>false</td> |
| 83 | </tr> |
| 84 | <tr> |
| 85 | <td>powerflex_protection_domain_name</td> |
| 86 | <td>false</td> |
| 87 | <td>Name of the protection domain.<br></td> |
| 88 | <td></td> |
| 89 | <td>str</td> |
| 90 | <td>config_protection_domain</td> |
| 91 | </tr> |
| 92 | <tr> |
| 93 | <td>powerflex_fault_sets</td> |
| 94 | <td>false</td> |
| 95 | <td>List of fault sets.<br></td> |
| 96 | <td></td> |
| 97 | <td>list</td> |
| 98 | <td>['fs1','fs2','fs3']</td> |
| 99 | </tr> |
| 100 | <tr> |
| 101 | <td>powerflex_media_type</td> |
| 102 | <td>false</td> |
| 103 | <td>Media type of the storage pool.<br></td> |
| 104 | <td>'SSD', 'HDD', 'TRANSITIONAL'</td> |
| 105 | <td>str</td> |
| 106 | <td>SSD</td>> |
| 107 | </tr> |
| 108 | <tr> |
| 109 | <td>powerflex_storage_pool_name</td> |
| 110 | <td>false</td> |
| 111 | <td>Name of the storage pool.<br></td> |
| 112 | <td></td> |
| 113 | <td>str</td> |
| 114 | <td>config_storage_pool</td> |
| 115 | </tr> |
| 116 | </tbody> |
| 117 | </table> |
| 118 | |
| 119 | ## Examples |
| 120 | ---- |
| 121 | ``` |
| 122 | - name: Configuration of protection domain, fault set and storage pool. |
| 123 | ansible.builtin.import_role: |
| 124 | name: "powerflex_config" |
| 125 | vars: |
| 126 | hostname: "{{ hostname }}" |
| 127 | username: "{{ username }}" |
| 128 | password: "{{ password }}" |
| 129 | validate_certs: "{{ validate_certs }}" |
| 130 | port: "{{ port }}" |
| 131 | powerflex_protection_domain_name: "protection_domain" |
| 132 | powerflex_fault_sets: |
| 133 | - 'fs1' |
| 134 | - 'fs2' |
| 135 | - 'fs3' |
| 136 | powerflex_media_type: 'SSD' |
| 137 | powerflex_storage_pool_name: "storage_pool" |
| 138 | |
| 139 | ``` |
| 140 | |
| 141 | ## Usage instructions |
| 142 | ---- |
| 143 | ### To configure the protection domain and storage pool: |
| 144 | - PowerFlex 3.6: |
| 145 | ``` |
| 146 | ansible-playbook -i inventory site.yml |
| 147 | ``` |
| 148 | - PowerFlex 4.5: |
| 149 | ``` |
| 150 | ansible-playbook -i inventory site_powerflex45.yml |
| 151 | ``` |
| 152 | |
| 153 | Sample playbooks and inventory can be found in the playbooks directory. |
| 154 | |
| 155 | ## Notes |
| 156 | ---- |
| 157 | |
| 158 | - As a pre-requisite, the Gateway must be installed. |
| 159 | - TRANSITIONAL media type is supported only during modification. |
| 160 | |
| 161 | ## Author Information |
| 162 | ------------------ |
| 163 | |
| 164 | Dell Technologies </br> |
| 165 | Felix Stephen A ([email protected]) 2023 |