- Shell 67.4%
- Jinja 32.6%
| Filename | Latest commit message | Latest commit date |
|---|---|---|
|
All checks were successful
/ lint (push) Successful in 22s
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. |
||
| .forgejo/workflows | ||
| .vibe | ||
| files | ||
| handlers | ||
| tasks | ||
| templates | ||
| tests | ||
| .clinerules | ||
| .cursorrules | ||
| .windsurfrules | ||
| AGENTS.md | ||
| CHANGELOG.md | ||
| CLAUDE.md | ||
| GEMINI.md | ||
| iac.json | ||
| LICENSE | ||
| README.md | ||
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 vonroot; 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.rbwird von iac verwaltet (external_urlaus 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, danachgitlab-ctl reconfigure. Ändert sich die IP, setzt der nächsteupdatedieexternal_urlneu.- 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