# powerflex_config Role to configure the protection domain, fault set and storage pool. ## Table of contents * [Requirements](#requirements) * [Ansible collections](#ansible-collections) * [Role Variables](#role-variables) * [Examples](#examples) * [Usage instructions](#usage-instructions) * [Notes](#notes) * [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 host. str
username true The username of the PowerFlex host. str
password true The password of the PowerFlex host. str
port false Port of the PowerFlex host. 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
powerflex_protection_domain_name false Name of the protection domain.
str config_protection_domain
powerflex_fault_sets false List of fault sets.
list ['fs1','fs2','fs3']
powerflex_media_type false Media type of the storage pool.
'SSD', 'HDD', 'TRANSITIONAL' str SSD
powerflex_storage_pool_name false Name of the storage pool.
str config_storage_pool
## Examples ---- ``` - name: Configuration of protection domain, fault set and storage pool. ansible.builtin.import_role: name: "powerflex_config" vars: hostname: "{{ hostname }}" username: "{{ username }}" password: "{{ password }}" validate_certs: "{{ validate_certs }}" port: "{{ port }}" powerflex_protection_domain_name: "protection_domain" powerflex_fault_sets: - 'fs1' - 'fs2' - 'fs3' powerflex_media_type: 'SSD' powerflex_storage_pool_name: "storage_pool" ``` ## Usage instructions ---- ### To configure the protection domain and storage pool: - PowerFlex 3.6: ``` ansible-playbook -i inventory site.yml ``` - PowerFlex 4.5: ``` ansible-playbook -i inventory site_powerflex45.yml ``` Sample playbooks and inventory can be found in the playbooks directory. ## Notes ---- - As a pre-requisite, the Gateway must be installed. - TRANSITIONAL media type is supported only during modification. ## Author Information ------------------ Dell Technologies
Felix Stephen A (ansible.team@Dell.com) 2023