# powerflex_sds Role to manage the installation and uninstallation of Powerflex SDS. ## Table of contents * [Requirements](#requirements) * [Ansible collections](#ansible-collections) * [Role Variables](#role-variables) * [Examples](#examples) * [Usage instructions](#usage-instructions) * [Author Information](#author-information) ## Requirements ``` ansible python ``` ## Ansible collections Collections required to use the role. ``` dellemc.powerflex ``` ## Role Variables
Name Required Description Choices Type Default Value
hostname true IP or FQDN of the PowerFlex gateway. str 10.1.1.1
username true The username of the PowerFlex gateway. str admin
password true The password of the PowerFlex gateway. str password
port false Port int 443
validate_certs false If C(false), the SSL certificates will not be validated.
Configure C(false) only on personally controlled sites where self-signed certificates are used.
bool false
timeout false Timeout int 120
powerflex_common_file_install_location true Location of installation and rpm gpg files to be installed.
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.
str /var/tmp
powerflex_sds_protection_domain true The name of the protection domain to which the SDS will be added. str
powerflex_sds_storage_pool true The name of the storage pool to which the device will be added. str
powerflex_sds_disks true Disks for adding the device. str
powerflex_sds_role true Role of the SDS. 'sdsOnly', 'sdcOnly', 'all' str
powerflex_sds_device_media_type true Media type of the device. 'HDD', 'SSD', 'NVDIMM' str
powerflex_sds_device_name true Name of the device added to the SDS. str
powerflex_sds_external_acceleration_type true External acceleration type of the device added. 'Invalid', 'None', 'Read', 'Write', 'ReadAndWrite' str
powerflex_sds_fault_set false Fault set to which the SDS will be added. str
powerflex_sds_state false State of the SDS. present, absent str present
## Examples ---- ``` - name: "Install and configure powerflex SDS" ansible.builtin.import_role: name: "powerflex_sds" vars: hostname: "{{ hostname }}" username: "{{ username }}" password: "{{ password }}" validate_certs: "{{ validate_certs }}" port: "{{ port }}" powerflex_sds_disks: ansible_available_disks: - '/dev/sdb' powerflex_sds_disks_type: HDD powerflex_sds_protection_domain: domain1 powerflex_sds_storage_pool: pool1 powerflex_sds_role: all powerflex_sds_device_media_type: HDD powerflex_sds_device_name: '/dev/sdb' powerflex_sds_external_acceleration_type: ReadAndWrite powerflex_sds_state: present - name: "Uninstall powerflex SDS" ansible.builtin.import_role: name: "powerflex_sds" vars: hostname: "{{ hostname }}" username: "{{ username }}" password: "{{ password }}" validate_certs: "{{ validate_certs }}" port: "{{ port }}" powerflex_sds_state: 'absent' ``` ## Usage instructions ---- ### To install all dependency packages, including SDS, on node: - PowerFlex 3.6: ``` ansible-playbook -i inventory site.yml ``` - PowerFlex 4.5: ``` ansible-playbook -i inventory site_powerflex45.yml ``` ### To uninstall SDS: - PowerFlex 3.6: ``` ansible-playbook -i inventory uninstall_powerflex.yml ``` - PowerFlex 4.5: ``` ansible-playbook -i inventory uninstall_powerflex45.yml ``` Sample playbooks and inventory can be found in the playbooks directory. ## Author Information ------------------ Dell Technologies Trisha Datta (ansible.team@Dell.com) 2023