Skip to content
Snippets Groups Projects
Commit ea069d9fe8c9 authored by Ahmad Sherif's avatar Ahmad Sherif
Browse files

Create git_data_dirs even if gitlab_rails is disabled

Currently, `gitlab_rails` service needs to be enabled in order for
`gitaly` service to function properly. Specifically, `gitlab_rails`
creates `git_data_dirs` (e.g. `/var/opt/gitlab/git-data/repositories`)
which is needed for Gitaly to start-up. If only the `gitaly` service is
enabled, then Gitaly won't start due to config validation error (i.e.
storage directories have to be present).

This MR makes the creation of these directories the responsibility of
the `gitaly` cookbook. The `gitlab` cookbook still creates the
directories as backward-compatibility measure, as I'm not sure if these
directories are needed outside of Gitaly.

This is needed as part of
https://gitlab.com/gitlab-com/gl-infra/production-engineering/-/issues/24530.

Changelog: fixed
parent 3c1c33892d8a
No related branches found
No related tags found
3 merge requests!128heptapod#1534: making 1.5 the oldstable,!125heptapod#1494: make 1.5 the new stable,!124Upstream 16.11 quasi branching point
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment