After running Ansible, note that the current play does not contain settings for SMTP. To set up SMTP, in /etc/gitlab/gitlab.rb
, find the following configuration settings, uncomment the lines and set their values to the ones below:
gitlab_rails['smtp_enable'] = true
gitlab_rails['smtp_address'] = "mail.tjhsst.edu"
gitlab_rails['smtp_port'] = 22
After saving these settings to gitlab.rb
, apply these settings using gitlab-ctl reconfigure
.
{% hint style="danger" %}
In this method, never execute gitlab-ctl reconfigure
unless specifically stated to.
{% endhint %}
Manual setup can be found on GitLab's website here. However, the only commands you need to run successively are as follows:
sudo apt-get update
sudo apt-get install -y curl openssh-server ca-certificates
sudo apt-get install -y postfix
curl https://packages.gitlab.com/install/repositories/gitlab/gitlab-ee/script.deb.sh | sudo bash
sudo EXTERNAL_URL="http://gitlab.tjhsst.edu" apt-get install gitlab-ee
After running these commands, head to /etc/gitlab/
- Locate
gitlab.rb
in the ansible repository underroles/gitlab/files
- In
/etc/gitlab
executesudo mv gitlab.rb gitlab-OLD.rb
- Copy the Ansible version of
gitlab.rb
into/etc/gitlab
.
{% hint style="warning" %}
Make sure you ran gitlab-ctl reconfigure
after editing gitlab.rb
as instructed in previous steps to apply all changes. This usually takes 30 seconds to 3 minutes depending on the settings.
{% endhint %}
After initial setup, log in using the Standard option as root
, with the default GitLab password. Immediately change this to a more secure password in line with CSL standards.
On initial login, note how there were three possible options: LDAP, Standard, and Sign-Up. As we do not use the Standard and Sign-Up options, it is necessary to remove them by following the steps below:
- Head to the Admin Options, an icon depicting a wrench links here
- On the left sidebar, find the Settings option and open the page.
- Locate the respective check boxes under the Sign-up and Sign-in drop-downs.
{% hint style="info" %} The exact naming of the drop-downs and check-boxes are omitted as they have historically changed with versions. {% endhint %}
{% hint style="success" %} When Standard and Sign-Up are missing from the login page leaving LDAP, configuration is done. {% endhint %}