Not yet released!
This role installs Gitlab using the official Omnibus package.
Configuration
Please consult https://docs.gitlab.com/omnibus/ for installation requirements and other important configuration hints.
As Gitlab has a plethora of options, this role does not expose them as variables.
Instead you need to provide a gitlab.rb.j2
yourself, typically in $PROJECT_ROOT/templates/$HOSTNAME/gitlab.rb.j2
. You can use your own variables when you deem it useful.
You can find all possible options at https://gitlab.com/gitlab-org/omnibus-gitlab/blob/master/files/gitlab-config-template/gitlab.rb.template
Setup hints
- Disable normal sign-up/log-in
Restore
- Restore borg backup
# Stop web services
> gitlab-ctl stop unicorn
> gitlab-ctl stop puma
> gitlab-ctl stop sidekiq
# Drop database
> gitlab-rake gitlab:db:drop_tables
# Restore database
> gitlab-rake gitlab:backup:db:restore
# Restore repository contents
> gitlab-rake gitlab:backup:repo:restore
# Setup authorized_keys
> gitlab-rake gitlab:shell:setup
# Clear cache
> gitlab-rake cache:clear
# Start all services
> gitlab-ctl start