|
16 | 16 |
|
17 | 17 | ### Defined types |
18 | 18 |
|
19 | | -* [`gitlab::custom_hook`](#gitlab--custom_hook): Manage custom hook files within a GitLab project. Custom hooks can be created as a pre-receive, post-receive, or update hook. Only one of each is currently supported by this module. |
20 | | -* [`gitlab::global_hook`](#gitlab--global_hook): Manage global chain loaded hook files for all GitLab projects. Hooks can be created as a pre-receive, post-receive, or update hook. It's possible to create multipe hooks per type as long as their names are unique. Support for chained (global) hooks is introduced in GitLab Shell 4.1.0 and GitLab 8.15. |
| 19 | +* [`gitlab::custom_hook`](#gitlab--custom_hook): Manage custom hook files within a GitLab project. |
| 20 | +* [`gitlab::global_hook`](#gitlab--global_hook): Manage global chain loaded hook files for all GitLab projects. |
21 | 21 | * [`gitlab::system_hook`](#gitlab--system_hook): A file hook will run on each event so it's up to you to filter events or projects |
22 | 22 |
|
23 | 23 | ### Tasks |
@@ -352,6 +352,37 @@ Data type: `Optional[Hash]` |
352 | 352 |
|
353 | 353 | Hash of git data directories |
354 | 354 |
|
| 355 | +**Deprecated**: This option was removed in Gitlab 18. |
| 356 | + |
| 357 | +To configure the storage location for a Gitaly node: |
| 358 | +```patch |
| 359 | +- git_data_dirs => { |
| 360 | +- 'default' => { 'path' => '/mnt/example/git-data'}, |
| 361 | +- }, |
| 362 | ++ gitaly => { |
| 363 | ++ configuration => { |
| 364 | ++ 'storage' => [ |
| 365 | ++ { |
| 366 | ++ 'name' => 'default', |
| 367 | ++ 'path' => '/mnt/example/git-data/repositories', |
| 368 | ++ }, |
| 369 | ++ ], |
| 370 | ++ }, |
| 371 | ++ }, |
| 372 | +``` |
| 373 | + |
| 374 | +To configure the storage location for other nodes: |
| 375 | +```patch |
| 376 | +- git_data_dirs => { |
| 377 | +- 'default' => { 'gitaly_address' => 'tcp://gitaly1.internal:8075'}, |
| 378 | +- }, |
| 379 | ++ gitlab_rails => { |
| 380 | ++ repositories_storages => { |
| 381 | ++ 'default' => { 'gitaly_address' => 'tcp://gitaly1.internal:8075'}, |
| 382 | ++ }, |
| 383 | ++ }, |
| 384 | +``` |
| 385 | + |
355 | 386 | Default value: `undef` |
356 | 387 |
|
357 | 388 | ##### <a name="-gitlab--gitlab_git_http_server"></a>`gitlab_git_http_server` |
@@ -1212,7 +1243,8 @@ Default value: `$gitlab::skip_post_deployment_migrations` |
1212 | 1243 |
|
1213 | 1244 | ### <a name="gitlab--custom_hook"></a>`gitlab::custom_hook` |
1214 | 1245 |
|
1215 | | -Manage custom hook files within a GitLab project. Custom hooks can be created as a pre-receive, post-receive, or update hook. Only one of each is currently supported by this module. |
| 1246 | +Custom hooks can be created as a pre-receive, post-receive, or update hook. |
| 1247 | +Only one of each is currently supported by this module. |
1216 | 1248 |
|
1217 | 1249 | #### Examples |
1218 | 1250 |
|
@@ -1305,7 +1337,9 @@ Default value: `false` |
1305 | 1337 |
|
1306 | 1338 | ### <a name="gitlab--global_hook"></a>`gitlab::global_hook` |
1307 | 1339 |
|
1308 | | -Manage global chain loaded hook files for all GitLab projects. Hooks can be created as a pre-receive, post-receive, or update hook. It's possible to create multipe hooks per type as long as their names are unique. Support for chained (global) hooks is introduced in GitLab Shell 4.1.0 and GitLab 8.15. |
| 1340 | +Hooks can be created as a pre-receive, post-receive, or update hook. |
| 1341 | +It's possible to create multipe hooks per type as long as their names are unique. |
| 1342 | +Support for chained (global) hooks is introduced in GitLab Shell 4.1.0 and GitLab 8.15. |
1309 | 1343 |
|
1310 | 1344 | #### Examples |
1311 | 1345 |
|
|
0 commit comments