Cransible Gitlab configuration

Signed-off-by: Yohann D'ANELLO <ynerant@crans.org>
certbot_on_virtu
ynerant 2021-02-17 20:13:42 +01:00 committed by Yohann D'ANELLO
parent 6d35dcd7e8
commit 63d4164ba0
Signed by: _ynerant
GPG Key ID: 3A75C55819C8CF85
5 changed files with 2747 additions and 0 deletions

17
group_vars/git.yml 100644
View File

@ -0,0 +1,17 @@
---
glob_gitlab:
url: 'https://gitlab.crans.org'
time_zone: 'Europe/Paris'
email: 'gitlab@crans.org'
email_display_name: 'Crans GitLab'
ldap_label: 'Crans'
ldap_host: '172.16.10.90' # Thot
ldap_port: 389
ldap_uid: 'uid'
ldap_bind_dn: 'cn=gitlab,ou=service-users,dc=crans,dc=org'
ldap_base: 'cn=Utilisateurs,dc=crans,dc=org'
ldap_user_filter: '(&(!(shadowExpire=0))(uid=*))'
cas_name: 'cas3'
cas_label: 'CAS Cr@ns'
cas_url: 'https://cas.crans.org'

View File

@ -17,3 +17,6 @@ loc_certbot:
mail: root@crans.org
certname: adm.crans.org
domains: "*.adm.crans.org"
loc_gitlab:
ldap_bind_password: "{{ vault_gitlab_ldap_password }}"

View File

@ -10,5 +10,8 @@
- hosts: git
vars:
certbot: '{{ loc_certbot | default(glob_certbot | default([])) }}'
gitlab: '{{ glob_gitlab | default({}) | combine(loc_gitlab | default({})) }}'
roles:
- certbot
- gitlab
- nginx

View File

@ -0,0 +1,7 @@
---
- name: Add Gitlab configuration
template:
src: gitlab.rb.j2
dest: /etc/letsencrypt/rfc2136.ini
mode: 0600
owner: root

File diff suppressed because it is too large Load Diff