gitlab

[![Build Status][image-1]][1]

Ansible Role: Gitlab

A ansible role for Gitlab

Requirements

GitLab requires Ruby (MRI) 2.3. Support for Ruby versions below 2.3 (2.1, 2.2) will stop with GitLab 8.13.

Role Variables

Available variables are listed below, along with default values (see defaults/main.yml):

gitlab_tuna_mirrors: false

Use Chinese GitLab CE mirror hosted by TUNA instead of official mirror.

gitlab_external_url: "http://gitlab.example.com"

Configure Gitlab [external url][2].

 gitlab_nginx_listen_port: "8080"

[Setting the NGINX listen port][3]

gitlab_config_content: |
 ## Url on which GitLab will be reachable.
 ## For more details on configuring external_url see:
 ## https://gitlab.com/gitlab-org/omnibus-gitlab/blob/master/doc/settings/  configuration.md#configuring-the-external-url-for-gitlab
  external_url "{{ gitlab_external_url }}"

  nginx['listen_port'] = "{{ gitlab_nginx_listen_port }}" # override only if you use a reverse proxy: https://gitlab.com/gitlab-org/omnibus-gitlab/blob/ma    ster/doc/settings/nginx.md#setting-the-nginx-listen-port

The default configuring of .gitlab.rb file. Read the [Gitlab configuring][4] document to configure.

Dependencies

None.

Example Playbook

- hosts: all
  vars_file:
    - vars/main.yml
  roles:
     - stevenjlho.gitlab

Inside vars/main.yml:

 gitlab_nginx_listen_port: "8081"

License

MIT

Author Information

This role was created in 2016 by [Steven Ho][5]

[1]: https://travis-ci.org/stevenjlho/ansible-role-gitlab [2]: https://docs.gitlab.com/omnibus/settings/configuration.html#configuring-the-external-url-for-gitlab [3]: https://docs.gitlab.com/omnibus/settings/nginx.html#setting-the-nginx-listen-port [4]: https://docs.gitlab.com/omnibus/#configuring [5]: http://stevenjlho.github.io/

[image-1]: https://travis-ci.org/stevenjlho/ansible-role-gitlab.svg?branch=master

About

Ansible role for install and configure Gitlab

Install
ansible-galaxy install stevenjlho/ansible-role-gitlab
GitHub repository
License
mit
Downloads
28
Owner