manala.gitlab

#######################################################################################################

:exclamation: DEPRECATION :exclamation:

This repository and the role associated are deprecated in favor of the Manala Ansible Collection

You will find informations on its usage on the collection repository

#######################################################################################################

Ansible Role: Gitlab Build Status

:exclamation: Report issues and send Pull Requests in the main Ansible Role repository :exclamation:

This role will assume the setup of Gitlab.

It's part of the Manala Ansible stack but can be used as a stand alone component.

Requirements

None.

Dependencies

None.

Installation

Ansible 2+

Using ansible galaxy cli:

ansible-galaxy install manala.gitlab

Using ansible galaxy requirements file:

- src: manala.gitlab

Role Handlers

Name Type Description
gitlab reconfigure Service Reconfigure and restart gitlab services
gitlab restart Service Restart gitlab services

Role Variables

Name Default Type Description
manala_gitlab_install_packages ~ Array Dependency packages to install
manala_gitlab_install_packages_default ['gitlab-ce'] Array Default dependency packages to install
manala_gitlab_configs_exclusive false Boolean If true, will delete any extra configuration files
manala_gitlab_configs_dir '/etc/gitlab' String Path to the main configuration directory
manala_gitlab_configs_defaults {} Array Configuration defaults
manala_gitlab_configs [] Array Configuration files

Configuration example

manala_gitlab_configs_exclusive: true
manala_gitlab_configs:
  # Template based
  - file: gitlab.rb
    template: my/config/gitlab.rb.j2
  # Raw content based
  - file: gitlab.rb
    config: |
      ## GitLab configuration settings
      external_url 'http://gitlab.example.com'
  # Ensure config is absent
  - file: absent.rb
    state: absent # "present" by default
  # Ignore config
  - file: ignore.rb
    state: ignore
  # Flatten configs
  - "{{ my_custom_configs_array }}"

Example playbook

- hosts: servers
  roles:
    - role: manala.gitlab

Licence

MIT

Author information

Manala (http://www.manala.io/)

About

Handle gitlab

Install
ansible-galaxy install manala.gitlab
GitHub repository
License
Unknown
Downloads
947
Owner
Manala is an open source project supported by the french web agency ELAO providing advanced ansible roles for website's infrastructures and far more.