Skip to content
Snippets Groups Projects
README.md 1.11 KiB
Newer Older
David Mehren's avatar
David Mehren committed
# 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
David Mehren's avatar
David Mehren committed

## Restore
- Restore borg backup
```shell script
# 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
David Mehren's avatar
David Mehren committed
> gitlab-rake gitlab:backup:repo:restore
David Mehren's avatar
David Mehren committed
# Setup authorized_keys
> gitlab-rake gitlab:shell:setup
# Clear cache
> gitlab-rake cache:clear
# Start all services
> gitlab-ctl start
```