Skip to content

HPE 3PAR ansible module to configure, provision and manage 3PAR storage arrays and resources

Notifications You must be signed in to change notification settings

jyotsnalothe/hpe3par_ansible_module

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

27 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

HPE Alletra 9000 and HPE Primera and HPE 3PAR Modules for Ansible

The HPE Alletra 9000 and HPE Primera and HPE 3PAR modules for Ansible enable automation of storage provisioning for the HPE Alletra 9000 and Primera and 3PAR array. The modules use the HPE Alletra 9000 and Primera and 3PAR SDK for Python to communicate with the storage array over the WSAPI REST interface.

Requirements

  • Ansible ver. 2.5, 2.6, 2.7, 2.8, 2.9
  • hpe3par_sdk
  • 3PAR OS
    • 3.3.1 MU1, MU2, MU3, T05
    • 3.2.2 MU4, MU6
  • Primera OS
    • 4.3.1
  • Alletra 9000 OS
    • 9.3.0
  • WSAPI service should be enabled on the HPE Alletra 9000 and Primera and 3PAR storage array.

Configuration

  • Install Ansible and hpe3par_sdk
  • Modify ansible.cfg file to point the library to the Modules folder
library=/home/user/workspace/hpe3par_ansible/Modules

Modules

This is developed as a set of modules and example playbooks to provision the following:

Examples

- name: Create CPG "{{ cpg_name }}"
  hpe3par_cpg:
    storage_system_ip="{{ storage_system_ip }}"
    storage_system_username="{{ storage_system_username }}"
    storage_system_password="{{ storage_system_password }}"
    state=present
    cpg_name="{{ cpg_name }}"
    domain="{{ domain }}"
    growth_increment="{{ growth_increment }}"
    growth_increment_unit="{{ growth_increment_unit }}"
    growth_limit="{{ growth_limit }}"
    growth_limit_unit="{{ growth_limit_unit }}"
    growth_warning="{{ growth_warning }}"
    growth_warning_unit="{{ growth_warning_unit }}"
    raid_type="{{ raid_type }}"
    set_size="{{ set_size }}"
    high_availability="{{ high_availability }}"
    disk_type="{{ disk_type }}"

- name: Delete CPG "{{ cpg_name }}"
  hpe3par_cpg:
    storage_system_ip="{{ storage_system_ip }}"
    storage_system_username="{{ storage_system_username }}"
    storage_system_password="{{ storage_system_password }}"
    state=absent

Non Idempotent Actions

Actions are Idempotent when they can be run multiple times on the same system and the results will always be identical, without producing unintended side effects.

The following actions are non-idempotent:

  • Clone: resync, create_offline
  • Snapshot: restore online, restore offline
  • Virtual Volume: grow (grow_to_size is idempotent)
  • VLUN: All actions become non-idempotent when autolun is set to true

About

HPE 3PAR ansible module to configure, provision and manage 3PAR storage arrays and resources

Resources

Stars

Watchers

Forks

Packages

No packages published

Languages

  • Python 100.0%