# vgrigolaia/redis-cluster-ansible architecture

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

- Interactive diagram: https://gitdiagram.com/vgrigolaia/redis-cluster-ansible
- Repository: https://github.com/vgrigolaia/redis-cluster-ansible

## Overview

This Ansible project provisions and operates a six-node Redis Cluster on Proxmox, then verifies its placement and health and generates a developer handoff from live cluster data. The principal workflow is template creation, VM provisioning, OS setup, Redis configuration, cluster formation, verification, and connection-info generation. The README documents these relationships, but no source excerpts were provided, so the graph omits implementation details not explicitly documented.

Main entry points: [`site.yml`](https://github.com/vgrigolaia/redis-cluster-ansible/blob/dev/site.yml) (Site orchestration), [`playbooks/98_connection_info.yml`](https://github.com/vgrigolaia/redis-cluster-ansible/blob/dev/playbooks/98_connection_info.yml) (Connection info), [`inventory`](https://github.com/vgrigolaia/redis-cluster-ansible/tree/dev/inventory) (Inventory and variables), [`playbooks/01_template.yml`](https://github.com/vgrigolaia/redis-cluster-ansible/blob/dev/playbooks/01_template.yml) (Template setup)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_provision["Proxmox provisioning"]
  node_site["Site orchestration<br/>[site.yml]"]
  node_inventory["Inventory and variables"]
  node_template["Template setup<br/>[01_template.yml]"]
  node_vms["VM provisioning<br/>[02_vms.yml]"]
  node_os["OS configuration<br/>[03_os.yml]"]
end

subgraph group_redis["Redis configuration"]
  node_redis_setup["Redis setup<br/>[04_redis.yml]"]
  node_redis_config["Redis configuration template<br/>[redis.conf.j2]"]
  node_cluster["Cluster formation<br/>[05_cluster.yml]"]
end

subgraph group_operations["Safety and verification"]
  node_preflight["VMID preflight<br/>[preflight.yml]"]
  node_placement["Live placement map<br/>[live_placement.yml]"]
  node_verify["Cluster verification<br/>[99_verify.yml]"]
end

subgraph group_handoff["Developer handoff"]
  node_connection["Connection info"]
  node_html_template["Access page template"]
  node_markdown_template["Markdown template"]
  node_env_template["Environment template"]
  node_outputs["Developer handoff files"]
end

node_operator(("Operator"))
node_proxmox["Proxmox"]
node_redis_nodes["Redis VMs"]
node_developers(("Developers"))

node_operator -->|"runs"| node_site
node_site -->|"imports first"| node_template
node_site -->|"imports"| node_vms
node_site -->|"imports"| node_os
node_site -->|"imports"| node_redis_setup
node_site -->|"imports"| node_cluster
node_site -->|"runs before handoff"| node_verify
node_site -->|"runs last"| node_connection
node_template -->|"runs guard"| node_preflight
node_vms -->|"runs guard"| node_preflight
node_template -->|"configures template"| node_proxmox
node_vms -->|"creates VMs"| node_proxmox
node_os -->|"configures OS"| node_redis_nodes
node_redis_setup -->|"uses template"| node_redis_config
node_redis_setup -->|"configures Redis"| node_redis_nodes
node_cluster -->|"forms cluster"| node_redis_nodes
node_verify -->|"reads placement"| node_placement
node_connection -->|"reads placement"| node_placement
node_verify -->|"checks live state"| node_proxmox
node_connection -->|"reads live state"| node_proxmox
node_connection -->|"reads cluster data"| node_redis_nodes
node_connection -->|"renders"| node_html_template
node_connection -->|"renders"| node_markdown_template
node_connection -->|"renders"| node_env_template
node_connection -->|"writes files"| node_outputs
node_developers -->|"uses handoff"| node_outputs
node_inventory -->|"provides settings"| node_template
node_inventory -->|"provides settings"| node_vms
node_inventory -->|"provides settings"| node_os
node_inventory -->|"provides settings"| node_redis_setup
node_inventory -->|"provides topology"| node_cluster

click node_site "https://github.com/vgrigolaia/redis-cluster-ansible/blob/dev/site.yml"
click node_inventory "https://github.com/vgrigolaia/redis-cluster-ansible/tree/dev/inventory"
click node_preflight "https://github.com/vgrigolaia/redis-cluster-ansible/blob/dev/playbooks/tasks/preflight.yml"
click node_template "https://github.com/vgrigolaia/redis-cluster-ansible/blob/dev/playbooks/01_template.yml"
click node_vms "https://github.com/vgrigolaia/redis-cluster-ansible/blob/dev/playbooks/02_vms.yml"
click node_os "https://github.com/vgrigolaia/redis-cluster-ansible/blob/dev/playbooks/03_os.yml"
click node_redis_setup "https://github.com/vgrigolaia/redis-cluster-ansible/blob/dev/playbooks/04_redis.yml"
click node_redis_config "https://github.com/vgrigolaia/redis-cluster-ansible/blob/dev/playbooks/templates/redis.conf.j2"
click node_cluster "https://github.com/vgrigolaia/redis-cluster-ansible/blob/dev/playbooks/05_cluster.yml"
click node_placement "https://github.com/vgrigolaia/redis-cluster-ansible/blob/dev/playbooks/tasks/live_placement.yml"
click node_verify "https://github.com/vgrigolaia/redis-cluster-ansible/blob/dev/playbooks/99_verify.yml"
click node_connection "https://github.com/vgrigolaia/redis-cluster-ansible/blob/dev/playbooks/98_connection_info.yml"
click node_html_template "https://github.com/vgrigolaia/redis-cluster-ansible/blob/dev/playbooks/templates/connection-info.html.j2"
click node_markdown_template "https://github.com/vgrigolaia/redis-cluster-ansible/blob/dev/playbooks/templates/connection-info.md.j2"
click node_env_template "https://github.com/vgrigolaia/redis-cluster-ansible/blob/dev/playbooks/templates/connection-info.env.j2"
click node_outputs "https://github.com/vgrigolaia/redis-cluster-ansible/tree/dev/output"

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_site,node_inventory,node_template,node_vms,node_os toneBlue
class node_redis_setup,node_redis_config,node_cluster,node_redis_nodes toneAmber
class node_preflight,node_placement,node_verify toneMint
class node_connection,node_html_template,node_markdown_template,node_env_template,node_outputs toneRose
class node_operator,node_proxmox,node_developers toneIndigo
```

## Components

### Proxmox provisioning

- [Site orchestration](https://github.com/vgrigolaia/redis-cluster-ansible/blob/dev/site.yml): `site.yml`
- [Inventory and variables](https://github.com/vgrigolaia/redis-cluster-ansible/tree/dev/inventory): `inventory`
- [Template setup](https://github.com/vgrigolaia/redis-cluster-ansible/blob/dev/playbooks/01_template.yml): `playbooks/01_template.yml`
- [VM provisioning](https://github.com/vgrigolaia/redis-cluster-ansible/blob/dev/playbooks/02_vms.yml): `playbooks/02_vms.yml`
- [OS configuration](https://github.com/vgrigolaia/redis-cluster-ansible/blob/dev/playbooks/03_os.yml): `playbooks/03_os.yml`

### Redis configuration

- [Redis setup](https://github.com/vgrigolaia/redis-cluster-ansible/blob/dev/playbooks/04_redis.yml): `playbooks/04_redis.yml`
- [Redis configuration template](https://github.com/vgrigolaia/redis-cluster-ansible/blob/dev/playbooks/templates/redis.conf.j2): `playbooks/templates/redis.conf.j2`
- [Cluster formation](https://github.com/vgrigolaia/redis-cluster-ansible/blob/dev/playbooks/05_cluster.yml): `playbooks/05_cluster.yml`

### Safety and verification

- [VMID preflight](https://github.com/vgrigolaia/redis-cluster-ansible/blob/dev/playbooks/tasks/preflight.yml): `playbooks/tasks/preflight.yml`
- [Live placement map](https://github.com/vgrigolaia/redis-cluster-ansible/blob/dev/playbooks/tasks/live_placement.yml): `playbooks/tasks/live_placement.yml`
- [Cluster verification](https://github.com/vgrigolaia/redis-cluster-ansible/blob/dev/playbooks/99_verify.yml): `playbooks/99_verify.yml`

### Developer handoff

- [Connection info](https://github.com/vgrigolaia/redis-cluster-ansible/blob/dev/playbooks/98_connection_info.yml): `playbooks/98_connection_info.yml`
- [Access page template](https://github.com/vgrigolaia/redis-cluster-ansible/blob/dev/playbooks/templates/connection-info.html.j2): `playbooks/templates/connection-info.html.j2`
- [Markdown template](https://github.com/vgrigolaia/redis-cluster-ansible/blob/dev/playbooks/templates/connection-info.md.j2): `playbooks/templates/connection-info.md.j2`
- [Environment template](https://github.com/vgrigolaia/redis-cluster-ansible/blob/dev/playbooks/templates/connection-info.env.j2): `playbooks/templates/connection-info.env.j2`
- [Developer handoff files](https://github.com/vgrigolaia/redis-cluster-ansible/tree/dev/output): `output`

### Other components

- **Operator**
- **Proxmox**
- **Redis VMs**
- **Developers**

## Connections

- Operator → Site orchestration: runs (evidence: `README.md`)
- Site orchestration → Template setup: imports first (evidence: `README.md`)
- Site orchestration → VM provisioning: imports (evidence: `README.md`)
- Site orchestration → OS configuration: imports (evidence: `README.md`)
- Site orchestration → Redis setup: imports (evidence: `README.md`)
- Site orchestration → Cluster formation: imports (evidence: `README.md`)
- Site orchestration → Cluster verification: runs before handoff (evidence: `README.md`)
- Site orchestration → Connection info: runs last (evidence: `README.md`)
- Template setup → VMID preflight: runs guard (evidence: `README.md`)
- VM provisioning → VMID preflight: runs guard (evidence: `README.md`)
- Template setup → Proxmox: configures template (evidence: `README.md`)
- VM provisioning → Proxmox: creates VMs (evidence: `README.md`)
- OS configuration → Redis VMs: configures OS (evidence: `README.md`)
- Redis setup → Redis configuration template: uses template (evidence: `README.md`)
- Redis setup → Redis VMs: configures Redis (evidence: `README.md`)
- Cluster formation → Redis VMs: forms cluster (evidence: `README.md`)
- Cluster verification → Live placement map: reads placement (evidence: `README.md`)
- Connection info → Live placement map: reads placement (evidence: `README.md`)
- Cluster verification → Proxmox: checks live state (evidence: `README.md`)
- Connection info → Proxmox: reads live state (evidence: `README.md`)
- Connection info → Redis VMs: reads cluster data (evidence: `README.md`)
- Connection info → Access page template: renders (evidence: `README.md`)
- Connection info → Markdown template: renders (evidence: `README.md`)
- Connection info → Environment template: renders (evidence: `README.md`)
- Connection info → Developer handoff files: writes files (evidence: `README.md`)
- Developers → Developer handoff files: uses handoff (evidence: `README.md`)
- Inventory and variables → Template setup: provides settings (evidence: `README.md`)
- Inventory and variables → VM provisioning: provides settings (evidence: `README.md`)
- Inventory and variables → OS configuration: provides settings (evidence: `README.md`)
- Inventory and variables → Redis setup: provides settings (evidence: `README.md`)
- Inventory and variables → Cluster formation: provides topology (evidence: `README.md`)
