Ansible role gitlab_ce
Ansible Role for GitLab CE Installation.
GitHub | Version | Issues | Pull Requests | Downloads |
---|---|---|---|---|
This example is taken from molecule/default/converge.yml
and is tested on each push, pull request and release.
---
- hosts: all
remote_user: root
become: true
gather_facts: yes
roles:
- name: buluma.gitlab_ce
The machine needs to be prepared. In CI this is done using molecule/default/prepare.yml
:
---
- hosts: all
remote_user: root
become: true
gather_facts: false
tasks:
- name: Redhat | subscription-manager register
ansible.builtin.raw: |
set -eu
subscription-manager register \
--username={{ lookup('env', 'REDHAT_USERNAME') }} \
--password={{ lookup('env', 'REDHAT_PASSWORD') }} \
--auto-attach
changed_when: false
failed_when: false
roles:
- name: buluma.bootstrap
- name: buluma.common
- name: buluma.timezone
- name: buluma.setuptools
when:
- ansible_os_family != 'Ubuntu'
Also see a full explanation and example on how to use these roles.
The default values for the variables are set in defaults/main.yml
:
---
# GitLab release.
gitlab_release: "16.6"
# GitLab version.
gitlab_version: "{{ _gitlab_version[gitlab_release] }}"
# GitLab external URL.
gitlab_external_url: "http://{{ ansible_default_ipv4.address }}"
# Set to approximately 1/4 of available RAM.
gitlab_postgresql_shared_buffers: "256MB"
# Disable Prometheus node_exporter inside Docker.
gitlab_node_exporter_enable: "true"
# Manage accounts with docker.
gitlab_manage_accounts_enable: "false"
# Explicitly disable init detection since we are running on a container.
gitlab_package_detect_init: "true"
# Attempt to modify kernel paramaters.
gitlab_package_modify_kernel_parameters: "true"
- pip packages listed in requirements.txt.
The following roles are used to prepare a system. You can prepare your system in another way.
Requirement | GitHub | Version |
---|---|---|
buluma.bootstrap | ||
buluma.timezone | ||
buluma.setuptools | ||
buluma.common |
This role is a part of many compatible roles. Have a look at the documentation of these roles for further information.
Here is an overview of related roles:
This role has been tested on these container images:
container | tags |
---|---|
Ubuntu | all |
EL | all |
Debian | all |
Fedora | all |
opensuse | all |
The minimum version of Ansible required is 2.12, tests have been done to:
- The previous version.
- The current version.
- The development version.
If you find issues, please register them in GitHub