Skip to content
Snippets Groups Projects
Select Git revision
  • 3f1543438b3a8975e671284e8c21eb0394b1eb4d
  • master default protected
  • pipefail
  • fixes/ansible-lint
  • v4.0.0
  • v3.0.1
  • v3.0.0
  • v2.6.1
  • v2.6.0
  • v2.5.0
  • v2.4.0
  • v2.3.0
  • v2.2.1
  • v2.2.0
  • v2.1.1
  • v2.1.0
  • v2.0.5
  • v2.0.4
  • v2.0.3
  • v2.0.2
  • v2.0.1
  • v2.0
  • v2.0.0
  • v1.6
24 results

gitlab

  • Clone with SSH
  • Clone with HTTPS
  • 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