Add change-abandoned hook for gerrit in puppet
Gerrit manifest for review servers was lacking the change-abandoned hook, even though jeepyb had already support for notifying LP bug when the linked review was being abandoned. This change adds the missing hook to the gerrit manifest as a file resource. Closes-Bug: 1319305 Change-Id: I07555bfbfe255239ab1aeaa5d14bcfa807005faf
This commit is contained in:
parent
dc8b2ae79f
commit
3b0ff58b27
4
modules/openstack_project/files/gerrit/change-abandoned
Executable file
4
modules/openstack_project/files/gerrit/change-abandoned
Executable file
@ -0,0 +1,4 @@
|
||||
#!/bin/sh
|
||||
|
||||
# Use timeout to kill any process running longer than 10 minutes.
|
||||
timeout -k 2m 10m /usr/local/bin/update-bug change-abandoned "$@"
|
@ -295,6 +295,16 @@ class openstack_project::gerrit (
|
||||
require => Class['::gerrit'],
|
||||
}
|
||||
|
||||
file { '/home/gerrit2/review_site/hooks/change-abandoned':
|
||||
ensure => present,
|
||||
owner => 'root',
|
||||
group => 'root',
|
||||
mode => '0555',
|
||||
source => 'puppet:///modules/openstack_project/gerrit/change-abandoned',
|
||||
replace => true,
|
||||
require => Class['::gerrit'],
|
||||
}
|
||||
|
||||
file { '/home/gerrit2/review_site/hooks/notify_impact.yaml':
|
||||
ensure => present,
|
||||
source =>
|
||||
|
Loading…
Reference in New Issue
Block a user