First, install Gitlab RPM package and dependencies
#curl-O https://downloads-packages.s3.amazonaws.com/centos-6.6/gitlab-7.5.3_omnibus.5.2.1.ci-1.el6.x86_64.rpm# Yum install-y openssh-server postfix cronie#chkconfig postfix on#rpm-i gitlab-7.5.3_omnibus.5.2.1.ci-1.el6.x86_64.rpm
One of the first steps to download the slow recommendation copy the address to download tool download and then upload to the server
Second, configure Gitlap and integrate LDAP
Modify the configuration file/etc/gitlab/gitlab.rb Modify the address below for you hostname or IP
Note you need to add =
External_url = ' gitlab.xxx.com '
Append LDAP configuration in /etc/gitlab/gitlab.rb (Detailed configuration parameter explanation see reference)
# for omnibus packagesgitlab_rails[' ldap_enabled '] = truegitlab_rails[' ldap_servers '] = yaml.load <<-eos # Remember to close this block with ' EOS ' belowmain: # ' main ' was the GitLab ' provider ID ' of this LDAP server label: ' LDAP ' Host: ' Ldap_server_ip ' port:389 uid: ' uid ' method: ' Plain ' # ' TLS ' or ' SSL ' or ' plain ' allow_username_or_email_logi N:true bind_dn: ' cn=xxx,dc=xxx,dc=com ' Password: ' PASSWPRD ' active_directory:false base: ' ou=xxx,dc=xxx,dc=com ' use R_filter: "EOS
Make configuration effective
#gitlab-ctl Reconfigure
This Gitlab installs integrated LDAP completion
Third, commissioning and other
LDAP Login error Log location/var/log/gitlab/gitlab-rails/production.log
Gitlab service startup shutdown and restart
Gitlab-ctl Start|stop|restart
Note that you need to do this after you have modified/etc/gitlab/gitlab.rb
#gitlab-ctl Reconfigure
PS This command will execute chef add /etc/gitlab/gitlab.rb parameters added to /var/opt/gitlab/gitlab-rails/etc/gitlab.yml
Reference Document: Installation: https://about.gitlab.com/downloads/
LDAP configuration: http://doc.gitlab.com/ce/integration/ldap.html
Gitlab installation and LDAP integration centos6.x