Reconfigure gitlab on machine start

This commit is contained in:
Jake Howard 2021-05-29 11:21:20 +01:00
parent c7bde8b3dd
commit f063af2478
Signed by: jake
GPG key ID: 57AFB45680EDD477
2 changed files with 19 additions and 0 deletions

View file

@ -0,0 +1,3 @@
# Reconfigure GitLab before start. Mostly to ensure log directories exist
[Service]
ExecStartPre=/usr/bin/gitlab-ctl reconfigure

View file

@ -2,3 +2,19 @@
import_role:
name: geerlingguy.gitlab
become: true
- name: Create dir for service override
file:
path: /usr/lib/systemd/system/gitlab-runsvdir.service.d/
state: directory
mode: "0755"
become: true
- name: Create override.conf
copy:
src: files/gitlab-override.conf
dest: /usr/lib/systemd/system/gitlab-runsvdir.service.d/gitlab-override.conf
owner: root
group: root
mode: "0644"
become: true