@@ -1186,28 +1186,29 @@ Default value: `$gitlab::skip_post_deployment_migrations`
1186
1186
### <a name =" gitlab--custom_hook " ></a >` gitlab::custom_hook `
1187
1187
1188
1188
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 .
1189
+ Only one of each is currently supported by this module .
1190
1190
1191
1191
#### Examples
1192
1192
1193
1193
##### Custom hook usage
1194
1194
1195
1195
``` puppet
1196
1196
gitlab::custom_hook { 'my_custom_hook':
1197
- namespace => 'my_group',
1198
- project => 'my_project',
1199
- type => 'post-receive',
1200
- source => 'puppet:///modules/my_module/post-receive',
1197
+ namespace => 'my_group',
1198
+ project => 'my_project',
1199
+ type => 'post-receive',
1200
+ source => 'puppet:///modules/my_module/post-receive',
1201
1201
}
1202
1202
```
1203
1203
1204
1204
##### Calculate hashed storage path
1205
1205
1206
1206
``` puppet
1207
1207
gitlab::custom_hook { 'my_custom_hook':
1208
- project => 93,
1209
- type => 'post-receive',
1210
- source => 'puppet:///modules/my_module/post-receive',
1208
+ project => 93,
1209
+ hashed_storage => true,
1210
+ type => 'post-receive',
1211
+ source => 'puppet:///modules/my_module/post-receive',
1211
1212
}
1212
1213
# Hook path will be `@hashed/6e/40/6e4001871c0cf27c7634ef1dc478408f642410fd3a444e2a88e301f5c4a35a4d`
1213
1214
```
0 commit comments