| 1 | # powerflex_mdm |
| 2 | |
| 3 | Role to manage the installation and uninstallation of Powerflex MDM. |
| 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 | ansible.posix |
| 29 | community.general |
| 30 | ``` |
| 31 | |
| 32 | ## Role Variables |
| 33 | |
| 34 | <table> |
| 35 | <thead> |
| 36 | <tr> |
| 37 | <th>Name</th> |
| 38 | <th>Required</th> |
| 39 | <th>Description</th> |
| 40 | <th>Choices</th> |
| 41 | <th>Type</th> |
| 42 | <th>Default Value</th> |
| 43 | </tr> |
| 44 | </thead> |
| 45 | <tbody> |
| 46 | <tr> |
| 47 | <td>powerflex_common_file_install_location</td> |
| 48 | <td>true</td> |
| 49 | <td>Location of installation and rpm gpg files to be installed. |
| 50 | <br> The required, compatible installation software package based on the operating system of the node. |
| 51 | <br> The files can be downloaded from the Dell Product support page for PowerFlex software.</td> |
| 52 | <td></td> |
| 53 | <td>str</td> |
| 54 | <td>/var/tmp</td> |
| 55 | </tr> |
| 56 | <tr> |
| 57 | <td>powerflex_mdm_password</td> |
| 58 | <td>true</td> |
| 59 | <td>Password for mdm cluster.<br></td> |
| 60 | <td></td> |
| 61 | <td>str</td> |
| 62 | <td>Password123</td> |
| 63 | </tr> |
| 64 | <tr> |
| 65 | <td>powerflex_mdm_state</td> |
| 66 | <td>false</td> |
| 67 | <td>Specify state of MDM.<br></td> |
| 68 | <td>absent, present</td> |
| 69 | <td>str</td> |
| 70 | <td>present</td> |
| 71 | </tr> |
| 72 | <tr> |
| 73 | <td>powerflex_mdm_virtual_ip</td> |
| 74 | <td>false</td> |
| 75 | <td>Virtual IP address of MDM.<br></td> |
| 76 | <td></td> |
| 77 | <td>str</td> |
| 78 | <td></td> |
| 79 | </tr> |
| 80 | <tr> |
| 81 | <td>powerflex_mdm_cert_password</td> |
| 82 | <td>false</td> |
| 83 | <td>The password to generate the certificate cli. |
| 84 | <br>Required while installing MDM for Powerlex 4.x.<br></td> |
| 85 | <td></td> |
| 86 | <td>str</td> |
| 87 | <td>Password123!</td> |
| 88 | </tr> |
| 89 | </tbody> |
| 90 | </table> |
| 91 | |
| 92 | ## Examples |
| 93 | ---- |
| 94 | ``` |
| 95 | - name: "Install and configure powerflex mdm" |
| 96 | ansible.builtin.import_role: |
| 97 | name: "powerflex_mdm" |
| 98 | vars: |
| 99 | powerflex_common_file_install_location: "/opt/scaleio/rpm" |
| 100 | powerflex_mdm_password: password |
| 101 | powerflex_mdm_state: present |
| 102 | |
| 103 | - name: "Uninstall powerflex mdm" |
| 104 | ansible.builtin.import_role: |
| 105 | name: "powerflex_mdm" |
| 106 | vars: |
| 107 | powerflex_mdm_state: absent |
| 108 | |
| 109 | ``` |
| 110 | |
| 111 | ## Usage instructions |
| 112 | ---- |
| 113 | ### To install all dependency packages, including mdm, on node: |
| 114 | - PowerFlex 3.6: |
| 115 | ``` |
| 116 | ansible-playbook -i inventory site.yml |
| 117 | ``` |
| 118 | - PowerFlex 4.5: |
| 119 | ``` |
| 120 | ansible-playbook -i inventory site_powerflex45.yml |
| 121 | ``` |
| 122 | |
| 123 | ### To uninstall mdm: |
| 124 | - PowerFlex 3.6: |
| 125 | ``` |
| 126 | ansible-playbook -i inventory uninstall_powerflex.yml |
| 127 | ``` |
| 128 | - PowerFlex 4.5: |
| 129 | ``` |
| 130 | ansible-playbook -i inventory uninstall_powerflex45.yml |
| 131 | ``` |
| 132 | |
| 133 | Sample playbooks and inventory can be found in the playbooks directory. |
| 134 | |
| 135 | ## Notes |
| 136 | - The ```community.general``` collection must be installed for MDM installation on SLES OS. |
| 137 | |
| 138 | ## Author Information |
| 139 | ------------------ |
| 140 | |
| 141 | Dell Technologies <br> |
| 142 | Bhavneet Sharma ([email protected]) 2023 |