You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardexpand all lines: REFERENCE.md
+16-22
Original file line number
Diff line number
Diff line change
@@ -16,8 +16,8 @@
16
16
17
17
### Defined types
18
18
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.
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.
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
Custom hooks can be created as a pre-receive, post-receive, or update hook.
1189
-
It is possible to create different custom hook types for the same project - one each for pre-receive, post-receive and update.
1188
+
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.
# Hook path will be `@hashed/6e/40/6e4001871c0cf27c7634ef1dc478408f642410fd3a444e2a88e301f5c4a35a4d`
1213
1213
```
@@ -1248,17 +1248,15 @@ The custom hook type. Should be one of pre-receive, post-receive, or update.
1248
1248
1249
1249
Data type: `Optional[String]`
1250
1250
1251
-
Specify the custom hook contents either as a string or using the template function. If this paramter is specified source
1252
-
parameter must not be present.
1251
+
Specify the custom hook contents either as a string or using the template function. If this paramter is specified source parameter must not be present.
Hooks can be created as a pre-receive, post-receive, or update hook.
1284
-
It's possible to create multipe hooks per type as long as their names are unique.
1285
-
Support for chained (global) hooks is introduced in GitLab Shell 4.1.0 and GitLab 8.15.
1281
+
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.
Specify the custom hook contents either as a string or using the template function. If this paramter is specified source
1326
-
parameter must not be present.
1321
+
Specify the custom hook contents either as a string or using the template function. If this paramter is specified source parameter must not be present.
Copy file name to clipboardexpand all lines: manifests/custom_hook.pp
+11-16
Original file line number
Diff line number
Diff line change
@@ -1,32 +1,27 @@
1
-
# @summary
2
-
# Manage custom hook files within a GitLab project.
3
-
#
4
-
# Custom hooks can be created as a pre-receive, post-receive, or update hook.
5
-
# It is possible to create different custom hook types for the same project - one each for pre-receive, post-receive and update.
1
+
# @summary 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.
# # Hook path will be `@hashed/6e/40/6e4001871c0cf27c7634ef1dc478408f642410fd3a444e2a88e301f5c4a35a4d`
22
19
#
23
20
# @param project The GitLab project name, or the hashed directory name or project ID number
24
21
# @param namespace The GitLab group namespace for the project.
25
22
# @param type The custom hook type. Should be one of pre-receive, post-receive, or update.
26
-
# @param content Specify the custom hook contents either as a string or using the template function. If this paramter is specified source
27
-
# parameter must not be present.
28
-
# @param source Specify a file source path to populate the custom hook contents. If this paramter is specified content parameter must not
29
-
# be present.
23
+
# @param content Specify the custom hook contents either as a string or using the template function. If this paramter is specified source parameter must not be present.
24
+
# @param source Specify a file source path to populate the custom hook contents. If this paramter is specified content parameter must not be present.
30
25
# @param repos_path The GitLab shell repos path. This defaults to '/var/opt/gitlab/git-data/repositories' if not present.
31
26
# @param hashed_storage Whether to treat the project name as a hashed storage directory name or ID number
Copy file name to clipboardexpand all lines: manifests/global_hook.pp
+3-11
Original file line number
Diff line number
Diff line change
@@ -1,9 +1,4 @@
1
-
# @summary
2
-
# Manage global chain loaded hook files for all GitLab projects.
3
-
#
4
-
# Hooks can be created as a pre-receive, post-receive, or update hook.
5
-
# It's possible to create multipe hooks per type as long as their names are unique.
6
-
# Support for chained (global) hooks is introduced in GitLab Shell 4.1.0 and GitLab 8.15.
1
+
# @summary 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.
7
2
#
8
3
# @example Global hook usage
9
4
# gitlab::custom_hook { 'my_custom_hook':
@@ -13,11 +8,8 @@
13
8
#
14
9
# @param type The custom hook type. Should be one of pre-receive, post-receive, or update.
15
10
# @param custom_hooks_dir The GitLab shell repos path. This defaults to '/opt/gitlab/embedded/service/gitlab-shell/hooks' if not present.
16
-
# @param content Specify the custom hook contents either as a string or using the template function. If this paramter is specified source
17
-
# parameter must not be present.
18
-
# @param source Specify a file source path to populate the custom hook contents. If this paramter is specified content parameter must not
19
-
# be present.
20
-
#
11
+
# @param content Specify the custom hook contents either as a string or using the template function. If this paramter is specified source parameter must not be present.
12
+
# @param source Specify a file source path to populate the custom hook contents. If this paramter is specified content parameter must not be present.
0 commit comments