EMBL-EBI-TSI/ansible-gitlab

Name: ansible-gitlab

Owner: EMBL-EBI Technology & Science Integration

Description: Ansible role to install and configure GitLab Community Edition (CE) through the Omnibus package

Created: 2017-07-10 11:00:24.0

Updated: 2017-07-10 15:07:59.0

Pushed: 2017-09-25 10:42:13.0

Homepage:

Size: 21

Language: null

GitHub Committers

UserMost Recent Commit# Commits

Other Committers

UserEmailMost Recent Commit# Commits

README

GitLab

Install and configure GitLab Community Edition (CE) through the Omnibus package.

This role adds the official repository, but leaves it disabled.

Requirements

See meta/main.yml.

Role Variables

See defaults/main.yml for all options. Following are a few notes:

gitlab_version specifies the GitLab version to install. Each version of GitLab might need a different gitlab.rb.j2 template and variables to support upstream new features and changes. Therefore, if you need an earlier version you should checkout the corresponding commit to get the matching gitlab.rb.j2 template and variables.

LDAP can be enabled by setting gitlab_ldap_enabled: true and configuring gitlab_ldap_ variables to match your setup. Take a look at the templates/gitlab.rb.j2 for how ldap is configured or the GitLab documentation for more detailed instructions.

By default nginx won't redirect http to https. Set gitlab_nginx_redirect_http_to_https: true to activate this feature and then set the key/pair certificate locations using gitlab_nginx_ssl_certificate and gitlab_nginx_ssl_certificate_key. This variables point to the location of key/cert files in the target system, you need some way to get those files there, i.e. using a role jdauphant.ssl-certs.

Backup of Gitlab's application data, secrets and config can be enabled in gitlab_backup_enabled (disabled by default). When enabled, backups are made daily and kept for 7 days (tweak values in gitlab_backup_frequency and gitlab_backup_keep_time). Backups are performed in two cron jobs and saved in the standard gitlab backup directory (/var/opt/gitlab/backup):

Note that secrets backups are currently stored in the same directory as the application data.

Dependencies

None.

Example Playbook

Example:

sts: servers
les:
- gitlab
TODO
Licence

Released under the MIT license.

Author Information

Luis Gracia while at EMBL-EBI:


This work is supported by the National Institutes of Health's National Center for Advancing Translational Sciences, Grant Number U24TR002306. This work is solely the responsibility of the creators and does not necessarily represent the official views of the National Institutes of Health.