No description
  • Shell 67.4%
  • Jinja 32.6%
Find a file
Repository files (latest commit first)
Filename Latest commit message Latest commit date
Kevin Heyer cd23eca311
All checks were successful
/ lint (push) Successful in 22s
Run Puma with two workers: single mode does not boot in GitLab 19.6
worker_processes = 0 (single mode, the setting GitLab documents for
small hosts) makes Puma fail to load the application in 19.6.0 and
19.6.1: "Can't reinstall subscriptions. GitlabSchema is using …",
Puma restarts for ever and /-/health answers 502, so the install
fails at the health check. Two workers boot and answer (health,
readiness and the sign-in page 200) in a container with 4 GiB.

Tested: tools/check-app.sh (lint, template files, two dev container
runs with the smoke test, idempotency). Also found: 19.6.0 fails like
19.6.1 in single mode, so a version pin would not have helped.
2026-11-20 10:14:37 +01:00
.forgejo/workflows Sync workflow and shared rules with iac-core/templates/app 2026-11-17 15:31:35 +01:00
.vibe Add iac-gitlab: GitLab EE from the Omnibus package 2026-11-16 14:41:43 +01:00
files Add iac-gitlab: GitLab EE from the Omnibus package 2026-11-16 14:41:43 +01:00
handlers Add iac-gitlab: GitLab EE from the Omnibus package 2026-11-16 14:41:43 +01:00
tasks Gather network facts before writing external_url 2026-11-17 15:31:30 +01:00
templates Run Puma with two workers: single mode does not boot in GitLab 19.6 2026-11-20 10:14:37 +01:00
tests Add iac-gitlab: GitLab EE from the Omnibus package 2026-11-16 14:41:43 +01:00
.clinerules Add iac-gitlab: GitLab EE from the Omnibus package 2026-11-16 14:41:43 +01:00
.cursorrules Add iac-gitlab: GitLab EE from the Omnibus package 2026-11-16 14:41:43 +01:00
.windsurfrules Add iac-gitlab: GitLab EE from the Omnibus package 2026-11-16 14:41:43 +01:00
AGENTS.md Sync workflow and shared rules with iac-core/templates/app 2026-11-17 15:31:35 +01:00
CHANGELOG.md Run Puma with two workers: single mode does not boot in GitLab 19.6 2026-11-20 10:14:37 +01:00
CLAUDE.md Add iac-gitlab: GitLab EE from the Omnibus package 2026-11-16 14:41:43 +01:00
GEMINI.md Add iac-gitlab: GitLab EE from the Omnibus package 2026-11-16 14:41:43 +01:00
iac.json Add iac-gitlab: GitLab EE from the Omnibus package 2026-11-16 14:41:43 +01:00
LICENSE Add iac-gitlab: GitLab EE from the Omnibus package 2026-11-16 14:41:43 +01:00
README.md Run Puma with two workers: single mode does not boot in GitLab 19.6 2026-11-20 10:14:37 +01:00

iac-gitlab

GitLab (Enterprise-Edition-Paket, ohne Lizenz mit dem freien Funktionsumfang) auf Debian 13 als LXC oder VM auf Proxmox VE. Installiert wird das offizielle Omnibus-Paket von packages.gitlab.com (Download mit SHA256 aus dem Paketindex, kein APT-Repository). Nur amd64. Teil von iac.

Installation (auf der Proxmox-Node)

bash -c "$(curl -fsSL https://iac.heyer.systems/gitlab/ct.sh)"   # LXC
bash -c "$(curl -fsSL https://iac.heyer.systems/gitlab/vm.sh)"   # VM

Ohne Dialog: IAC_NONINTERACTIVE=1 und var_*-Variablen – am einfachsten mit dem Generator auf https://iac.heyer.systems/apps/gitlab/.

Zugang

  • Web: http://<IP>/ auf Port 80 (öffentlich), kein TLS – ein Reverse Proxy (z. B. iac-traefik) davor.
  • Login: root, Passwort im Gast: grep gitlab_root_password /etc/iac/settings.env. Das Passwort gilt nur für die erste Anlage von root; später geändert wird es nie überschrieben.
  • Git über SSH: git@<IP>:<namespace>/<projekt>.git über den SSH-Dienst des Gasts (Port 22).

Ressourcen und Konfiguration

  • Vorgabe 4 CPU, 4 GiB RAM (Minimum laut GitLab), LXC 30 GiB / VM 40 GiB Platte. Der erste Start nach der Installation dauert einige Minuten.
  • /etc/gitlab/gitlab.rb wird von iac verwaltet (external_url aus der IP des Gasts, zwei Puma-Worker (kein Einzelmodus: damit startet Puma in GitLab 19.6 nicht), weniger Sidekiq-Threads, ohne Prometheus). Eigene Einstellungen in /etc/gitlab/gitlab.local.rb, danach gitlab-ctl reconfigure. Ändert sich die IP, setzt der nächste update die external_url neu.
  • Daten: /var/opt/gitlab (Repositories, Datenbank), Konfiguration /etc/gitlab.

Update (im Gast)

update

update lädt eine neuere Version nur innerhalb der installierten Hauptversion. GitLab hat vorgeschriebene Zwischenschritte (required upgrade stops) und erlaubt keinen Sprung über eine Hauptversion: Vor einem Sprung auf die nächste Hauptversion die Hinweise von GitLab lesen (https://docs.gitlab.com/update/upgrade_paths/), vorher ein Backup anlegen (gitlab-backup create, dazu /etc/gitlab/gitlab-secrets.json sichern) und die Version von Hand installieren. Den Wechsel meldet update nur.

Selbsttest (im Gast)

bash /var/lib/iac/src/core/bin/iac-smoke