Skip to content

๐Ÿงญ Mermaid Diagrams Cheatsheet

A collection of Mermaid syntax examples for visualizing workflows, pipelines, and infrastructure.

graph TD
    A[PR naar preprod] --> B[Molecule tests op local runner]
    B --> C{Tests geslaagd?}
    C -->|Ja| D[Merge naar preprod]
    D --> E[Handmatige goedkeuring + ITSM change]
    E --> F[Merge naar main]
    F --> G[Build Ansible Collection]
    G --> H[Push naar lokale Red Hat Automation Hub]

๐Ÿ”„ SatGitOps Workflow

flowchart TD
MERGE[[ SatGitOps Merge]] -- start WF in AAP --> AAP
AAP( WF push config PA ) --> WF-ok
AAP( WF push config PA ) --> WF-failed
MERGE -- start rulebook --> EDA
EDA(start rulebook on runner) -- exit $? --> EXIT

pauze{exit status pipeline} -- stop rulebook with exit code--> EDA
WF-ok --> pauze
WF-failed --> pauze

EXIT( exit code PIPELINE)

style MERGE stroke:#000000,fill:#00A0F0
style WF-ok stroke:#000000,fill:#E1F0D4
style WF-failed stroke:#000000,fill:#fb3b1e
style EDA stroke:#000000,fill:#00A0F0
style AAP stroke:#000000,fill:#00A0F0
style EXIT stroke:#000000,fill:#00A0F0

๐Ÿ”ง Git Feature Branch Flow

flowchart TD
  GIT((git main)) --checkout -b feature --> PR(edit config params)
  PR((pull-request feature to main)) -- 2 approves--> PREREQ
  PR-pipeline[[ SatGitOps PR ]] 
  PR -- start pipeline --> PR-pipeline
  PREREQ[ merge to main] -- start pipeline --> MERGEPL

  MERGEPL[[ SatGitOps Merge ]]

  PR-pipeline -- start linting --> LINT
  LINT( pip install && ansible-lint site.yml ) --> PREREQ

style GIT stroke:#000000,fill:#00A0F0
style PR stroke:#000000,fill:#00A0F0
style PR-pipeline stroke:#000000,fill:#D4EFF0
style MERGEPL stroke:#000000,fill:#D4EFF0
style PREREQ stroke:#000000,fill:#D4EFF0

๐ŸŒ Load Balancer Architecture

graph TD
  A[Client] --> B[Load Balancer]
  B --> C[Server01]
  B --> D[Server02]

๐Ÿงช Raw Mermaid Syntax (for reference)

flowchart TD
MERGE[[ SatGitOps Merge]] -- start WF in AAP --> AAP
AAP( WF push config PA ) --> WF-ok
AAP( WF push config PA ) --> WF-failed
MERGE -- start rulebook --> EDA
EDA(start rulebook on runner) -- exit $? --> EXIT

pauze{exit status pipeline} -- stop rulebook with exit code--> EDA
WF-ok --> pauze
WF-failed --> pauze

EXIT( exit code PIPELINE)

style MERGE stroke:#000000,fill:#00A0F0
style WF-ok stroke:#000000,fill:#E1F0D4
style WF-failed stroke:#000000,fill:#fb3b1e
style EDA stroke:#000000,fill:#00A0F0
style AAP stroke:#000000,fill:#00A0F0
style EXIT stroke:#000000,fill:#00A0F0

๐Ÿ  HOME ๐Ÿ” Top