# hewlettpackard/hpe3par_ansible_module architecture

> Architecture diagram of the GitHub repository hewlettpackard/hpe3par_ansible_module, generated by GitDiagram from its file tree, README and a sample of source files (last updated 2026-10-09). It is an AI-made overview: check details against the source.

- Interactive diagram: https://gitdiagram.com/hewlettpackard/hpe3par_ansible_module
- Repository: https://github.com/hewlettpackard/hpe3par_ansible_module

## Overview

This repository provides Ansible modules and example playbooks for provisioning and managing HPE Alletra, Primera, and 3PAR storage through the Python SDK and array WSAPI. The principal workflow is an operator running a playbook that invokes a module to configure storage and returns the result through Ansible. Modules cover capacity pools, volumes, hosts and sets, exports, clones, snapshots, QoS, flash cache, and remote copy. Several module bodies and playbooks were not sampled, so their links are shown only where documented or marked unverified.

Main entry points: [`playbooks`](https://github.com/hewlettpackard/hpe3par_ansible_module/tree/master/playbooks) (Example playbooks), [`Modules/hpe3par_cpg.py`](https://github.com/hewlettpackard/hpe3par_ansible_module/blob/master/Modules/hpe3par_cpg.py) (Capacity pools), [`Modules/hpe3par_volume.py`](https://github.com/hewlettpackard/hpe3par_ansible_module/blob/master/Modules/hpe3par_volume.py) (Volumes), [`Modules/hpe3par_volumeset.py`](https://github.com/hewlettpackard/hpe3par_ansible_module/blob/master/Modules/hpe3par_volumeset.py) (Volume sets)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_orchestration["Ansible orchestration"]
  node_playbooks["Example playbooks"]
  node_ansible["Ansible module runtime"]
end

subgraph group_provisioning["Provisioning resources"]
  node_cpg["Capacity pools<br/>[hpe3par_cpg.py]"]
  node_volume["Volumes<br/>[hpe3par_volume.py]"]
  node_volumeset["Volume sets"]
end

subgraph group_access["Hosts and access"]
  node_host["Hosts<br/>[hpe3par_host.py]"]
  node_hostset["Host sets<br/>[hpe3par_hostset.py]"]
  node_vlun["VLUN exports<br/>[hpe3par_vlun.py]"]
end

subgraph group_services["Data services"]
  node_offlineclone["Offline clones"]
  node_onlineclone["Online clones"]
  node_snapshot["Snapshots and schedules"]
  node_qos["QoS rules<br/>[hpe3par_qos.py]"]
  node_flashcache["Flash cache"]
  node_remotecopy["Remote copy"]
end

node_operator(("Operator"))
node_sdk["HPE Python SDK"]
node_array[("Storage array WSAPI")]

node_operator -->|"runs"| node_playbooks
node_playbooks -.->|"invokes modules"| node_ansible
node_ansible -.->|"dispatches"| node_cpg
node_ansible -.->|"dispatches"| node_volume
node_ansible -.->|"dispatches"| node_volumeset
node_ansible -.->|"dispatches"| node_host
node_ansible -.->|"dispatches"| node_hostset
node_ansible -.->|"dispatches"| node_vlun
node_ansible -.->|"dispatches"| node_offlineclone
node_ansible -.->|"dispatches"| node_onlineclone
node_ansible -.->|"dispatches"| node_snapshot
node_ansible -.->|"dispatches"| node_qos
node_ansible -.->|"dispatches"| node_flashcache
node_ansible -.->|"dispatches"| node_remotecopy
node_cpg -.->|"calls"| node_sdk
node_volume -->|"calls"| node_sdk
node_volumeset -->|"calls"| node_sdk
node_host -->|"calls"| node_sdk
node_hostset -->|"calls"| node_sdk
node_vlun -->|"calls"| node_sdk
node_offlineclone -->|"calls"| node_sdk
node_onlineclone -->|"calls"| node_sdk
node_snapshot -->|"calls"| node_sdk
node_qos -->|"calls"| node_sdk
node_remotecopy -->|"calls"| node_sdk
node_sdk -->|"uses WSAPI"| node_array
node_flashcache -.->|"calls"| node_sdk

click node_playbooks "https://github.com/hewlettpackard/hpe3par_ansible_module/tree/master/playbooks"
click node_cpg "https://github.com/hewlettpackard/hpe3par_ansible_module/blob/master/Modules/hpe3par_cpg.py"
click node_volume "https://github.com/hewlettpackard/hpe3par_ansible_module/blob/master/Modules/hpe3par_volume.py"
click node_volumeset "https://github.com/hewlettpackard/hpe3par_ansible_module/blob/master/Modules/hpe3par_volumeset.py"
click node_host "https://github.com/hewlettpackard/hpe3par_ansible_module/blob/master/Modules/hpe3par_host.py"
click node_hostset "https://github.com/hewlettpackard/hpe3par_ansible_module/blob/master/Modules/hpe3par_hostset.py"
click node_vlun "https://github.com/hewlettpackard/hpe3par_ansible_module/blob/master/Modules/hpe3par_vlun.py"
click node_offlineclone "https://github.com/hewlettpackard/hpe3par_ansible_module/blob/master/Modules/hpe3par_offline_clone.py"
click node_onlineclone "https://github.com/hewlettpackard/hpe3par_ansible_module/blob/master/Modules/hpe3par_online_clone.py"
click node_snapshot "https://github.com/hewlettpackard/hpe3par_ansible_module/blob/master/Modules/hpe3par_snapshot.py"
click node_qos "https://github.com/hewlettpackard/hpe3par_ansible_module/blob/master/Modules/hpe3par_qos.py"
click node_flashcache "https://github.com/hewlettpackard/hpe3par_ansible_module/blob/master/Modules/hpe3par_flash_cache.py"
click node_remotecopy "https://github.com/hewlettpackard/hpe3par_ansible_module/blob/master/Modules/hpe3par_remote_copy.py"

classDef toneNeutral fill:#f8fafc,stroke:#334155,stroke-width:1.5px,color:#0f172a
classDef toneBlue fill:#dbeafe,stroke:#2563eb,stroke-width:1.5px,color:#172554
classDef toneAmber fill:#fef3c7,stroke:#d97706,stroke-width:1.5px,color:#78350f
classDef toneMint fill:#dcfce7,stroke:#16a34a,stroke-width:1.5px,color:#14532d
classDef toneRose fill:#ffe4e6,stroke:#e11d48,stroke-width:1.5px,color:#881337
classDef toneIndigo fill:#e0e7ff,stroke:#4f46e5,stroke-width:1.5px,color:#312e81
classDef toneTeal fill:#ccfbf1,stroke:#0f766e,stroke-width:1.5px,color:#134e4a
class node_playbooks,node_ansible toneBlue
class node_cpg,node_volume,node_volumeset,node_array toneAmber
class node_host,node_hostset,node_vlun toneMint
class node_offlineclone,node_onlineclone,node_snapshot,node_qos,node_flashcache,node_remotecopy toneRose
class node_operator,node_sdk toneIndigo
```

## Components

### Ansible orchestration

- [Example playbooks](https://github.com/hewlettpackard/hpe3par_ansible_module/tree/master/playbooks): `playbooks`
- **Ansible module runtime**

### Provisioning resources

- [Capacity pools](https://github.com/hewlettpackard/hpe3par_ansible_module/blob/master/Modules/hpe3par_cpg.py): `Modules/hpe3par_cpg.py`
- [Volumes](https://github.com/hewlettpackard/hpe3par_ansible_module/blob/master/Modules/hpe3par_volume.py): `Modules/hpe3par_volume.py`
- [Volume sets](https://github.com/hewlettpackard/hpe3par_ansible_module/blob/master/Modules/hpe3par_volumeset.py): `Modules/hpe3par_volumeset.py`

### Hosts and access

- [Hosts](https://github.com/hewlettpackard/hpe3par_ansible_module/blob/master/Modules/hpe3par_host.py): `Modules/hpe3par_host.py`
- [Host sets](https://github.com/hewlettpackard/hpe3par_ansible_module/blob/master/Modules/hpe3par_hostset.py): `Modules/hpe3par_hostset.py`
- [VLUN exports](https://github.com/hewlettpackard/hpe3par_ansible_module/blob/master/Modules/hpe3par_vlun.py): `Modules/hpe3par_vlun.py`

### Data services

- [Offline clones](https://github.com/hewlettpackard/hpe3par_ansible_module/blob/master/Modules/hpe3par_offline_clone.py): `Modules/hpe3par_offline_clone.py`
- [Online clones](https://github.com/hewlettpackard/hpe3par_ansible_module/blob/master/Modules/hpe3par_online_clone.py): `Modules/hpe3par_online_clone.py`
- [Snapshots and schedules](https://github.com/hewlettpackard/hpe3par_ansible_module/blob/master/Modules/hpe3par_snapshot.py): `Modules/hpe3par_snapshot.py`
- [QoS rules](https://github.com/hewlettpackard/hpe3par_ansible_module/blob/master/Modules/hpe3par_qos.py): `Modules/hpe3par_qos.py`
- [Flash cache](https://github.com/hewlettpackard/hpe3par_ansible_module/blob/master/Modules/hpe3par_flash_cache.py): `Modules/hpe3par_flash_cache.py`
- [Remote copy](https://github.com/hewlettpackard/hpe3par_ansible_module/blob/master/Modules/hpe3par_remote_copy.py): `Modules/hpe3par_remote_copy.py`

### Other components

- **Operator**
- **HPE Python SDK**
- **Storage array WSAPI**

## Connections

- Operator → Example playbooks: runs (evidence: `README.md`)
- Example playbooks → Ansible module runtime: invokes modules
- Ansible module runtime → Capacity pools: dispatches
- Ansible module runtime → Volumes: dispatches
- Ansible module runtime → Volume sets: dispatches
- Ansible module runtime → Hosts: dispatches
- Ansible module runtime → Host sets: dispatches
- Ansible module runtime → VLUN exports: dispatches
- Ansible module runtime → Offline clones: dispatches
- Ansible module runtime → Online clones: dispatches
- Ansible module runtime → Snapshots and schedules: dispatches
- Ansible module runtime → QoS rules: dispatches
- Ansible module runtime → Flash cache: dispatches
- Ansible module runtime → Remote copy: dispatches
- Capacity pools → HPE Python SDK: calls
- Volumes → HPE Python SDK: calls (evidence: `Modules/hpe3par_volume.py`)
- Volume sets → HPE Python SDK: calls (evidence: `Modules/hpe3par_volumeset.py`)
- Hosts → HPE Python SDK: calls (evidence: `Modules/hpe3par_host.py`)
- Host sets → HPE Python SDK: calls (evidence: `Modules/hpe3par_hostset.py`)
- VLUN exports → HPE Python SDK: calls (evidence: `Modules/hpe3par_vlun.py`)
- Offline clones → HPE Python SDK: calls (evidence: `Modules/hpe3par_offline_clone.py`)
- Online clones → HPE Python SDK: calls (evidence: `Modules/hpe3par_online_clone.py`)
- Snapshots and schedules → HPE Python SDK: calls (evidence: `Modules/hpe3par_snapshot.py`)
- QoS rules → HPE Python SDK: calls (evidence: `Modules/hpe3par_qos.py`)
- Remote copy → HPE Python SDK: calls (evidence: `Modules/hpe3par_remote_copy.py`)
- HPE Python SDK → Storage array WSAPI: uses WSAPI (evidence: `README.md`)
- Flash cache → HPE Python SDK: calls
