added gitlab-ce basic installation

This commit is contained in:
Eliezer Croitoru 2025-03-08 17:44:16 +02:00
parent b4a8013e13
commit 0181e8e8fc
2 changed files with 22 additions and 0 deletions

View File

@ -0,0 +1,10 @@
external_url 'https://gitlab.example.com'
external_url 'https://gitlab.example.com'
registry_external_url 'https://registry.gitlab.example.com'
gitlab_rails['registry_enabled'] = true
gitlab_rails['registry_host'] = "registry.gitlab.example.com"
nginx['real_ip_trusted_addresses'] = [ "192.168.0.1/32" ]
registry_nginx['enable'] = true
registry_nginx['listen_port'] = 443
letsencrypt['enable'] = false
gitlab_rails['backup_path'] = "/srv/gitlab/backups/data"

12
install-gitlab-ce.sh Executable file
View File

@ -0,0 +1,12 @@
#!/usr/bin/env bash
dnf update -y
dnf install -y wget curl policycoreutils openssh-server openssh-clients perl
wget "https://packages.gitlab.com/install/repositories/gitlab/gitlab-ce/script.rpm.sh" -O "script.rpm.sh"
bash script.rpm.sh
EXTERNAL_URL="https://gitlab.example.com" dnf install -y gitlab-ce