Browse Source

roles/gitlabe: gitlab mattermost added

python3
Zolfa 4 years ago
parent
commit
cd5dcf2422
Signed by: zolfa GPG Key ID: E1A43B038C4D6616
3 changed files with 8 additions and 0 deletions
  1. +3
    -0
      projects.yaml
  2. +1
    -0
      roles/gitlab/README.md
  3. +4
    -0
      roles/gitlab/templates/gitlab.rb.j2

+ 3
- 0
projects.yaml View File

@ -20,7 +20,10 @@
- role: 'dns_record'
- role: 'reverse_proxy'
hostname: 'projects'
- role: 'reverse_proxy'
hostname: 'mattermost'
- role: 'gitlab'
mattermost_hostname: 'mattermost'
- hosts: 'status'
roles:


+ 1
- 0
roles/gitlab/README.md View File

@ -14,6 +14,7 @@ Set-up a Omnibus GitLab server
| `ldap_admin_dn` | DN of a LDAP user with admin privileges. |
| `ldap_admin_pw` | Bind password of that user. |
| `initial_root_password` | Available only before initialization. |
| `mattermost_hostname` | If defined, creates GitLab Mattermost instance. |
**Note**: The Ansible controller must have OpenLDAP properly configured
with root ca set in `~/.ldaprc`.


+ 4
- 0
roles/gitlab/templates/gitlab.rb.j2 View File

@ -1438,7 +1438,11 @@ external_url 'http://{{ server_fqdn }}'
##! Docs: https://docs.gitlab.com/omnibus/gitlab-mattermost
################################################################################
{% if mattermost_hostname is defined %}
mattermost_external_url 'https://{{ mattermost_hostname }}.{{ domain }}'
{% else %}
# mattermost_external_url 'http://mattermost.example.com'
{% endif %}
# mattermost['enable'] = false
# mattermost['username'] = 'mattermost'


Loading…
Cancel
Save