Skip to content

Architecture

flowchart TB
  accTitle: The two repos
  accDescr: The public framework repo and your private fleet repo are both pulled by every host, which checks and applies them on a timer.

  subgraph framework["Framework repo · public, you do not edit it"]
    roles["<b>Roles</b><br/>what a host can run"]:::blue
    tags["<b>Tag manifests</b><br/>which roles a tag runs"]:::blue
    roles ~~~ tags
  end

  subgraph fleet["Your fleet repo · private, says what you run and where"]
    table["<b>Host table</b><br/>one row per host"]:::purple
    vars["<b>Variables</b><br/>per group, per host"]:::purple
    secrets["<b>Secrets</b><br/>sops, per-host keys"]:::purple
    table ~~~ vars ~~~ secrets
  end

  host["<b>Every host</b><br/>pulls both repos about every 20 minutes<br/>checks, applies, skips when nothing is new<br/>decrypts only what its own key was granted"]:::green

  fleet --> host
  framework --> host

  classDef blue fill:#2f6fdb26,stroke:#2f6fdb
  classDef purple fill:#7a45c926,stroke:#7a45c9
  classDef green fill:#1f8a4c26,stroke:#1f8a4c
  style framework fill:transparent,stroke:#2f6fdb
  style fleet fill:transparent,stroke:#7a45c9

Each host pulls two repos on a timer: the public framework, which holds the roles and tag manifests, and a private fleet repo with the host table, variables, routes and secrets. The reconciler merges them into one run directory, checks what would change, applies it, and skips the run when neither repo has changed. A host’s tags in config/inventory/hosts.yml decide which roles it runs and which secrets it may read.

How the layers fit together is described in the framework’s architecture document.