| 1 | # powerflex_lia |
| 2 | |
| 3 | Role to manage the installation and uninstallation of Powerflex LIA. |
| 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. The files can be downloaded from the Dell Product support page for PowerFlex software.</td> |
| 96 | <td></td> |
| 97 | <td>str</td> |
| 98 | <td>/var/tmp</td> |
| 99 | </tr> |
| 100 | <tr> |
| 101 | <td>powerflex_lia_token</td> |
| 102 | <td>true</td> |
| 103 | <td>Lia password for node management.</td> |
| 104 | <td></td> |
| 105 | <td>str</td> |
| 106 | <td>Cluster1!</td> |
| 107 | </tr> |
| 108 | <tr> |
| 109 | <td>powerflex_lia_state</td> |
| 110 | <td>false</td> |
| 111 | <td>Specify state of LIA.<br></td> |
| 112 | <td>absent, present</td> |
| 113 | <td>str</td> |
| 114 | <td>present</td> |
| 115 | </tr> |
| 116 | </tbody> |
| 117 | </table> |
| 118 | |
| 119 | ## Examples |
| 120 | ---- |
| 121 | ``` |
| 122 | - name: Install and configure PowerFlex LIA |
| 123 | ansible.builtin.import_role: |
| 124 | name: powerflex_lia |
| 125 | vars: |
| 126 | hostname: "{{ hostname }}" |
| 127 | username: "{{ username }}" |
| 128 | password: "{{ password }}" |
| 129 | validate_certs: "{{ validate_certs }}" |
| 130 | port: "{{ port }}" |
| 131 | powerflex_lia_token: "Cluster1!" |
| 132 | powerflex_lia_state: present |
| 133 | |
| 134 | - name: Uninstall powerflex LIA |
| 135 | ansible.builtin.import_role: |
| 136 | name: powerflex_lia |
| 137 | vars: |
| 138 | powerflex_lia_state: absent |
| 139 | |
| 140 | ``` |
| 141 | |
| 142 | ## Usage instructions |
| 143 | ---- |
| 144 | ### To install all dependency packages, including LIA, on node: |
| 145 | - PowerFlex 3.6: |
| 146 | ``` |
| 147 | ansible-playbook -i inventory site.yml |
| 148 | ``` |
| 149 | - PowerFlex 4.5: |
| 150 | ``` |
| 151 | ansible-playbook -i inventory site_powerflex45.yml |
| 152 | ``` |
| 153 | |
| 154 | ### To uninstall LIA: |
| 155 | - PowerFlex 3.6: |
| 156 | ``` |
| 157 | ansible-playbook -i inventory uninstall_powerflex.yml |
| 158 | ``` |
| 159 | - PowerFlex 4.5: |
| 160 | ``` |
| 161 | ansible-playbook -i inventory uninstall_powerflex45.yml |
| 162 | ``` |
| 163 | |
| 164 | Sample playbooks and inventory can be found in the playbooks directory. |
| 165 | |
| 166 | ## Author Information |
| 167 | ------------------ |
| 168 | |
| 169 | Dell Technologies |
| 170 | Pavan Mudunuri ([email protected]) 2023 |