Skip to content

Commit f3c4409

Browse files
committed
Add documentation for git_data_dir change in Gitlab 18
1 parent 5d7039e commit f3c4409

File tree

2 files changed

+61
-0
lines changed

2 files changed

+61
-0
lines changed

REFERENCE.md

Lines changed: 30 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -351,6 +351,36 @@ Default value: `undef`
351351
Data type: `Optional[Hash]`
352352

353353
Hash of git data directories
354+
**Deprecated**: This option was removed in Gitlab 18.
355+
356+
To configure the storage location for a Gitaly node:
357+
```patch
358+
- git_data_dirs => {
359+
- 'default' => { 'path' => '/mnt/example/git-data'},
360+
- },
361+
+ gitaly => {
362+
+ configuration => {
363+
+ 'storage' => [
364+
+ {
365+
+ 'name' => 'default',
366+
+ 'path' => '/mnt/example/git-data/repositories',
367+
+ },
368+
+ ],
369+
+ },
370+
+ },
371+
```
372+
373+
To configure the storage location for other nodes:
374+
```patch
375+
- git_data_dirs => {
376+
- 'default' => { 'gitaly_address' => 'tcp://gitaly1.internal:8075'},
377+
- },
378+
+ gitlab_rails => {
379+
+ repositories_storages => {
380+
+ 'default' => { 'gitaly_address' => 'tcp://gitaly1.internal:8075'},
381+
+ },
382+
+ },
383+
```
354384

355385
Default value: `undef`
356386

manifests/init.pp

Lines changed: 31 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -27,6 +27,37 @@
2727
# @param git Hash of 'omnibus_gitconfig' config parameters.
2828
# @param gitaly Hash of 'omnibus_gitconfig' config parameters.
2929
# @param git_data_dirs Hash of git data directories
30+
#
31+
# **Deprecated**: This option was removed in Gitlab 18.
32+
#
33+
# To configure the storage location for a Gitaly node:
34+
# ```patch
35+
# - git_data_dirs => {
36+
# - 'default' => { 'path' => '/mnt/example/git-data'},
37+
# - },
38+
# + gitaly => {
39+
# + configuration => {
40+
# + 'storage' => [
41+
# + {
42+
# + 'name' => 'default',
43+
# + 'path' => '/mnt/example/git-data/repositories',
44+
# + },
45+
# + ],
46+
# + },
47+
# + },
48+
# ```
49+
#
50+
# To configure the storage location for other nodes:
51+
# ```patch
52+
# - git_data_dirs => {
53+
# - 'default' => { 'gitaly_address' => 'tcp://gitaly1.internal:8075'},
54+
# - },
55+
# + gitlab_rails => {
56+
# + repositories_storages => {
57+
# + 'default' => { 'gitaly_address' => 'tcp://gitaly1.internal:8075'},
58+
# + },
59+
# + },
60+
# ```
3061
# @param gitlab_git_http_server Hash of 'gitlab_git_http_server' config parameters.
3162
# @param gitlab_ci Hash of 'gitlab_ci' config parameters.
3263
# @param gitlab_kas Hash of 'gitlab_kas' config parameters.

0 commit comments

Comments
 (0)