# gitlabhq/omnibus-gitlab architecture

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

- Interactive diagram: https://gitdiagram.com/gitlabhq/omnibus-gitlab
- Repository: https://github.com/gitlabhq/omnibus-gitlab

## Overview

Omnibus GitLab supplies platform-specific Linux packages for the GitLab application and its dependencies. The main administrator workflow is to install a package, configure it in /etc/gitlab, and run gitlab-ctl reconfigure to write application configuration and manage services. The repository also contains operational commands, monitoring and database/Geo administration, plus a package-publishing utility. The tree and excerpts establish these areas, but many runtime recipes were not sampled; their connections are therefore omitted or marked unverified.

Main entry points: [`files/gitlab-cookbooks/package/recipes/default.rb`](https://github.com/gitlabhq/omnibus-gitlab/blob/master/files/gitlab-cookbooks/package/recipes/default.rb) (Package runtime), [`files/gitlab-ctl-commands/lib/gitlab_ctl/registry/database.rb`](https://github.com/gitlabhq/omnibus-gitlab/blob/master/files/gitlab-ctl-commands/lib/gitlab_ctl/registry/database.rb) (Registry database commands), [`lib/gitlab/package_repository/pulp_repository.rb`](https://github.com/gitlabhq/omnibus-gitlab/blob/master/lib/gitlab/package_repository/pulp_repository.rb) (Pulp uploader), [`files/gitlab-cookbooks/package/recipes/config.rb`](https://github.com/gitlabhq/omnibus-gitlab/blob/master/files/gitlab-cookbooks/package/recipes/config.rb) (Configuration recipes)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_package["Package configuration"]
  node_linux_pkg["Linux package<br/>[gitlab.rb]"]
  node_site_config["Site configuration<br/>[gitlab.rb]"]
  node_config_recipes["Configuration recipes<br/>[config.rb]"]
  node_package_runtime["Package runtime<br/>[default.rb]"]
end

subgraph group_services["GitLab services"]
  node_app_services["Rails services<br/>[gitlab-rails.rb]"]
  node_web_proxy["Web server<br/>[nginx.rb]"]
  node_database[("PostgreSQL<br/>[standalone.rb]")]
  node_cache[("Redis or Valkey<br/>[enable.rb]")]
  node_git_storage["Gitaly storage<br/>[enable.rb]"]
  node_container_registry["Container registry<br/>[enable.rb]"]
  node_monitoring["Monitoring stack<br/>[default.rb]"]
end

subgraph group_operations["Operations"]
  node_ctl["gitlab-ctl<br/>[gitlab_ctl.rb]"]
  node_registry_db["Registry database commands<br/>[database.rb]"]
  node_registry_migrate["Registry migrations<br/>[migrate.rb]"]
  node_registry_import["Registry import<br/>[import.rb]"]
  node_registry_stats["Registry GC stats<br/>[gc_stats.rb]"]
  node_geo["Geo administration"]
end

subgraph group_publishing["Package publishing"]
  node_publisher["Package repository API"]
  node_pulp["Pulp uploader<br/>[pulp_repository.rb]"]
  node_package_types["Package formats<br/>[package_type.rb]"]
end

node_admin(("Administrator"))
node_pulp_service["Pulp server"]

node_admin -->|"installs"| node_linux_pkg
node_admin -->|"configures"| node_site_config
node_admin -->|"runs reconfigure"| node_config_recipes
node_config_recipes -.->|"configures runtime"| node_package_runtime
node_package_runtime -.->|"manages services"| node_app_services
node_package_runtime -.->|"manages services"| node_web_proxy
node_package_runtime -.->|"manages services"| node_database
node_package_runtime -.->|"manages services"| node_cache
node_package_runtime -.->|"manages services"| node_git_storage
node_package_runtime -.->|"manages services"| node_container_registry
node_package_runtime -.->|"manages services"| node_monitoring
node_admin -->|"runs commands"| node_ctl
node_registry_db -->|"dispatches"| node_registry_migrate
node_registry_db -->|"dispatches"| node_registry_import
node_registry_db -->|"dispatches"| node_registry_stats
node_admin -.->|"administers"| node_geo
node_publisher -->|"creates"| node_pulp
node_pulp -->|"builds upload commands"| node_package_types
node_pulp -->|"uploads packages"| node_pulp_service

click node_linux_pkg "https://github.com/gitlabhq/omnibus-gitlab/blob/master/config/projects/gitlab.rb"
click node_site_config "https://github.com/gitlabhq/omnibus-gitlab/blob/master/files/gitlab-cookbooks/package/libraries/config/gitlab.rb"
click node_config_recipes "https://github.com/gitlabhq/omnibus-gitlab/blob/master/files/gitlab-cookbooks/package/recipes/config.rb"
click node_package_runtime "https://github.com/gitlabhq/omnibus-gitlab/blob/master/files/gitlab-cookbooks/package/recipes/default.rb"
click node_app_services "https://github.com/gitlabhq/omnibus-gitlab/blob/master/files/gitlab-cookbooks/gitlab/recipes/gitlab-rails.rb"
click node_web_proxy "https://github.com/gitlabhq/omnibus-gitlab/blob/master/files/gitlab-cookbooks/gitlab/recipes/nginx.rb"
click node_database "https://github.com/gitlabhq/omnibus-gitlab/blob/master/files/gitlab-cookbooks/postgresql/recipes/standalone.rb"
click node_cache "https://github.com/gitlabhq/omnibus-gitlab/blob/master/files/gitlab-cookbooks/redis/recipes/enable.rb"
click node_git_storage "https://github.com/gitlabhq/omnibus-gitlab/blob/master/files/gitlab-cookbooks/gitaly/recipes/enable.rb"
click node_container_registry "https://github.com/gitlabhq/omnibus-gitlab/blob/master/files/gitlab-cookbooks/registry/recipes/enable.rb"
click node_monitoring "https://github.com/gitlabhq/omnibus-gitlab/blob/master/files/gitlab-cookbooks/monitoring/recipes/default.rb"
click node_ctl "https://github.com/gitlabhq/omnibus-gitlab/blob/master/files/gitlab-ctl-commands/lib/gitlab_ctl.rb"
click node_registry_db "https://github.com/gitlabhq/omnibus-gitlab/blob/master/files/gitlab-ctl-commands/lib/gitlab_ctl/registry/database.rb"
click node_registry_migrate "https://github.com/gitlabhq/omnibus-gitlab/blob/master/files/gitlab-ctl-commands/lib/gitlab_ctl/registry/migrate.rb"
click node_registry_import "https://github.com/gitlabhq/omnibus-gitlab/blob/master/files/gitlab-ctl-commands/lib/gitlab_ctl/registry/import.rb"
click node_registry_stats "https://github.com/gitlabhq/omnibus-gitlab/blob/master/files/gitlab-ctl-commands/lib/gitlab_ctl/registry/gc_stats.rb"
click node_geo "https://github.com/gitlabhq/omnibus-gitlab/tree/master/files/gitlab-ctl-commands-ee/lib/gitlab_ctl/geo"
click node_publisher "https://github.com/gitlabhq/omnibus-gitlab/blob/master/lib/gitlab/package_repository.rb"
click node_pulp "https://github.com/gitlabhq/omnibus-gitlab/blob/master/lib/gitlab/package_repository/pulp_repository.rb"
click node_package_types "https://github.com/gitlabhq/omnibus-gitlab/blob/master/lib/gitlab/package_repository/package_type.rb"

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_linux_pkg,node_site_config,node_config_recipes,node_package_runtime toneBlue
class node_app_services,node_web_proxy,node_database,node_cache,node_git_storage,node_container_registry,node_monitoring toneAmber
class node_ctl,node_registry_db,node_registry_migrate,node_registry_import,node_registry_stats,node_geo,node_pulp_service toneMint
class node_publisher,node_pulp,node_package_types toneRose
class node_admin toneIndigo
```

## Components

### Package configuration

- [Linux package](https://github.com/gitlabhq/omnibus-gitlab/blob/master/config/projects/gitlab.rb): `config/projects/gitlab.rb`
- [Site configuration](https://github.com/gitlabhq/omnibus-gitlab/blob/master/files/gitlab-cookbooks/package/libraries/config/gitlab.rb): `files/gitlab-cookbooks/package/libraries/config/gitlab.rb`
- [Configuration recipes](https://github.com/gitlabhq/omnibus-gitlab/blob/master/files/gitlab-cookbooks/package/recipes/config.rb): `files/gitlab-cookbooks/package/recipes/config.rb`
- [Package runtime](https://github.com/gitlabhq/omnibus-gitlab/blob/master/files/gitlab-cookbooks/package/recipes/default.rb): `files/gitlab-cookbooks/package/recipes/default.rb`

### GitLab services

- [Rails services](https://github.com/gitlabhq/omnibus-gitlab/blob/master/files/gitlab-cookbooks/gitlab/recipes/gitlab-rails.rb): `files/gitlab-cookbooks/gitlab/recipes/gitlab-rails.rb`
- [Web server](https://github.com/gitlabhq/omnibus-gitlab/blob/master/files/gitlab-cookbooks/gitlab/recipes/nginx.rb): `files/gitlab-cookbooks/gitlab/recipes/nginx.rb`
- [PostgreSQL](https://github.com/gitlabhq/omnibus-gitlab/blob/master/files/gitlab-cookbooks/postgresql/recipes/standalone.rb): `files/gitlab-cookbooks/postgresql/recipes/standalone.rb`
- [Redis or Valkey](https://github.com/gitlabhq/omnibus-gitlab/blob/master/files/gitlab-cookbooks/redis/recipes/enable.rb): `files/gitlab-cookbooks/redis/recipes/enable.rb`
- [Gitaly storage](https://github.com/gitlabhq/omnibus-gitlab/blob/master/files/gitlab-cookbooks/gitaly/recipes/enable.rb): `files/gitlab-cookbooks/gitaly/recipes/enable.rb`
- [Container registry](https://github.com/gitlabhq/omnibus-gitlab/blob/master/files/gitlab-cookbooks/registry/recipes/enable.rb): `files/gitlab-cookbooks/registry/recipes/enable.rb`
- [Monitoring stack](https://github.com/gitlabhq/omnibus-gitlab/blob/master/files/gitlab-cookbooks/monitoring/recipes/default.rb): `files/gitlab-cookbooks/monitoring/recipes/default.rb`

### Operations

- [gitlab-ctl](https://github.com/gitlabhq/omnibus-gitlab/blob/master/files/gitlab-ctl-commands/lib/gitlab_ctl.rb): `files/gitlab-ctl-commands/lib/gitlab_ctl.rb`
- [Registry database commands](https://github.com/gitlabhq/omnibus-gitlab/blob/master/files/gitlab-ctl-commands/lib/gitlab_ctl/registry/database.rb): `files/gitlab-ctl-commands/lib/gitlab_ctl/registry/database.rb`
- [Registry migrations](https://github.com/gitlabhq/omnibus-gitlab/blob/master/files/gitlab-ctl-commands/lib/gitlab_ctl/registry/migrate.rb): `files/gitlab-ctl-commands/lib/gitlab_ctl/registry/migrate.rb`
- [Registry import](https://github.com/gitlabhq/omnibus-gitlab/blob/master/files/gitlab-ctl-commands/lib/gitlab_ctl/registry/import.rb): `files/gitlab-ctl-commands/lib/gitlab_ctl/registry/import.rb`
- [Registry GC stats](https://github.com/gitlabhq/omnibus-gitlab/blob/master/files/gitlab-ctl-commands/lib/gitlab_ctl/registry/gc_stats.rb): `files/gitlab-ctl-commands/lib/gitlab_ctl/registry/gc_stats.rb`
- [Geo administration](https://github.com/gitlabhq/omnibus-gitlab/tree/master/files/gitlab-ctl-commands-ee/lib/gitlab_ctl/geo): `files/gitlab-ctl-commands-ee/lib/gitlab_ctl/geo`

### Package publishing

- [Package repository API](https://github.com/gitlabhq/omnibus-gitlab/blob/master/lib/gitlab/package_repository.rb): `lib/gitlab/package_repository.rb`
- [Pulp uploader](https://github.com/gitlabhq/omnibus-gitlab/blob/master/lib/gitlab/package_repository/pulp_repository.rb): `lib/gitlab/package_repository/pulp_repository.rb`
- [Package formats](https://github.com/gitlabhq/omnibus-gitlab/blob/master/lib/gitlab/package_repository/package_type.rb): `lib/gitlab/package_repository/package_type.rb`

### Other components

- **Administrator**
- **Pulp server**

## Connections

- Administrator → Linux package: installs
- Administrator → Site configuration: configures
- Administrator → Configuration recipes: runs reconfigure
- Configuration recipes → Package runtime: configures runtime
- Package runtime → Rails services: manages services
- Package runtime → Web server: manages services
- Package runtime → PostgreSQL: manages services
- Package runtime → Redis or Valkey: manages services
- Package runtime → Gitaly storage: manages services
- Package runtime → Container registry: manages services
- Package runtime → Monitoring stack: manages services
- Administrator → gitlab-ctl: runs commands
- Registry database commands → Registry migrations: dispatches (evidence: `files/gitlab-ctl-commands/lib/gitlab_ctl/registry/database.rb`)
- Registry database commands → Registry import: dispatches (evidence: `files/gitlab-ctl-commands/lib/gitlab_ctl/registry/database.rb`)
- Registry database commands → Registry GC stats: dispatches (evidence: `files/gitlab-ctl-commands/lib/gitlab_ctl/registry/database.rb`)
- Administrator → Geo administration: administers
- Package repository API → Pulp uploader: creates (evidence: `lib/gitlab/package_repository.rb`)
- Pulp uploader → Package formats: builds upload commands (evidence: `lib/gitlab/package_repository/pulp_repository.rb`)
- Pulp uploader → Pulp server: uploads packages (evidence: `lib/gitlab/package_repository/pulp_repository.rb`)
