Browse Source

patch gitlab source to add domain to email ldap field

python3
Andrea Cimbalo 7 years ago
parent
commit
d249faab50
1 changed files with 10 additions and 0 deletions
  1. +10
    -0
      roles/gitlab/tasks/main.yaml

+ 10
- 0
roles/gitlab/tasks/main.yaml View File

@ -25,3 +25,13 @@
src: "gitlab.yml.j2"
dest: "/etc/gitlab/gitlab.yml"
notify: restart gitlab
- name: patch gitlab source to add domain to email ldap field
blockinfile:
block: |
if key.to_s == "email"
value = value.nil? ? value : value + "@lilik.it"
end
dest: /usr/share/gitlab/lib/gitlab/ldap/auth_hash.rb
insertbefore: "return super unless value"
notify: restart gitlab

Loading…
Cancel
Save