# abdelkaderbenhmida/enterprise-devops-platform architecture

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

- Interactive diagram: https://gitdiagram.com/abdelkaderbenhmida/enterprise-devops-platform
- Repository: https://github.com/abdelkaderbenhmida/enterprise-devops-platform

## Overview

This repository is an infrastructure-as-code platform for provisioning and operating a 25-VM DevOps environment and deploying three applications. The operator workflow is to provision infrastructure with Terraform, generate Ansible inventory, configure hosts, and deploy workloads; Jenkins also provides documented build-and-deploy pipelines. Application users reach the hosted apps through the load balancers. The graph includes documented HA, database, and observability capabilities. Source excerpts are limited, so relationships not explicit in the README are omitted.

Main entry points: [`ansible/site.yml`](https://github.com/abdelkaderbenhmida/enterprise-devops-platform/blob/main/ansible/site.yml) (Host Configuration), [`terraform/environments`](https://github.com/abdelkaderbenhmida/enterprise-devops-platform/tree/main/terraform/environments) (Terraform Provisioning), [`ansible/roles/k8s-control-plane`](https://github.com/abdelkaderbenhmida/enterprise-devops-platform/tree/main/ansible/roles/k8s-control-plane) (Kubernetes Cluster), [`ansible/roles/nginx-lb`](https://github.com/abdelkaderbenhmida/enterprise-devops-platform/tree/main/ansible/roles/nginx-lb) (Application Load Balancers)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_provision["Infrastructure Provisioning"]
  node_terraform["Terraform Provisioning"]
  node_network["Network Modules"]
  node_compute["VM Compute"]
  node_security["Security Groups"]
end

subgraph group_operations["Host Operations"]
  node_inventory["Inventory Generation"]
  node_ansible["Host Configuration<br/>[site.yml]"]
  node_roles["Service Roles"]
end

subgraph group_delivery["CI/CD Delivery"]
  node_jenkins["Jenkins Pipelines"]
  node_shared["Pipeline Library"]
end

subgraph group_runtime["Workloads and Data"]
  node_kubernetes["Kubernetes Cluster"]
  node_app1["Task Manager"]
  node_app2["Node Mongo App"]
  node_app3["Static Site"]
  node_postgres[("PostgreSQL HA")]
  node_loadbalancers["Application Load Balancers"]
  node_haproxy["Kubernetes API HA"]
end

subgraph group_observability["Observability"]
  node_prometheus[("Prometheus and Alerts")]
  node_exporters["Metrics Exporters"]
  node_grafana["Grafana Dashboards"]
end

node_operator(("Platform Operator"))
node_user(("Application User"))
node_azure["Azure"]

node_operator -->|"provisions with"| node_terraform
node_terraform -->|"uses modules"| node_network
node_terraform -->|"uses modules"| node_compute
node_terraform -->|"uses modules"| node_security
node_terraform -->|"creates resources"| node_azure
node_terraform -->|"provides VM outputs"| node_inventory
node_operator -->|"generates inventory"| node_inventory
node_operator -->|"runs configuration"| node_ansible
node_ansible -->|"configures hosts"| node_roles
node_ansible -->|"configures cluster"| node_kubernetes
node_ansible -->|"configures database"| node_postgres
node_ansible -->|"configures routing"| node_loadbalancers
node_ansible -->|"configures API HA"| node_haproxy
node_ansible -->|"configures monitoring"| node_prometheus
node_ansible -->|"configures dashboards"| node_grafana
node_jenkins -->|"uses shared steps"| node_shared
node_jenkins -->|"deploys workloads"| node_kubernetes
node_kubernetes -->|"runs workload"| node_app1
node_kubernetes -->|"runs workload"| node_app2
node_kubernetes -->|"runs workload"| node_app3
node_app1 -->|"uses database"| node_postgres
node_postgres -->|"streams replication"| node_postgres
node_user -->|"accesses apps"| node_loadbalancers
node_loadbalancers -->|"routes app traffic"| node_app1
node_loadbalancers -->|"routes app traffic"| node_app2
node_loadbalancers -->|"routes app traffic"| node_app3
node_exporters -->|"provide metrics"| node_prometheus
node_prometheus -->|"supplies dashboards"| node_grafana

click node_terraform "https://github.com/abdelkaderbenhmida/enterprise-devops-platform/tree/main/terraform/environments"
click node_network "https://github.com/abdelkaderbenhmida/enterprise-devops-platform/tree/main/terraform/modules/network"
click node_compute "https://github.com/abdelkaderbenhmida/enterprise-devops-platform/tree/main/terraform/modules/compute"
click node_security "https://github.com/abdelkaderbenhmida/enterprise-devops-platform/tree/main/terraform/modules/security-groups"
click node_inventory "https://github.com/abdelkaderbenhmida/enterprise-devops-platform/blob/main/scripts/generate-inventory.py"
click node_ansible "https://github.com/abdelkaderbenhmida/enterprise-devops-platform/blob/main/ansible/site.yml"
click node_roles "https://github.com/abdelkaderbenhmida/enterprise-devops-platform/tree/main/ansible/roles"
click node_jenkins "https://github.com/abdelkaderbenhmida/enterprise-devops-platform/tree/main/jenkins"
click node_shared "https://github.com/abdelkaderbenhmida/enterprise-devops-platform/tree/main/jenkins/shared-library"
click node_kubernetes "https://github.com/abdelkaderbenhmida/enterprise-devops-platform/tree/main/ansible/roles/k8s-control-plane"
click node_app1 "https://github.com/abdelkaderbenhmida/enterprise-devops-platform/tree/main/kubernetes/app1-taskmanager"
click node_app2 "https://github.com/abdelkaderbenhmida/enterprise-devops-platform/tree/main/kubernetes/app2-nodemongo"
click node_app3 "https://github.com/abdelkaderbenhmida/enterprise-devops-platform/tree/main/kubernetes/app3-static-site"
click node_postgres "https://github.com/abdelkaderbenhmida/enterprise-devops-platform/tree/main/ansible/roles/postgresql-primary"
click node_loadbalancers "https://github.com/abdelkaderbenhmida/enterprise-devops-platform/tree/main/ansible/roles/nginx-lb"
click node_haproxy "https://github.com/abdelkaderbenhmida/enterprise-devops-platform/tree/main/ansible/roles/haproxy-lb"
click node_prometheus "https://github.com/abdelkaderbenhmida/enterprise-devops-platform/tree/main/monitoring/prometheus"
click node_exporters "https://github.com/abdelkaderbenhmida/enterprise-devops-platform/tree/main/ansible/roles/node_exporter"
click node_grafana "https://github.com/abdelkaderbenhmida/enterprise-devops-platform/tree/main/monitoring/grafana"

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_terraform,node_network,node_compute,node_security,node_user toneBlue
class node_inventory,node_ansible,node_roles toneAmber
class node_jenkins,node_shared toneMint
class node_kubernetes,node_app1,node_app2,node_app3,node_postgres,node_loadbalancers,node_haproxy toneRose
class node_prometheus,node_exporters,node_grafana,node_operator,node_azure toneIndigo
```

## Components

### Infrastructure Provisioning

- [Terraform Provisioning](https://github.com/abdelkaderbenhmida/enterprise-devops-platform/tree/main/terraform/environments): `terraform/environments`
- [Network Modules](https://github.com/abdelkaderbenhmida/enterprise-devops-platform/tree/main/terraform/modules/network): `terraform/modules/network`
- [VM Compute](https://github.com/abdelkaderbenhmida/enterprise-devops-platform/tree/main/terraform/modules/compute): `terraform/modules/compute`
- [Security Groups](https://github.com/abdelkaderbenhmida/enterprise-devops-platform/tree/main/terraform/modules/security-groups): `terraform/modules/security-groups`

### Host Operations

- [Inventory Generation](https://github.com/abdelkaderbenhmida/enterprise-devops-platform/blob/main/scripts/generate-inventory.py): `scripts/generate-inventory.py`
- [Host Configuration](https://github.com/abdelkaderbenhmida/enterprise-devops-platform/blob/main/ansible/site.yml): `ansible/site.yml`
- [Service Roles](https://github.com/abdelkaderbenhmida/enterprise-devops-platform/tree/main/ansible/roles): `ansible/roles`

### CI/CD Delivery

- [Jenkins Pipelines](https://github.com/abdelkaderbenhmida/enterprise-devops-platform/tree/main/jenkins): `jenkins`
- [Pipeline Library](https://github.com/abdelkaderbenhmida/enterprise-devops-platform/tree/main/jenkins/shared-library): `jenkins/shared-library`

### Workloads and Data

- [Kubernetes Cluster](https://github.com/abdelkaderbenhmida/enterprise-devops-platform/tree/main/ansible/roles/k8s-control-plane): `ansible/roles/k8s-control-plane`
- [Task Manager](https://github.com/abdelkaderbenhmida/enterprise-devops-platform/tree/main/kubernetes/app1-taskmanager): `kubernetes/app1-taskmanager`
- [Node Mongo App](https://github.com/abdelkaderbenhmida/enterprise-devops-platform/tree/main/kubernetes/app2-nodemongo): `kubernetes/app2-nodemongo`
- [Static Site](https://github.com/abdelkaderbenhmida/enterprise-devops-platform/tree/main/kubernetes/app3-static-site): `kubernetes/app3-static-site`
- [PostgreSQL HA](https://github.com/abdelkaderbenhmida/enterprise-devops-platform/tree/main/ansible/roles/postgresql-primary): `ansible/roles/postgresql-primary`
- [Application Load Balancers](https://github.com/abdelkaderbenhmida/enterprise-devops-platform/tree/main/ansible/roles/nginx-lb): `ansible/roles/nginx-lb`
- [Kubernetes API HA](https://github.com/abdelkaderbenhmida/enterprise-devops-platform/tree/main/ansible/roles/haproxy-lb): `ansible/roles/haproxy-lb`

### Observability

- [Prometheus and Alerts](https://github.com/abdelkaderbenhmida/enterprise-devops-platform/tree/main/monitoring/prometheus): `monitoring/prometheus`
- [Metrics Exporters](https://github.com/abdelkaderbenhmida/enterprise-devops-platform/tree/main/ansible/roles/node_exporter): `ansible/roles/node_exporter`
- [Grafana Dashboards](https://github.com/abdelkaderbenhmida/enterprise-devops-platform/tree/main/monitoring/grafana): `monitoring/grafana`

### Other components

- **Platform Operator**
- **Application User**
- **Azure**

## Connections

- Platform Operator → Terraform Provisioning: provisions with (evidence: `README.md`)
- Terraform Provisioning → Network Modules: uses modules (evidence: `README.md`)
- Terraform Provisioning → VM Compute: uses modules (evidence: `README.md`)
- Terraform Provisioning → Security Groups: uses modules (evidence: `README.md`)
- Terraform Provisioning → Azure: creates resources (evidence: `README.md`)
- Terraform Provisioning → Inventory Generation: provides VM outputs (evidence: `README.md`)
- Platform Operator → Inventory Generation: generates inventory (evidence: `README.md`)
- Platform Operator → Host Configuration: runs configuration (evidence: `README.md`)
- Host Configuration → Service Roles: configures hosts (evidence: `README.md`)
- Host Configuration → Kubernetes Cluster: configures cluster (evidence: `README.md`)
- Host Configuration → PostgreSQL HA: configures database (evidence: `README.md`)
- Host Configuration → Application Load Balancers: configures routing (evidence: `README.md`)
- Host Configuration → Kubernetes API HA: configures API HA (evidence: `README.md`)
- Host Configuration → Prometheus and Alerts: configures monitoring (evidence: `README.md`)
- Host Configuration → Grafana Dashboards: configures dashboards (evidence: `README.md`)
- Jenkins Pipelines → Pipeline Library: uses shared steps (evidence: `README.md`)
- Jenkins Pipelines → Kubernetes Cluster: deploys workloads (evidence: `README.md`)
- Kubernetes Cluster → Task Manager: runs workload (evidence: `README.md`)
- Kubernetes Cluster → Node Mongo App: runs workload (evidence: `README.md`)
- Kubernetes Cluster → Static Site: runs workload (evidence: `README.md`)
- Task Manager → PostgreSQL HA: uses database (evidence: `README.md`)
- PostgreSQL HA → PostgreSQL HA: streams replication (evidence: `README.md`)
- Application User → Application Load Balancers: accesses apps (evidence: `README.md`)
- Application Load Balancers → Task Manager: routes app traffic (evidence: `README.md`)
- Application Load Balancers → Node Mongo App: routes app traffic (evidence: `README.md`)
- Application Load Balancers → Static Site: routes app traffic (evidence: `README.md`)
- Metrics Exporters → Prometheus and Alerts: provide metrics (evidence: `README.md`)
- Prometheus and Alerts → Grafana Dashboards: supplies dashboards (evidence: `README.md`)
