| 1 | # powerflex_gateway |
| 2 | |
| 3 | Role to manage the installation and uninstallation of Powerflex Gateway. |
| 4 | |
| 5 | ## Table of contents |
| 6 | |
| 7 | * [Requirements](#requirements) |
| 8 | * [Ansible collections](#ansible-collections) |
| 9 | * [Role Variables](#role-variables) |
| 10 | * [Examples](#examples) |
| 11 | * [Notes](#notes) |
| 12 | * [Usage instructions](#usage-instructions) |
| 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>powerflex_common_file_install_location</td> |
| 46 | <td>false</td> |
| 47 | <td>Location of installation, compatible installation software package based on the operating system of the node. |
| 48 | <br> The files can be downloaded from the Dell Product support page for PowerFlex software.</td> |
| 49 | <td></td> |
| 50 | <td>path</td> |
| 51 | <td>/var/tmp</td> |
| 52 | </tr> |
| 53 | <tr> |
| 54 | <td>powerflex_gateway_is_redundant</td> |
| 55 | <td>false</td> |
| 56 | <td>Is the gateway redundant (will install keepalived).<br></td> |
| 57 | <td></td> |
| 58 | <td>bool</td> |
| 59 | <td>false</td> |
| 60 | </tr> |
| 61 | <tr> |
| 62 | <td>powerflex_gateway_admin_password</td> |
| 63 | <td>true</td> |
| 64 | <td>Admin password for the Powerflex gateway.<br></td> |
| 65 | <td></td> |
| 66 | <td>str</td> |
| 67 | <td></td> |
| 68 | </tr> |
| 69 | <tr> |
| 70 | <td>powerflex_gateway_http_port</td> |
| 71 | <td>false</td> |
| 72 | <td>Powerflex gateway HTTP port.<br></td> |
| 73 | <td></td> |
| 74 | <td>int</td> |
| 75 | <td>80</td> |
| 76 | </tr> |
| 77 | <tr> |
| 78 | <td>powerflex_gateway_https_port</td> |
| 79 | <td>false</td> |
| 80 | <td>Powerflex gateway HTTPS port.<br></td> |
| 81 | <td></td> |
| 82 | <td>int</td> |
| 83 | <td>443</td> |
| 84 | </tr> |
| 85 | <tr> |
| 86 | <td>powerflex_gateway_virtual_ip</td> |
| 87 | <td>false</td> |
| 88 | <td>Virtual IP address of Powerflex gateway.<br></td> |
| 89 | <td></td> |
| 90 | <td>str</td> |
| 91 | <td></td> |
| 92 | </tr> |
| 93 | <tr> |
| 94 | <td>powerflex_gateway_virtual_interface</td> |
| 95 | <td>false</td> |
| 96 | <td>Virtual interface of Powerflex gateway.<br></td> |
| 97 | <td></td> |
| 98 | <td>str</td> |
| 99 | <td></td> |
| 100 | </tr> |
| 101 | <tr> |
| 102 | <td>powerflex_gateway_state</td> |
| 103 | <td>false</td> |
| 104 | <td>Specify state of gateway.<br></td> |
| 105 | <td>absent, present</td> |
| 106 | <td>str</td> |
| 107 | <td>present</td> |
| 108 | </tr> |
| 109 | <tr> |
| 110 | <td>powerflex_gateway_skip_java</td> |
| 111 | <td>false</td> |
| 112 | <td>Specify whether to install the java or not.<br></td> |
| 113 | <td></td> |
| 114 | <td>bool</td> |
| 115 | <td>false</td> |
| 116 | </tr> |
| 117 | </tbody> |
| 118 | </table> |
| 119 | |
| 120 | ## Examples |
| 121 | ---- |
| 122 | ``` |
| 123 | - name: Install and configure powerflex gateway |
| 124 | ansible.builtin.import_role: |
| 125 | name: powerflex_gateway |
| 126 | vars: |
| 127 | powerflex_common_file_install_location: "/opt/scaleio/rpm" |
| 128 | powerflex_gateway_admin_password: password |
| 129 | powerflex_gateway_state: present |
| 130 | |
| 131 | - name: Uninstall powerflex gateway |
| 132 | ansible.builtin.import_role: |
| 133 | name: powerflex_gateway |
| 134 | vars: |
| 135 | powerflex_gateway_state: absent |
| 136 | |
| 137 | ``` |
| 138 | |
| 139 | ## Notes |
| 140 | - Supported only in PowerFlex version 3.6. |
| 141 | |
| 142 | ## Usage instructions |
| 143 | ---- |
| 144 | ### To install all dependency packages, including gateway, on node: |
| 145 | ``` |
| 146 | ansible-playbook -i inventory site.yml |
| 147 | ``` |
| 148 | |
| 149 | ### To uninstall gateway: |
| 150 | ``` |
| 151 | ansible-playbook -i inventory uninstall_powerflex.yml |
| 152 | ``` |
| 153 | |
| 154 | Sample playbooks and inventory can be found in the playbooks directory. |
| 155 | |
| 156 | ## Author Information |
| 157 | ------------------ |
| 158 | |
| 159 | Dell Technologies <br> |
| 160 | Bhavneet Sharma ([email protected]) 2023 |